1 AC_INIT(Empathy, 0.21.5, 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=8
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.37
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])
43 AM_CONFIG_HEADER(config.h)
44 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
52 IT_PROG_INTLTOOL([0.35.0])
55 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
56 AC_PATH_PROG(GCONFTOOL, gconftool-2)
58 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
59 AC_SUBST(GLIB_GENMARSHAL)
61 # -----------------------------------------------------------
62 # Pkg-Config dependency checks
63 # -----------------------------------------------------------
65 PKG_CHECK_MODULES(LIBEMPATHY,
67 glib-2.0 >= $GLIB_REQUIRED
69 gconf-2.0 >= $GCONF_REQUIRED
71 libtelepathy >= $TELEPATHY_REQUIRED
72 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
73 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
76 PKG_CHECK_MODULES(EMPATHY,
78 glib-2.0 >= $GLIB_REQUIRED
80 gconf-2.0 >= $GCONF_REQUIRED
82 libtelepathy >= $TELEPATHY_REQUIRED
83 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
84 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
86 gtk+-2.0 >= $GTK_REQUIRED
88 libglade-2.0 >= $LIBGLADE_REQUIRED
92 # -----------------------------------------------------------
94 # -----------------------------------------------------------
96 GETTEXT_PACKAGE=empathy
97 AC_SUBST(GETTEXT_PACKAGE)
98 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
102 # -----------------------------------------------------------
103 # ISO codes, used for aspell support
104 # -----------------------------------------------------------
105 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
106 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
108 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
109 iso_codes_pkgconfig=iso-codes
118 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
120 # -----------------------------------------------------------
122 # -----------------------------------------------------------
123 AC_ARG_ENABLE(aspell,
124 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
125 [compile with aspell support]), ,
128 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
129 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
132 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
133 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
135 if test "x$have_aspell" = "xyes"; then
136 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
137 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
145 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
146 AC_MSG_ERROR([Couldn't find aspell.])
150 # -----------------------------------------------------------
152 # -----------------------------------------------------------
153 AC_ARG_ENABLE(megaphone,
154 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
155 [build megaphone applet]), ,
156 enable_megaphone=auto)
158 if test "x$enable_megaphone" != "xno"; then
159 PKG_CHECK_MODULES(MEGAPHONE,
161 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
162 glib-2.0 >= $GLIB_REQUIRED
163 gtk+-2.0 >= $GTK_REQUIRED
164 gconf-2.0 >= $GCONF_REQUIRED
165 libglade-2.0 >= $LIBGLADE_REQUIRED
167 libtelepathy >= $TELEPATHY_REQUIRED
168 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
169 ], have_megaphone="yes", have_megaphone="no")
174 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
175 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
178 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
180 # -----------------------------------------------------------
182 # -----------------------------------------------------------
183 AC_ARG_ENABLE(nothere,
184 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
185 [build nothere applet]), ,
188 if test "x$enable_nothere" != "xno"; then
189 PKG_CHECK_MODULES(NOTHERE,
191 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
192 glib-2.0 >= $GLIB_REQUIRED
193 gtk+-2.0 >= $GTK_REQUIRED
194 gconf-2.0 >= $GCONF_REQUIRED
195 libglade-2.0 >= $LIBGLADE_REQUIRED
196 libtelepathy >= $TELEPATHY_REQUIRED
197 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
198 ], have_nothere="yes", have_nothere="no")
203 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
204 AC_MSG_ERROR([Couldn't find nothere dependencies.])
207 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
209 # -----------------------------------------------------------
211 # -----------------------------------------------------------
213 AS_HELP_STRING([--enable-tests=@<:@no/yes@:>@],
217 AM_CONDITIONAL(HAVE_TESTS, test "x$enable_tests" = "xyes")
219 # -----------------------------------------------------------
221 # -----------------------------------------------------------
222 AC_ARG_ENABLE(python,
223 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
224 [build python bindings to libempathy and libempathy-gtk]), ,
227 if test "x$enable_python" != "xno"; then
229 if test -z "$PYTHON" ; then
232 PKG_CHECK_MODULES(PYTHON_BINDING,
235 glib-2.0 >= $GLIB_REQUIRED
237 gconf-2.0 >= $GCONF_REQUIRED
240 libtelepathy >= $TELEPATHY_REQUIRED
241 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
242 gtk+-2.0 >= $GTK_REQUIRED
243 libglade-2.0 >= $LIBGLADE_REQUIRED
244 ], have_python="yes", have_python="no")
250 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
251 AC_MSG_ERROR([Couldn't find python.])
254 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
256 # -----------------------------------------------------------
258 # -----------------------------------------------------------
260 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
261 [Add support for Voice and Video call]), ,
264 if test "x$enable_voip" = "xyes"; then
265 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
268 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
270 # -----------------------------------------------------------
275 data/empathy.desktop.in
279 libempathy/libempathy.pc
280 libempathy-gtk/Makefile
281 libempathy-gtk/libempathy-gtk.pc
284 megaphone/src/Makefile
285 megaphone/data/Makefile
288 nothere/data/Makefile
290 docs/libempathy/Makefile
291 docs/libempathy/version.xml
292 docs/libempathy-gtk/Makefile
293 docs/libempathy-gtk/version.xml
295 python/pyempathy/Makefile
296 python/pyempathygtk/Makefile