1 AC_INIT(Empathy, 2.27.3, 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=23
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.31
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.0
39 LIBCHAMPLAIN_GTK_REQUIRED=0.3.0
40 CLUTTER_GTK_REQUIRED=0.8.2
43 # Use --enable-maintainer-mode to disabled deprecated symbols
44 GNOME_MAINTAINER_MODE_DEFINES
46 # Uncomment that to build with single include disabled
47 #AC_DEFINE(G_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GLib])
48 #AC_DEFINE(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GDK pixbuf])
49 #AC_DEFINE(GTK_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GTK])
51 AC_CONFIG_MACRO_DIR([m4])
52 AC_CONFIG_HEADERS([config.h])
53 AC_CONFIG_SRCDIR([configure.ac])
58 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define -Wno-portability)
66 IT_PROG_INTLTOOL([0.35.0])
70 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
71 AC_PATH_PROG(GCONFTOOL, gconftool-2)
73 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
74 AC_SUBST(GLIB_GENMARSHAL)
76 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
77 if test -z "$XSLTPROC"; then
78 AC_MSG_ERROR([xsltproc (from libxslt) is required])
84 # -----------------------------------------------------------
85 # Pkg-Config dependency checks
86 # -----------------------------------------------------------
88 PKG_CHECK_MODULES(LIBEMPATHY,
90 glib-2.0 >= $GLIB_REQUIRED
92 gio-2.0 >= $GLIB_REQUIRED
93 gio-unix-2.0 >= $GLIB_REQUIRED
95 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
96 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
100 PKG_CHECK_MODULES(LIBEMPATHYGTK,
102 glib-2.0 >= $GLIB_REQUIRED
104 gio-2.0 >= $GLIB_REQUIRED
105 gconf-2.0 >= $GCONF_REQUIRED
107 gtk+-2.0 >= $GTK_REQUIRED
108 libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED
109 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
110 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
114 gstreamer-interfaces-0.10
117 PKG_CHECK_MODULES(EMPATHY,
119 glib-2.0 >= $GLIB_REQUIRED
121 gio-2.0 >= $GLIB_REQUIRED
122 gconf-2.0 >= $GCONF_REQUIRED
124 gtk+-2.0 >= $GTK_REQUIRED
125 libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED
127 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
128 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
131 gstreamer-interfaces-0.10
134 PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED)
136 # -----------------------------------------------------------
138 # -----------------------------------------------------------
141 AC_HELP_STRING([--disable-debug],[compile without debug code]),
142 enable_debug=$enableval, enable_debug=yes )
144 if test x$enable_debug = xyes; then
145 AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
148 # -----------------------------------------------------------
150 # -----------------------------------------------------------
152 GETTEXT_PACKAGE=empathy
153 AC_SUBST(GETTEXT_PACKAGE)
154 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
158 # -----------------------------------------------------------
159 # spellchecking checks: enchant and iso-codes
160 # -----------------------------------------------------------
162 AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
163 [Enable spell checking]), ,
166 if test "x$enable_spell" != "xno"; then
167 PKG_CHECK_MODULES(ENCHANT,
169 enchant >= $ENCHANT_REQUIRED,
170 iso-codes >= $ISO_CODES_REQUIRED
171 ], have_enchant="yes", have_enchant="no")
173 if test "x$have_enchant" = "xyes"; then
174 AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
175 if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
176 $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
177 AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
178 AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
184 AC_MSG_RESULT([$result])
190 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
191 AC_MSG_ERROR([Couldn't find spell dependencies.])
194 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
196 # -----------------------------------------------------------
197 # Map view checks: libchamplain
198 # -----------------------------------------------------------
200 AS_HELP_STRING([--enable-map=@<:@no/yes/auto@:>@],
201 [Enable map view]), ,
204 if test "x$enable_map" != "xno"; then
205 PKG_CHECK_MODULES(LIBCHAMPLAIN,
207 champlain-0.3 >= $LIBCHAMPLAIN_REQUIRED,
208 champlain-gtk-0.3 >= $LIBCHAMPLAIN_GTK_REQUIRED
209 clutter-gtk-0.8 >= $CLUTTER_GTK_REQUIRED
210 ], have_libchamplain="yes", have_libchamplain="no")
212 if test "x$have_libchamplain" = "xyes"; then
213 AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [Define if you have libchamplain])
219 if test "x$enable_map" = "xyes" -a "x$have_libchamplain" != "xyes"; then
220 AC_MSG_ERROR([Couldn't find map view dependencies.])
223 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN, test "x$have_libchamplain" = "xyes")
225 # -----------------------------------------------------------
226 # location checks: geoclue
227 # -----------------------------------------------------------
228 AC_ARG_ENABLE(location,
229 AS_HELP_STRING([--enable-location=@<:@no/yes/auto@:>@],
230 [Enable location awareness]), ,
231 enable_location=auto)
233 if test "x$enable_location" != "xno"; then
234 PKG_CHECK_MODULES(GEOCLUE,
236 geoclue >= $GEOCLUE_REQUIRED
237 ], have_geoclue="yes", have_geoclue="no")
239 if test "x$have_geoclue" = "xyes"; then
240 AC_DEFINE(HAVE_GEOCLUE, 1, [Define if you have geoclue])
246 if test "x$enable_location" = "xyes" -a "x$have_geoclue" != "xyes"; then
247 AC_MSG_ERROR([Couldn't find location dependencies.])
250 AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes")
251 AC_SUBST(GEOCLUE_CFLAGS)
252 AC_SUBST(GEOCLUE_LIBS)
254 # -----------------------------------------------------------
256 # -----------------------------------------------------------
257 AC_ARG_ENABLE(megaphone,
258 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
259 [build megaphone applet]), ,
260 enable_megaphone=auto)
262 if test "x$enable_megaphone" != "xno"; then
263 PKG_CHECK_MODULES(MEGAPHONE,
265 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
266 glib-2.0 >= $GLIB_REQUIRED
267 gtk+-2.0 >= $GTK_REQUIRED
268 gconf-2.0 >= $GCONF_REQUIRED
269 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
270 ], have_megaphone="yes", have_megaphone="no")
275 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
276 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
279 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
281 # -----------------------------------------------------------
283 # -----------------------------------------------------------
284 AC_ARG_ENABLE(nothere,
285 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
286 [build nothere applet]), ,
289 if test "x$enable_nothere" != "xno"; then
290 PKG_CHECK_MODULES(NOTHERE,
292 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
293 glib-2.0 >= $GLIB_REQUIRED
294 gtk+-2.0 >= $GTK_REQUIRED
295 gconf-2.0 >= $GCONF_REQUIRED
296 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
297 ], have_nothere="yes", have_nothere="no")
302 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
303 AC_MSG_ERROR([Couldn't find nothere dependencies.])
306 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
308 # -----------------------------------------------------------
310 # -----------------------------------------------------------
312 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
316 if test "x$enable_tests" != "xno"; then
317 PKG_CHECK_MODULES(CHECK,
320 ], have_check="yes", have_check="no")
325 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
326 AC_MSG_ERROR([Couldn't find check dependencies.])
329 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
331 # -----------------------------------------------------------
333 # -----------------------------------------------------------
334 AC_ARG_ENABLE(python,
335 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
336 [build python bindings to libempathy and libempathy-gtk]), ,
339 if test "x$enable_python" != "xno"; then
340 PKG_CHECK_MODULES(PYTHON_BINDING,
343 glib-2.0 >= $GLIB_REQUIRED
345 gconf-2.0 >= $GCONF_REQUIRED
347 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
348 gtk+-2.0 >= $GTK_REQUIRED
350 gstreamer-interfaces-0.10
352 ], have_python="yes", have_python="no")
353 if test "x$have_python" = "xyes" ; then
354 AM_CHECK_PYTHON_HEADERS(,have_python="no")
355 AC_CHECK_PROGS([PYGOBJECTCODEGEN], [pygobject-codegen-2.0 pygtk-codegen-2.0])
361 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
362 AC_MSG_ERROR([Couldn't find python.])
365 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
367 # -----------------------------------------------------------
368 # Coding style checks
369 # -----------------------------------------------------------
370 AC_ARG_ENABLE(coding-style-checks,
371 AC_HELP_STRING([--disable-coding-style-checks],
372 [don't check coding style using grep]),
373 [ENABLE_CODING_STYLE_CHECKS=$enableval], [ENABLE_CODING_STYLE_CHECKS=yes])
375 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
376 # -----------------------------------------------------------
383 data/empathy.desktop.in
388 libempathy/libempathy.pc
389 libempathy-gtk/Makefile
390 libempathy-gtk/libempathy-gtk.pc
393 megaphone/src/Makefile
394 megaphone/data/Makefile
397 nothere/data/Makefile
399 docs/libempathy/Makefile
400 docs/libempathy/version.xml
401 docs/libempathy-gtk/Makefile
402 docs/libempathy-gtk/version.xml
405 python/pyempathy/Makefile
406 python/pyempathygtk/Makefile
417 Compiler....................: ${CC}
418 Compiler Flags..............: ${CFLAGS}
419 Prefix......................: ${prefix}
420 Shaved build................: ${enable_shave}
421 Tests.......................: ${have_check}
422 Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS}
425 Spell checking (enchant)....: ${have_enchant}
426 Display maps (libchamplain).: ${have_libchamplain}
427 Location awareness (Geoclue): ${have_geoclue}
430 Documentation...............: ${enable_gtk_doc}
431 Python bindings.............: ${have_python}
432 Megaphone applet............: ${have_megaphone}
433 Nothere applet..............: ${have_nothere}