1 AC_INIT(Empathy, 0.15, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007 Collabora Ltd.
8 AM_CONFIG_HEADER(config.h)
9 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
17 # LT Version numbers, remember to change them just *before* a release.
18 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
19 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
20 # (No interfaces changed: REVISION++)
25 LIBEMPATHY_GTK_CURRENT=5
27 LIBEMPATHY_GTK_REVISION=0
29 AC_SUBST(LIBEMPATHY_CURRENT)
30 AC_SUBST(LIBEMPATHY_AGE)
31 AC_SUBST(LIBEMPATHY_REVISION)
32 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
33 AC_SUBST(LIBEMPATHY_GTK_AGE)
34 AC_SUBST(LIBEMPATHY_GTK_REVISION)
40 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
41 AC_PATH_PROG(GCONFTOOL, gconftool-2)
44 IT_PROG_INTLTOOL([0.35.0])
51 LIBGLADE_REQUIRED=2.0.0
52 LIBPANELAPPLET_REQUIRED=2.10.0
53 TELEPATHY_REQUIRED=0.0.57
54 MISSION_CONTROL_REQUIRED=4.37
58 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
59 AC_SUBST(GLIB_GENMARSHAL)
61 dnl -----------------------------------------------------------
63 dnl -----------------------------------------------------------
65 GETTEXT_PACKAGE=empathy
66 AC_SUBST(GETTEXT_PACKAGE)
67 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
71 dnl -----------------------------------------------------------
72 dnl Pkg-Config dependency checks
73 dnl -----------------------------------------------------------
75 PKG_CHECK_MODULES(LIBEMPATHY,
77 glib-2.0 >= $GLIB_REQUIRED
79 gconf-2.0 >= $GCONF_REQUIRED
81 libtelepathy >= $TELEPATHY_REQUIRED
82 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
85 PKG_CHECK_MODULES(EMPATHY,
87 glib-2.0 >= $GLIB_REQUIRED
89 gconf-2.0 >= $GCONF_REQUIRED
92 libtelepathy >= $TELEPATHY_REQUIRED
93 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
94 gtk+-2.0 >= $GTK_REQUIRED
95 libglade-2.0 >= $LIBGLADE_REQUIRED
99 dnl -----------------------------------------------------------
100 dnl ISO codes, used for aspell support
101 dnl -----------------------------------------------------------
102 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
103 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
105 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
106 iso_codes_pkgconfig=iso-codes
115 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
117 dnl -----------------------------------------------------------
119 dnl -----------------------------------------------------------
120 AC_ARG_ENABLE(aspell,
121 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
122 [compile with aspell support]), ,
125 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
126 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
129 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
130 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
132 if test "x$have_aspell" = "xyes"; then
133 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
134 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
142 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
143 AC_MSG_ERROR([Couldn't find aspell.])
147 dnl -----------------------------------------------------------
149 dnl -----------------------------------------------------------
150 AC_ARG_ENABLE(megaphone,
151 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
152 [build megaphone applet]), ,
153 enable_megaphone=auto)
155 if test "x$enable_megaphone" != "xno"; then
156 PKG_CHECK_MODULES(MEGAPHONE,
158 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
159 glib-2.0 >= $GLIB_REQUIRED
160 gtk+-2.0 >= $GTK_REQUIRED
161 gconf-2.0 >= $GCONF_REQUIRED
162 libglade-2.0 >= $LIBGLADE_REQUIRED
164 libtelepathy >= $TELEPATHY_REQUIRED
165 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
166 ], have_megaphone="yes", have_megaphone="no")
171 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
172 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
175 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
177 dnl -----------------------------------------------------------
179 dnl -----------------------------------------------------------
180 AC_ARG_ENABLE(nothere,
181 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
182 [build nothere applet]), ,
185 if test "x$enable_nothere" != "xno"; then
186 PKG_CHECK_MODULES(NOTHERE,
188 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
189 glib-2.0 >= $GLIB_REQUIRED
190 gtk+-2.0 >= $GTK_REQUIRED
191 gconf-2.0 >= $GCONF_REQUIRED
192 libglade-2.0 >= $LIBGLADE_REQUIRED
193 libtelepathy >= $TELEPATHY_REQUIRED
194 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
195 ], have_nothere="yes", have_nothere="no")
200 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
201 AC_MSG_ERROR([Couldn't find nothere dependencies.])
204 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
206 dnl -----------------------------------------------------------
208 dnl -----------------------------------------------------------
210 AS_HELP_STRING([--enable-tests=@<:@no/yes@:>@],
214 AM_CONDITIONAL(HAVE_TESTS, test "x$enable_tests" = "xyes")
216 dnl -----------------------------------------------------------
218 dnl -----------------------------------------------------------
219 AC_ARG_ENABLE(python,
220 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
221 [build python bindings to libempathy and libempathy-gtk]), ,
224 if test "x$enable_python" != "xno"; then
226 if test -z "$PYTHON" ; then
229 PKG_CHECK_MODULES(PYTHON_BINDING,
232 glib-2.0 >= $GLIB_REQUIRED
234 gconf-2.0 >= $GCONF_REQUIRED
237 libtelepathy >= $TELEPATHY_REQUIRED
238 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
239 gtk+-2.0 >= $GTK_REQUIRED
240 libglade-2.0 >= $LIBGLADE_REQUIRED
241 ], have_python="yes", have_python="no")
247 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
248 AC_MSG_ERROR([Couldn't find python.])
251 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
253 dnl -----------------------------------------------------------
255 dnl -----------------------------------------------------------
257 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
258 [Add support for Voice and Video call]), ,
261 if test "x$enable_voip" = "xyes"; then
262 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
265 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
267 dnl -----------------------------------------------------------
272 data/empathy.desktop.in
278 data/scalable/Makefile
281 libempathy/libempathy.pc
282 libempathy-gtk/Makefile
283 libempathy-gtk/libempathy-gtk.pc
286 megaphone/src/Makefile
287 megaphone/data/Makefile
290 nothere/data/Makefile
292 doc/libempathy/Makefile
293 doc/libempathy-gtk/Makefile
295 python/pyempathy/Makefile
296 python/pyempathygtk/Makefile