correctly cleanup ged handlers when removing an account
[gajim.git] / configure.ac
blobd9ce3bf06e26d369a520c7c38de4aa111fed4741
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 IT_PROG_INTLTOOL([0.35.0])
13 PKG_PROG_PKG_CONFIG([0.19])
15 AM_DISABLE_STATIC
16 AC_ENABLE_SHARED(yes)
17 AC_ENABLE_STATIC(no)
19 AC_ISC_POSIX
20 AC_PROG_CC
21 AC_PROG_INSTALL
22 AC_PROG_MAKE_SET
23 AC_PROG_LIBTOOL
24 AC_C_CONST
25 AC_CHECK_HEADERS([libintl.h])
26 AC_PATH_X
29 GETTEXT_PACKAGE=gajim
30 AC_SUBST([GETTEXT_PACKAGE])
31 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
32 AM_GLIB_GNU_GETTEXT
33 AM_NLS
36 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
37 AC_SUBST(ACLOCAL_AMFLAGS)
39 AM_PATH_PYTHON([2.5])
41 dnl ****
42 dnl enable installation in python-2.x/site-packages/gajim
43 dnl ****
44 AC_ARG_ENABLE(site-packages,
45   [AS_HELP_STRING([--enable-site-packages],
46         [install gajim sources in PYTHONDIR/site-packages/gajim
47 instead of DATADIR/gajim/src.])]
49 AC_SUBST([gajim_srcdir], [\${pkgpythondir}])
50 AC_SUBST([gajim_pluginsdir], [\${pkgpythondir}])
52 AC_SUBST([gajim_srcdir], [\${datadir}/\${PACKAGE}/src])
53 AC_SUBST([gajim_pluginsdir], [\${datadir}/\${PACKAGE}/plugins])
56 AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}")
57 AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
58 AS_AC_EXPAND(DOCDIR, "${docdir}")
59 AS_AC_EXPAND(LOCALEDIR, "${localedir}")
60 AS_AC_EXPAND(GAJIM_PLUGINSDIR, "${gajim_pluginsdir}")
62 AC_SUBST(VERSION)
63 AC_SUBST(PACKAGE)
65 AC_CONFIG_FILES([ 
66         Makefile
67         data/Makefile
68         data/gui/Makefile
69         data/emoticons/Makefile
70         data/pixmaps/Makefile
71         data/iconsets/Makefile
72         data/moods/Makefile
73         data/activities/Makefile
74         icons/Makefile
75         data/gajim.desktop.in
76         data/defs.py
77         src/Makefile
78         scripts/gajim
79         scripts/gajim-remote:scripts/gajim.in
80         scripts/gajim-history-manager:scripts/gajim.in
81         po/Makefile.in
82         plugins/Makefile
84 AC_OUTPUT
85 echo "
86 *****************************
87   Installation:
88     Prefix ........... ${prefix}
89     Python modules ... ${GAJIM_SRCDIR}
90     Plugins .. ....... ${GAJIM_PLUGINSDIR}
91     Documentation .... ${DOCDIR}
92     Others ........... ${PKGDATADIR}
93 *****************************"