1 AC_INIT(Empathy, 0.21.90, 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=10
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_REQUIRED=0.3.1
34 TELEPATHY_GLIB_REQUIRED=0.7.0
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)
57 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)
68 # -----------------------------------------------------------
69 # Pkg-Config dependency checks
70 # -----------------------------------------------------------
72 PKG_CHECK_MODULES(LIBEMPATHY,
74 glib-2.0 >= $GLIB_REQUIRED
77 libtelepathy >= $TELEPATHY_REQUIRED
78 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
79 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
82 PKG_CHECK_MODULES(EMPATHY,
84 glib-2.0 >= $GLIB_REQUIRED
86 gconf-2.0 >= $GCONF_REQUIRED
87 libtelepathy >= $TELEPATHY_REQUIRED
88 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
89 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
91 gtk+-2.0 >= $GTK_REQUIRED
93 libglade-2.0 >= $LIBGLADE_REQUIRED
97 # -----------------------------------------------------------
99 # -----------------------------------------------------------
101 GETTEXT_PACKAGE=empathy
102 AC_SUBST(GETTEXT_PACKAGE)
103 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
107 # -----------------------------------------------------------
108 # ISO codes, used for aspell support
109 # -----------------------------------------------------------
110 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
111 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
113 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
114 iso_codes_pkgconfig=iso-codes
123 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
125 # -----------------------------------------------------------
127 # -----------------------------------------------------------
128 AC_ARG_ENABLE(aspell,
129 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
130 [compile with aspell support]), ,
133 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
134 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
137 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
138 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
140 if test "x$have_aspell" = "xyes"; then
141 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
142 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
150 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
151 AC_MSG_ERROR([Couldn't find aspell.])
155 # -----------------------------------------------------------
157 # -----------------------------------------------------------
158 AC_ARG_ENABLE(megaphone,
159 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
160 [build megaphone applet]), ,
161 enable_megaphone=auto)
163 if test "x$enable_megaphone" != "xno"; then
164 PKG_CHECK_MODULES(MEGAPHONE,
166 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
167 glib-2.0 >= $GLIB_REQUIRED
168 gtk+-2.0 >= $GTK_REQUIRED
169 gconf-2.0 >= $GCONF_REQUIRED
170 libglade-2.0 >= $LIBGLADE_REQUIRED
172 libtelepathy >= $TELEPATHY_REQUIRED
173 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
174 ], have_megaphone="yes", have_megaphone="no")
179 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
180 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
183 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
185 # -----------------------------------------------------------
187 # -----------------------------------------------------------
188 AC_ARG_ENABLE(nothere,
189 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
190 [build nothere applet]), ,
193 if test "x$enable_nothere" != "xno"; then
194 PKG_CHECK_MODULES(NOTHERE,
196 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
197 glib-2.0 >= $GLIB_REQUIRED
198 gtk+-2.0 >= $GTK_REQUIRED
199 gconf-2.0 >= $GCONF_REQUIRED
200 libglade-2.0 >= $LIBGLADE_REQUIRED
201 libtelepathy >= $TELEPATHY_REQUIRED
202 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
203 ], have_nothere="yes", have_nothere="no")
208 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
209 AC_MSG_ERROR([Couldn't find nothere dependencies.])
212 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
214 # -----------------------------------------------------------
216 # -----------------------------------------------------------
218 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
222 if test "x$enable_tests" != "xno"; then
223 PKG_CHECK_MODULES(CHECK,
226 ], have_check="yes", have_check="no")
231 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
232 AC_MSG_ERROR([Couldn't find check dependencies.])
235 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
237 # -----------------------------------------------------------
239 # -----------------------------------------------------------
240 AC_ARG_ENABLE(python,
241 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
242 [build python bindings to libempathy and libempathy-gtk]), ,
245 if test "x$enable_python" != "xno"; then
247 if test -z "$PYTHON" ; then
250 PKG_CHECK_MODULES(PYTHON_BINDING,
253 glib-2.0 >= $GLIB_REQUIRED
255 gconf-2.0 >= $GCONF_REQUIRED
258 libtelepathy >= $TELEPATHY_REQUIRED
259 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
260 gtk+-2.0 >= $GTK_REQUIRED
261 libglade-2.0 >= $LIBGLADE_REQUIRED
262 ], have_python="yes", have_python="no")
268 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
269 AC_MSG_ERROR([Couldn't find python.])
272 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
274 # -----------------------------------------------------------
276 # -----------------------------------------------------------
278 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
279 [Add support for Voice and Video call]), ,
282 if test "x$enable_voip" = "xyes"; then
283 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
286 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
289 # -----------------------------------------------------------
291 # -----------------------------------------------------------
292 AC_DEFINE_UNQUOTED([UNINSTALLED_GLADE_DIR], ["`pwd`/libempathy-gtk"], [path to glade files])
293 AC_DEFINE_UNQUOTED([UNINSTALLED_DTD_DIR], ["`pwd`/libempathy"], [path to dtd files])
295 # -----------------------------------------------------------
300 data/empathy.desktop.in
304 libempathy/libempathy.pc
305 libempathy-gtk/Makefile
306 libempathy-gtk/libempathy-gtk.pc
309 megaphone/src/Makefile
310 megaphone/data/Makefile
313 nothere/data/Makefile
315 docs/libempathy/Makefile
316 docs/libempathy/version.xml
317 docs/libempathy-gtk/Makefile
318 docs/libempathy-gtk/version.xml
320 python/pyempathy/Makefile
321 python/pyempathygtk/Makefile