1 AC_INIT(Empathy, 0.23.1, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007 Collabora Ltd.
8 # LT Version numbers, remember to change them just *before* a release.
9 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
10 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
11 # (No interfaces changed: REVISION++)
16 LIBEMPATHY_GTK_CURRENT=11
18 LIBEMPATHY_GTK_REVISION=1
20 AC_SUBST(LIBEMPATHY_CURRENT)
21 AC_SUBST(LIBEMPATHY_AGE)
22 AC_SUBST(LIBEMPATHY_REVISION)
23 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
24 AC_SUBST(LIBEMPATHY_GTK_AGE)
25 AC_SUBST(LIBEMPATHY_GTK_REVISION)
27 # Minimal version required
31 LIBGLADE_REQUIRED=2.0.0
32 LIBPANELAPPLET_REQUIRED=2.10.0
33 TELEPATHY_GLIB_REQUIRED=0.7.3
34 MISSION_CONTROL_REQUIRED=4.61
36 # Uncomment that to build without deprecated symbols
37 # AC_DEFINE(GTK_DISABLE_DEPRECATED, 1, [Disable deprecated GTK symbols])
38 # AC_DEFINE(G_DISABLE_DEPRECATED, 1, [Disable deprecated GLib symbols])
40 AC_CONFIG_MACRO_DIR([m4])
41 AC_CONFIG_HEADERS([config.h])
42 AC_CONFIG_SRCDIR([configure.ac])
47 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define -Wno-portability)
56 IT_PROG_INTLTOOL([0.35.0])
60 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
61 AC_PATH_PROG(GCONFTOOL, gconftool-2)
63 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
64 AC_SUBST(GLIB_GENMARSHAL)
66 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
67 if test -z "$XSLTPROC"; then
68 AC_MSG_ERROR([xsltproc (from libxslt) is required])
70 AC_CHECK_PROGS([PYTHON], [python python2.3 python2.4 python2.5])
71 if test -z "$PYTHON"; then
72 AC_MSG_ERROR([Python is required])
77 # -----------------------------------------------------------
78 # Pkg-Config dependency checks
79 # -----------------------------------------------------------
81 PKG_CHECK_MODULES(LIBEMPATHY,
83 glib-2.0 >= $GLIB_REQUIRED
86 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
87 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
90 PKG_CHECK_MODULES(EMPATHY,
92 glib-2.0 >= $GLIB_REQUIRED
94 gio-2.0 >= $GLIB_REQUIRED
95 gconf-2.0 >= $GCONF_REQUIRED
96 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
97 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
98 gtk+-2.0 >= $GTK_REQUIRED
100 libglade-2.0 >= $LIBGLADE_REQUIRED
104 # -----------------------------------------------------------
106 # -----------------------------------------------------------
108 GETTEXT_PACKAGE=empathy
109 AC_SUBST(GETTEXT_PACKAGE)
110 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
114 # -----------------------------------------------------------
115 # ISO codes, used for aspell support
116 # -----------------------------------------------------------
117 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
118 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
120 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
121 iso_codes_pkgconfig=iso-codes
130 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
132 # -----------------------------------------------------------
134 # -----------------------------------------------------------
135 AC_ARG_ENABLE(aspell,
136 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
137 [compile with aspell support]), ,
140 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
141 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
144 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
145 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
147 if test "x$have_aspell" = "xyes"; then
148 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
149 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
157 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
158 AC_MSG_ERROR([Couldn't find aspell.])
162 # -----------------------------------------------------------
164 # -----------------------------------------------------------
165 AC_ARG_ENABLE(megaphone,
166 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
167 [build megaphone applet]), ,
168 enable_megaphone=auto)
170 if test "x$enable_megaphone" != "xno"; then
171 PKG_CHECK_MODULES(MEGAPHONE,
173 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
174 glib-2.0 >= $GLIB_REQUIRED
175 gtk+-2.0 >= $GTK_REQUIRED
176 gconf-2.0 >= $GCONF_REQUIRED
177 libglade-2.0 >= $LIBGLADE_REQUIRED
178 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
179 ], have_megaphone="yes", have_megaphone="no")
184 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
185 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
188 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
190 # -----------------------------------------------------------
192 # -----------------------------------------------------------
193 AC_ARG_ENABLE(nothere,
194 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
195 [build nothere applet]), ,
198 if test "x$enable_nothere" != "xno"; then
199 PKG_CHECK_MODULES(NOTHERE,
201 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
202 glib-2.0 >= $GLIB_REQUIRED
203 gtk+-2.0 >= $GTK_REQUIRED
204 gconf-2.0 >= $GCONF_REQUIRED
205 libglade-2.0 >= $LIBGLADE_REQUIRED
206 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
207 ], have_nothere="yes", have_nothere="no")
212 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
213 AC_MSG_ERROR([Couldn't find nothere dependencies.])
216 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
218 # -----------------------------------------------------------
220 # -----------------------------------------------------------
222 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
226 if test "x$enable_tests" != "xno"; then
227 PKG_CHECK_MODULES(CHECK,
230 ], have_check="yes", have_check="no")
235 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
236 AC_MSG_ERROR([Couldn't find check dependencies.])
239 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
241 # -----------------------------------------------------------
243 # -----------------------------------------------------------
244 AC_ARG_ENABLE(python,
245 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
246 [build python bindings to libempathy and libempathy-gtk]), ,
249 if test "x$enable_python" != "xno"; then
251 if test -z "$PYTHON" ; then
254 PKG_CHECK_MODULES(PYTHON_BINDING,
257 glib-2.0 >= $GLIB_REQUIRED
259 gconf-2.0 >= $GCONF_REQUIRED
261 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
262 gtk+-2.0 >= $GTK_REQUIRED
263 libglade-2.0 >= $LIBGLADE_REQUIRED
264 ], have_python="yes", have_python="no")
265 if test "x$have_python" = "xyes" ; then
266 AM_CHECK_PYTHON_HEADERS(,have_python="no")
273 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
274 AC_MSG_ERROR([Couldn't find python.])
277 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
279 # -----------------------------------------------------------
281 # -----------------------------------------------------------
283 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
284 [Add support for Voice and Video call]), ,
287 if test "x$enable_voip" = "xyes"; then
288 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
291 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
293 # -----------------------------------------------------------
298 data/empathy.desktop.in
303 libempathy/libempathy.pc
304 libempathy-gtk/Makefile
305 libempathy-gtk/libempathy-gtk.pc
308 megaphone/src/Makefile
309 megaphone/data/Makefile
312 nothere/data/Makefile
314 docs/libempathy/Makefile
315 docs/libempathy/version.xml
316 docs/libempathy-gtk/Makefile
317 docs/libempathy-gtk/version.xml
320 python/pyempathy/Makefile
321 python/pyempathygtk/Makefile