fix translations in es.po and gl.po
[gajim.git] / configure.ac
blob5251138a6173c81e384257028cb810f0f8e8ebe0
1 AC_INIT([Gajim - A Jabber Instant Messager],
2                 [0.13.1],[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.12.0 pygtk-2.0 >= 2.12.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 dnl ****
54 dnl tray icon
55 dnl ****
56 AC_ARG_ENABLE(trayicon,
57   [  --disable-trayicon      do not build trayicon module [default yes]],
58   enable_trayicon=$enableval, enable_trayicon=yes)
59 test "x$enable_trayicon" = "xyes" && have_trayicon=true || have_trayicon=false
60 AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon)
62 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
63 AC_SUBST(ACLOCAL_AMFLAGS)
65 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
66 AC_SUBST([PYTHON_INCLUDES])
68 AS_AC_EXPAND(DATADIR, "${datadir}")
69 AS_AC_EXPAND(LIBDIR, "${libdir}")
70 AS_AC_EXPAND(DOCDIR, "${docdir}")
71 AS_AC_EXPAND(LOCALEDIR, "${localedir}")
73 AC_SUBST(VERSION)
74 AC_SUBST(PACKAGE)
76 AC_CONFIG_FILES([ 
77         Makefile
78         data/Makefile
79         data/glade/Makefile
80         data/emoticons/Makefile
81         data/pixmaps/Makefile
82         data/iconsets/Makefile
83         data/moods/Makefile
84         data/activities/Makefile
85         data/gajim.desktop.in
86         data/defs.py
87         src/Makefile
88         scripts/gajim
89         scripts/gajim-remote:scripts/gajim.in
90         scripts/gajim-history-manager:scripts/gajim.in
91         po/Makefile.in
93 AC_OUTPUT
94 echo " 
95 ***************************** 
96   Build features:
97     trayicon ......... ${have_trayicon}
98 *****************************"