use NEC to handle caps events
[gajim.git] / configure.ac
blob0dfcb4fb99de465d4910d5a47a875194632d900b
1 AC_INIT([Gajim - A Jabber Instant Messager],
2                 ["version-set-in-hgversion"],[http://trac.gajim.org/],[gajim])
3 AC_PREREQ([2.59])
5 AC_CONFIG_HEADER(config.h)
6 AC_CONFIG_AUX_DIR(config)
7 AC_CONFIG_MACRO_DIR([m4])
9 AM_INIT_AUTOMAKE([1.8])
10 AM_MAINTAINER_MODE
12 dnl Make Objective-C work with automake
13 AM_CONDITIONAL([am__fastdepOBJC], false)
15 IT_PROG_INTLTOOL([0.35.0])
16 PKG_PROG_PKG_CONFIG([0.19])
18 AM_DISABLE_STATIC
19 AC_ENABLE_SHARED(yes)
20 AC_ENABLE_STATIC(no)
22 AC_ISC_POSIX
23 AC_PROG_CC
24 AC_PROG_INSTALL
25 AC_PROG_MAKE_SET
26 AC_PROG_LIBTOOL
27 AC_C_CONST
28 AC_CHECK_HEADERS([libintl.h])
29 AC_PATH_X
32 GETTEXT_PACKAGE=gajim
33 AC_SUBST([GETTEXT_PACKAGE])
34 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
35 AM_GLIB_GNU_GETTEXT
36 AM_NLS
39 dnl ****
40 dnl pygtk and gtk+
41 dnl ****
42 PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.16.0 pygtk-2.0 >= 2.16.0])
43 AC_SUBST(PYGTK_CFLAGS)
44 AC_SUBST(PYGTK_LIBS)
45 PYGTK_DEFS=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
46 AC_SUBST(PYGTK_DEFS)
48 AM_PATH_PYTHON([2.5])
49 if test "x$PYTHON" = "x:"; then
50         AC_MSG_ERROR([Python not found])
53 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
54 AC_SUBST(ACLOCAL_AMFLAGS)
56 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
57 AC_SUBST([PYTHON_INCLUDES])
59 dnl ****
60 dnl enable installation in python-2.x/site-packages/gajim
61 dnl ****
62 AC_ARG_ENABLE(site-packages,
63   [AS_HELP_STRING([--enable-site-packages],
64         [install gajim sources in PYTHONDIR/site-packages/gajim
65 instead of DATADIR/gajim/src.])]
67 AC_SUBST([gajim_srcdir], [\${pkgpythondir}])
68 AC_SUBST([gajim_pluginsdir], [\${pkgpythondir}])
70 AC_SUBST([gajim_srcdir], [\${datadir}/\${PACKAGE}/src])
71 AC_SUBST([gajim_pluginsdir], [\${datadir}/\${PACKAGE}/plugins])
74 AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}")
75 AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
76 AS_AC_EXPAND(DOCDIR, "${docdir}")
77 AS_AC_EXPAND(LOCALEDIR, "${localedir}")
78 AS_AC_EXPAND(GAJIM_PLUGINSDIR, "${gajim_pluginsdir}")
80 AC_SUBST(VERSION)
81 AC_SUBST(PACKAGE)
83 AC_CONFIG_FILES([ 
84         Makefile
85         data/Makefile
86         data/gui/Makefile
87         data/emoticons/Makefile
88         data/pixmaps/Makefile
89         data/iconsets/Makefile
90         data/moods/Makefile
91         data/activities/Makefile
92         icons/Makefile
93         data/gajim.desktop.in
94         data/defs.py
95         src/Makefile
96         scripts/gajim
97         scripts/gajim-remote:scripts/gajim.in
98         scripts/gajim-history-manager:scripts/gajim.in
99         po/Makefile.in
100         plugins/Makefile
102 AC_OUTPUT
103 echo "
104 *****************************
105   Installation:
106     Prefix ........... ${prefix}
107     Python modules ... ${GAJIM_SRCDIR}
108     Plugins .. ....... ${GAJIM_PLUGINSDIR}
109     Documentation .... ${DOCDIR}
110     Others ........... ${PKGDATADIR}
111 *****************************"