1 AC_INIT(Empathy, 0.23.2, 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=12
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 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 dnl ================================================================
115 dnl spellchecking checks: enchant and iso-codes
116 dnl ================================================================
118 ENCHANT_REQUIRED=1.2.0
119 ISO_CODES_REQUIRED=0.35
121 AC_ARG_ENABLE([spell],
122 AS_HELP_STRING([--disable-spell],[Disable spell checking (default: enabled)]),
123 [enable_enchant=$enableval],
124 [enable_enchant=yes])
126 if test "x$enable_enchant" = "xyes" ; then
128 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED, \
129 have_enchant=yes, have_enchant=no)
131 if test "x$have_enchant" = "xyes"; then
133 PKG_CHECK_EXISTS([iso-codes >= $ISO_CODES_REQUIRED],
134 [have_iso_codes=yes],[have_iso_codes=no])
136 if test "x$have_iso_codes" = "xyes"; then
137 AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
138 if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
139 $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
145 AC_MSG_RESULT([$result])
148 if test "x$have_iso_codes" = "xyes"; then
149 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix])
150 AC_DEFINE([HAVE_ISO_CODES],[1],[Define if you have the iso-codes package])
152 AC_MSG_ERROR([iso-codes is required for spellchecking. Use --disable-spell to build without spellchecking support.])
156 ENCHANT_CFLAGS="${ENCHANT_CFLAGS}"
157 ENCHANT_LIBS="${ENCHANT_LIBS}"
158 AC_DEFINE([HAVE_ENCHANT],[1],[Define if you have libenchant])
160 AC_MSG_ERROR([Enchant library not found or too old. Use --disable-spell to build without spellchecking support.])
168 AC_SUBST(ENCHANT_CFLAGS)
169 AC_SUBST(ENCHANT_LIBS)
172 # -----------------------------------------------------------
174 # -----------------------------------------------------------
175 AC_ARG_ENABLE(megaphone,
176 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
177 [build megaphone applet]), ,
178 enable_megaphone=auto)
180 if test "x$enable_megaphone" != "xno"; then
181 PKG_CHECK_MODULES(MEGAPHONE,
183 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
184 glib-2.0 >= $GLIB_REQUIRED
185 gtk+-2.0 >= $GTK_REQUIRED
186 gconf-2.0 >= $GCONF_REQUIRED
187 libglade-2.0 >= $LIBGLADE_REQUIRED
188 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
189 ], have_megaphone="yes", have_megaphone="no")
194 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
195 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
198 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
200 # -----------------------------------------------------------
202 # -----------------------------------------------------------
203 AC_ARG_ENABLE(nothere,
204 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
205 [build nothere applet]), ,
208 if test "x$enable_nothere" != "xno"; then
209 PKG_CHECK_MODULES(NOTHERE,
211 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
212 glib-2.0 >= $GLIB_REQUIRED
213 gtk+-2.0 >= $GTK_REQUIRED
214 gconf-2.0 >= $GCONF_REQUIRED
215 libglade-2.0 >= $LIBGLADE_REQUIRED
216 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
217 ], have_nothere="yes", have_nothere="no")
222 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
223 AC_MSG_ERROR([Couldn't find nothere dependencies.])
226 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
228 # -----------------------------------------------------------
230 # -----------------------------------------------------------
232 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
236 if test "x$enable_tests" != "xno"; then
237 PKG_CHECK_MODULES(CHECK,
240 ], have_check="yes", have_check="no")
245 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
246 AC_MSG_ERROR([Couldn't find check dependencies.])
249 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
251 # -----------------------------------------------------------
253 # -----------------------------------------------------------
254 AC_ARG_ENABLE(python,
255 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
256 [build python bindings to libempathy and libempathy-gtk]), ,
259 if test "x$enable_python" != "xno"; then
261 if test -z "$PYTHON" ; then
264 PKG_CHECK_MODULES(PYTHON_BINDING,
267 glib-2.0 >= $GLIB_REQUIRED
269 gconf-2.0 >= $GCONF_REQUIRED
271 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
272 gtk+-2.0 >= $GTK_REQUIRED
273 libglade-2.0 >= $LIBGLADE_REQUIRED
274 ], have_python="yes", have_python="no")
275 if test "x$have_python" = "xyes" ; then
276 AM_CHECK_PYTHON_HEADERS(,have_python="no")
283 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
284 AC_MSG_ERROR([Couldn't find python.])
287 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
289 # -----------------------------------------------------------
291 # -----------------------------------------------------------
293 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
294 [Add support for Voice and Video call]), ,
297 if test "x$enable_voip" = "xyes"; then
298 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
301 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
303 # -----------------------------------------------------------
308 data/empathy.desktop.in
313 libempathy/libempathy.pc
314 libempathy-gtk/Makefile
315 libempathy-gtk/libempathy-gtk.pc
318 megaphone/src/Makefile
319 megaphone/data/Makefile
322 nothere/data/Makefile
324 docs/libempathy/Makefile
325 docs/libempathy/version.xml
326 docs/libempathy-gtk/Makefile
327 docs/libempathy-gtk/version.xml
330 python/pyempathy/Makefile
331 python/pyempathygtk/Makefile