1 AC_INIT(Empathy, 0.22.0, 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_REQUIRED=0.3.2
34 TELEPATHY_GLIB_REQUIRED=0.7.3
35 MISSION_CONTROL_REQUIRED=4.53
37 # Uncomment that to build without deprecated symbols
38 # AC_DEFINE(GTK_DISABLE_DEPRECATED, 1, [Disable deprecated GTK symbols])
39 # AC_DEFINE(G_DISABLE_DEPRECATED, 1, [Disable deprecated GLib symbols])
40 # AC_DEFINE(LIBTELEPATHY_DISABLE_DEPRECATED, 1, [Disable deprecated libtelepathy symbols])
42 AC_CONFIG_MACRO_DIR([m4])
43 AC_CONFIG_HEADERS([config.h])
44 AC_CONFIG_SRCDIR([configure.ac])
49 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define -Wno-portability)
58 IT_PROG_INTLTOOL([0.35.0])
61 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
62 AC_PATH_PROG(GCONFTOOL, gconftool-2)
64 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
65 AC_SUBST(GLIB_GENMARSHAL)
67 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
68 if test -z "$XSLTPROC"; then
69 AC_MSG_ERROR([xsltproc (from libxslt) is required])
71 AC_CHECK_PROGS([PYTHON], [python2.3 python2.4 python2.5 python])
72 if test -z "$PYTHON"; then
73 AC_MSG_ERROR([Python is required])
78 # -----------------------------------------------------------
79 # Pkg-Config dependency checks
80 # -----------------------------------------------------------
82 PKG_CHECK_MODULES(LIBEMPATHY,
84 glib-2.0 >= $GLIB_REQUIRED
87 libtelepathy >= $TELEPATHY_REQUIRED
88 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
89 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
92 PKG_CHECK_MODULES(EMPATHY,
94 glib-2.0 >= $GLIB_REQUIRED
96 gio-2.0 >= $GLIB_REQUIRED
97 gconf-2.0 >= $GCONF_REQUIRED
98 libtelepathy >= $TELEPATHY_REQUIRED
99 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
100 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
101 gtk+-2.0 >= $GTK_REQUIRED
103 libglade-2.0 >= $LIBGLADE_REQUIRED
107 # -----------------------------------------------------------
109 # -----------------------------------------------------------
111 GETTEXT_PACKAGE=empathy
112 AC_SUBST(GETTEXT_PACKAGE)
113 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
117 # -----------------------------------------------------------
118 # ISO codes, used for aspell support
119 # -----------------------------------------------------------
120 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
121 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
123 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
124 iso_codes_pkgconfig=iso-codes
133 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
135 # -----------------------------------------------------------
137 # -----------------------------------------------------------
138 AC_ARG_ENABLE(aspell,
139 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
140 [compile with aspell support]), ,
143 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
144 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
147 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
148 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
150 if test "x$have_aspell" = "xyes"; then
151 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
152 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
160 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
161 AC_MSG_ERROR([Couldn't find aspell.])
165 # -----------------------------------------------------------
167 # -----------------------------------------------------------
168 AC_ARG_ENABLE(megaphone,
169 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
170 [build megaphone applet]), ,
171 enable_megaphone=auto)
173 if test "x$enable_megaphone" != "xno"; then
174 PKG_CHECK_MODULES(MEGAPHONE,
176 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
177 glib-2.0 >= $GLIB_REQUIRED
178 gtk+-2.0 >= $GTK_REQUIRED
179 gconf-2.0 >= $GCONF_REQUIRED
180 libglade-2.0 >= $LIBGLADE_REQUIRED
181 libtelepathy >= $TELEPATHY_REQUIRED
182 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
183 ], have_megaphone="yes", have_megaphone="no")
188 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
189 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
192 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
194 # -----------------------------------------------------------
196 # -----------------------------------------------------------
197 AC_ARG_ENABLE(nothere,
198 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
199 [build nothere applet]), ,
202 if test "x$enable_nothere" != "xno"; then
203 PKG_CHECK_MODULES(NOTHERE,
205 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
206 glib-2.0 >= $GLIB_REQUIRED
207 gtk+-2.0 >= $GTK_REQUIRED
208 gconf-2.0 >= $GCONF_REQUIRED
209 libglade-2.0 >= $LIBGLADE_REQUIRED
210 libtelepathy >= $TELEPATHY_REQUIRED
211 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
212 ], have_nothere="yes", have_nothere="no")
217 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
218 AC_MSG_ERROR([Couldn't find nothere dependencies.])
221 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
223 # -----------------------------------------------------------
225 # -----------------------------------------------------------
227 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
231 if test "x$enable_tests" != "xno"; then
232 PKG_CHECK_MODULES(CHECK,
235 ], have_check="yes", have_check="no")
240 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
241 AC_MSG_ERROR([Couldn't find check dependencies.])
244 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
246 # -----------------------------------------------------------
248 # -----------------------------------------------------------
249 AC_ARG_ENABLE(python,
250 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
251 [build python bindings to libempathy and libempathy-gtk]), ,
254 if test "x$enable_python" != "xno"; then
256 if test -z "$PYTHON" ; then
259 PKG_CHECK_MODULES(PYTHON_BINDING,
262 glib-2.0 >= $GLIB_REQUIRED
264 gconf-2.0 >= $GCONF_REQUIRED
266 libtelepathy >= $TELEPATHY_REQUIRED
267 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
268 gtk+-2.0 >= $GTK_REQUIRED
269 libglade-2.0 >= $LIBGLADE_REQUIRED
270 ], have_python="yes", have_python="no")
276 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
277 AC_MSG_ERROR([Couldn't find python.])
280 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
282 # -----------------------------------------------------------
284 # -----------------------------------------------------------
286 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
287 [Add support for Voice and Video call]), ,
290 if test "x$enable_voip" = "xyes"; then
291 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
294 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
296 # -----------------------------------------------------------
301 data/empathy.desktop.in
306 libempathy/libempathy.pc
307 libempathy-gtk/Makefile
308 libempathy-gtk/libempathy-gtk.pc
311 megaphone/src/Makefile
312 megaphone/data/Makefile
315 nothere/data/Makefile
317 docs/libempathy/Makefile
318 docs/libempathy/version.xml
319 docs/libempathy-gtk/Makefile
320 docs/libempathy-gtk/version.xml
322 python/pyempathy/Makefile
323 python/pyempathygtk/Makefile