1 AC_INIT(Empathy, 2.27.90, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007-2008 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=26
18 LIBEMPATHY_GTK_REVISION=0
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 LIBPANELAPPLET_REQUIRED=2.10.0
32 TELEPATHY_GLIB_REQUIRED=0.7.34
33 MISSION_CONTROL_REQUIRED=4.61
34 ENCHANT_REQUIRED=1.2.0
35 ISO_CODES_REQUIRED=0.35
36 LIBNOTIFY_REQUIRED=0.4.4
37 LIBCANBERRA_GTK_REQUIRED=0.4
38 LIBCHAMPLAIN_REQUIRED=0.3.6
39 LIBCHAMPLAIN_GTK_REQUIRED=0.3.6
40 CLUTTER_GTK_REQUIRED=0.10
43 NETWORK_MANAGER_REQUIRED=0.7.0
45 # Use --enable-maintainer-mode to disabled deprecated symbols
46 GNOME_MAINTAINER_MODE_DEFINES
48 # Uncomment that to build with single include disabled
49 #AC_DEFINE(G_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GLib])
50 #AC_DEFINE(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GDK pixbuf])
51 #AC_DEFINE(GTK_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GTK])
53 AC_CONFIG_MACRO_DIR([m4])
54 AC_CONFIG_HEADERS([config.h])
55 AC_CONFIG_SRCDIR([configure.ac])
60 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define -Wno-portability)
68 IT_PROG_INTLTOOL([0.35.0])
72 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
73 AC_PATH_PROG(GCONFTOOL, gconftool-2)
75 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
76 AC_SUBST(GLIB_GENMARSHAL)
78 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
79 if test -z "$XSLTPROC"; then
80 AC_MSG_ERROR([xsltproc (from libxslt) is required])
86 # -----------------------------------------------------------
87 # Pkg-Config dependency checks
88 # -----------------------------------------------------------
90 PKG_CHECK_MODULES(LIBEMPATHY,
92 glib-2.0 >= $GLIB_REQUIRED
94 gio-2.0 >= $GLIB_REQUIRED
95 gio-unix-2.0 >= $GLIB_REQUIRED
97 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
98 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
104 PKG_CHECK_MODULES(LIBEMPATHYGTK,
106 glib-2.0 >= $GLIB_REQUIRED
108 gio-2.0 >= $GLIB_REQUIRED
109 gconf-2.0 >= $GCONF_REQUIRED
111 gtk+-2.0 >= $GTK_REQUIRED
112 libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED
113 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
114 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
117 gstreamer-interfaces-0.10
120 PKG_CHECK_MODULES(EMPATHY,
122 glib-2.0 >= $GLIB_REQUIRED
124 gio-2.0 >= $GLIB_REQUIRED
126 gtk+-2.0 >= $GTK_REQUIRED
129 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
130 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
135 PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED)
137 # -----------------------------------------------------------
139 # -----------------------------------------------------------
142 AC_HELP_STRING([--disable-debug],[compile without debug code]),
143 enable_debug=$enableval, enable_debug=yes )
145 if test x$enable_debug = xyes; then
146 AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
149 # -----------------------------------------------------------
151 # -----------------------------------------------------------
153 GETTEXT_PACKAGE=empathy
154 AC_SUBST(GETTEXT_PACKAGE)
155 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
159 # -----------------------------------------------------------
160 # Connectivity integration
161 # -----------------------------------------------------------
162 AC_ARG_WITH(connectivity,
163 AS_HELP_STRING([--with-connectivity=@<:@nm/connman/auto/no@:>@],
164 [build with connectivity support]), ,
165 with_connectivity=auto)
167 PKG_CHECK_MODULES(NETWORK_MANAGER,
169 libnm_glib >= $NETWORK_MANAGER_REQUIRED
170 ], have_nm="yes", have_nm="no")
172 PKG_CHECK_MODULES(CONNMAN,
175 ], have_connman="yes", have_connman="no")
177 if test "x$with_connectivity" = "xno"; then
181 elif test "x$with_connectivity" = "xnm"; then
182 if test "x$have_nm" = "xyes"; then
183 AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
187 elif test "x$with_connectivity" = "xconnman"; then
188 if test "x$have_connman" = "xyes"; then
189 AC_DEFINE(HAVE_CONNMAN, 1, [Define if you have connman dependencies])
194 if test "x$have_nm" = "xyes"; then
195 AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
201 if test "x$with_connectivity" = "xconnman" -a "x$have_connman" != "xyes"; then
202 AC_MSG_ERROR([Couldn't find connman dependencies.])
205 if test "x$with_connectivity" = "xnm" -a "x$have_nm" != "xyes"; then
206 AC_MSG_ERROR([Couldn't find libnm-glib dependencies.])
209 AM_CONDITIONAL(HAVE_NM, test "x$have_nm" = "xyes")
210 AM_CONDITIONAL(HAVE_CONNMAN, test "x$have_connman" = "xyes")
212 # -----------------------------------------------------------
214 # -----------------------------------------------------------
215 AC_ARG_ENABLE(webkit,
216 AS_HELP_STRING([--enable-webkit=@<:@no/yes/auto@:>@],
217 [build with webkit support]), ,
220 if test "x$enable_webkit" != "xno"; then
221 PKG_CHECK_MODULES(WEBKIT,
223 webkit-1.0 >= $WEBKIT_REQUIRED
224 ], have_webkit="yes", have_webkit="no")
226 if test "x$have_webkit" = "xyes"; then
227 AC_DEFINE(HAVE_WEBKIT, 1, [Define if you have libwebkitgtk])
233 if test "x$enable_webkit" = "xyes" -a "x$have_webkit" != "xyes"; then
234 AC_MSG_ERROR([Couldn't find webkit dependencies.])
236 AM_CONDITIONAL(HAVE_WEBKIT, test "x$have_webkit" = "xyes")
238 # -----------------------------------------------------------
239 # spellchecking checks: enchant and iso-codes
240 # -----------------------------------------------------------
242 AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
243 [Enable spell checking]), ,
246 if test "x$enable_spell" != "xno"; then
247 PKG_CHECK_MODULES(ENCHANT,
249 enchant >= $ENCHANT_REQUIRED,
250 iso-codes >= $ISO_CODES_REQUIRED
251 ], have_enchant="yes", have_enchant="no")
253 if test "x$have_enchant" = "xyes"; then
254 AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
255 if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
256 $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
257 AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
258 AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
264 AC_MSG_RESULT([$result])
270 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
271 AC_MSG_ERROR([Couldn't find spell dependencies.])
274 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
276 # -----------------------------------------------------------
277 # Map view checks: libchamplain
278 # -----------------------------------------------------------
280 AS_HELP_STRING([--enable-map=@<:@no/yes/auto@:>@],
281 [Enable map view]), ,
284 if test "x$enable_map" != "xno"; then
285 PKG_CHECK_MODULES(LIBCHAMPLAIN,
287 champlain-0.3 >= $LIBCHAMPLAIN_REQUIRED,
288 champlain-gtk-0.3 >= $LIBCHAMPLAIN_GTK_REQUIRED
289 clutter-gtk-0.10 >= $CLUTTER_GTK_REQUIRED
290 ], have_libchamplain="yes", have_libchamplain="no")
292 if test "x$have_libchamplain" = "xyes"; then
293 AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [Define if you have libchamplain])
299 if test "x$enable_map" = "xyes" -a "x$have_libchamplain" != "xyes"; then
300 AC_MSG_ERROR([Couldn't find map view dependencies.])
303 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN, test "x$have_libchamplain" = "xyes")
305 # -----------------------------------------------------------
306 # location checks: geoclue
307 # -----------------------------------------------------------
308 AC_ARG_ENABLE(location,
309 AS_HELP_STRING([--enable-location=@<:@no/yes/auto@:>@],
310 [Enable location awareness]), ,
311 enable_location=auto)
313 if test "x$enable_location" != "xno"; then
314 PKG_CHECK_MODULES(GEOCLUE,
316 geoclue >= $GEOCLUE_REQUIRED
317 ], have_geoclue="yes", have_geoclue="no")
319 if test "x$have_geoclue" = "xyes"; then
320 AC_DEFINE(HAVE_GEOCLUE, 1, [Define if you have geoclue])
326 if test "x$enable_location" = "xyes" -a "x$have_geoclue" != "xyes"; then
327 AC_MSG_ERROR([Couldn't find location dependencies.])
330 AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes")
331 AC_SUBST(GEOCLUE_CFLAGS)
332 AC_SUBST(GEOCLUE_LIBS)
334 # -----------------------------------------------------------
336 # -----------------------------------------------------------
337 AC_ARG_ENABLE(megaphone,
338 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
339 [build megaphone applet]), ,
340 enable_megaphone=auto)
342 if test "x$enable_megaphone" != "xno"; then
343 PKG_CHECK_MODULES(MEGAPHONE,
345 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
346 glib-2.0 >= $GLIB_REQUIRED
347 gtk+-2.0 >= $GTK_REQUIRED
348 gconf-2.0 >= $GCONF_REQUIRED
349 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
350 ], have_megaphone="yes", have_megaphone="no")
355 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
356 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
359 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
361 # -----------------------------------------------------------
363 # -----------------------------------------------------------
364 AC_ARG_ENABLE(nothere,
365 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
366 [build nothere applet]), ,
369 if test "x$enable_nothere" != "xno"; then
370 PKG_CHECK_MODULES(NOTHERE,
372 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
373 glib-2.0 >= $GLIB_REQUIRED
374 gtk+-2.0 >= $GTK_REQUIRED
375 gconf-2.0 >= $GCONF_REQUIRED
376 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
377 ], have_nothere="yes", have_nothere="no")
382 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
383 AC_MSG_ERROR([Couldn't find nothere dependencies.])
386 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
388 # -----------------------------------------------------------
390 # -----------------------------------------------------------
392 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
396 if test "x$enable_tests" != "xno"; then
397 PKG_CHECK_MODULES(CHECK,
400 ], have_check="yes", have_check="no")
405 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
406 AC_MSG_ERROR([Couldn't find check dependencies.])
409 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
411 # -----------------------------------------------------------
413 # -----------------------------------------------------------
414 AC_ARG_ENABLE(python,
415 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
416 [build python bindings to libempathy and libempathy-gtk]), ,
419 if test "x$enable_python" != "xno"; then
420 PKG_CHECK_MODULES(PYTHON_BINDING,
423 glib-2.0 >= $GLIB_REQUIRED
425 gconf-2.0 >= $GCONF_REQUIRED
427 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
428 gtk+-2.0 >= $GTK_REQUIRED
430 gstreamer-interfaces-0.10
432 ], have_python="yes", have_python="no")
433 if test "x$have_python" = "xyes" ; then
434 AM_CHECK_PYTHON_HEADERS(,have_python="no")
435 AC_CHECK_PROGS([PYGOBJECTCODEGEN], [pygobject-codegen-2.0 pygtk-codegen-2.0])
441 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
442 AC_MSG_ERROR([Couldn't find python.])
445 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
447 # -----------------------------------------------------------
448 # Coding style checks
449 # -----------------------------------------------------------
450 AC_ARG_ENABLE(coding-style-checks,
451 AC_HELP_STRING([--disable-coding-style-checks],
452 [don't check coding style using grep]),
453 [ENABLE_CODING_STYLE_CHECKS=$enableval], [ENABLE_CODING_STYLE_CHECKS=yes])
455 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
456 # -----------------------------------------------------------
463 data/empathy.desktop.in
468 libempathy/libempathy.pc
469 libempathy-gtk/Makefile
470 libempathy-gtk/libempathy-gtk.pc
473 megaphone/src/Makefile
474 megaphone/data/Makefile
477 nothere/data/Makefile
479 docs/libempathy/Makefile
480 docs/libempathy/version.xml
481 docs/libempathy-gtk/Makefile
482 docs/libempathy-gtk/version.xml
485 python/pyempathy/Makefile
486 python/pyempathygtk/Makefile
497 Compiler....................: ${CC}
498 Compiler Flags..............: ${CFLAGS}
499 Prefix......................: ${prefix}
500 Shaved build................: ${enable_shave}
501 Tests.......................: ${have_check}
502 Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS}
505 Spell checking (enchant)....: ${have_enchant}
506 Display maps (libchamplain).: ${have_libchamplain}
507 Location awareness (Geoclue): ${have_geoclue}
508 Adium themes (Webkit).......: ${have_webkit}
511 NetworkManager integration..: ${have_nm}
512 ConnMan integration.........: ${have_connman}
515 Documentation...............: ${enable_gtk_doc}
516 Python bindings.............: ${have_python}
517 Megaphone applet............: ${have_megaphone}
518 Nothere applet..............: ${have_nothere}