1 AC_INIT(Empathy, 0.13, 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=3
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 TELEPATHY_REQUIRED=0.0.51
53 MISSION_CONTROL_REQUIRED=4.33
57 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
58 AC_SUBST(GLIB_GENMARSHAL)
60 pluginlibdir=`$PKG_CONFIG mission-control --variable=pluginlibdir`
61 AC_SUBST(pluginlibdir)
63 dnl -----------------------------------------------------------
65 dnl -----------------------------------------------------------
67 GETTEXT_PACKAGE=empathy
68 AC_SUBST(GETTEXT_PACKAGE)
69 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
73 dnl -----------------------------------------------------------
74 dnl Pkg-Config dependency checks
75 dnl -----------------------------------------------------------
77 PKG_CHECK_MODULES(LIBEMPATHY,
79 glib-2.0 >= $GLIB_REQUIRED
81 gconf-2.0 >= $GCONF_REQUIRED
83 libtelepathy >= $TELEPATHY_REQUIRED
84 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
87 PKG_CHECK_MODULES(EMPATHY,
89 glib-2.0 >= $GLIB_REQUIRED
91 gconf-2.0 >= $GCONF_REQUIRED
94 libtelepathy >= $TELEPATHY_REQUIRED
95 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
96 gtk+-2.0 >= $GTK_REQUIRED
97 libglade-2.0 >= $LIBGLADE_REQUIRED
102 dnl -----------------------------------------------------------
103 dnl ISO codes, used for aspell support
104 dnl -----------------------------------------------------------
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 dnl -----------------------------------------------------------
122 dnl -----------------------------------------------------------
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 dnl -----------------------------------------------------------
152 dnl -----------------------------------------------------------
153 AC_ARG_ENABLE(python,
154 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
155 [build python bindings to libempathy and libempathy-gtk]), ,
158 if test "x$enable_python" != "xno"; then
160 if test -z "$PYTHON" ; then
163 PKG_CHECK_MODULES(PYTHON_BINDING,
166 glib-2.0 >= $GLIB_REQUIRED
168 gconf-2.0 >= $GCONF_REQUIRED
171 libtelepathy >= $TELEPATHY_REQUIRED
172 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
173 gtk+-2.0 >= $GTK_REQUIRED
174 libglade-2.0 >= $LIBGLADE_REQUIRED
176 ], have_python="yes", have_python="no")
182 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
183 AC_MSG_ERROR([Couldn't find python.])
186 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
188 dnl -----------------------------------------------------------
193 data/empathy.desktop.in
199 data/scalable/Makefile
202 libempathy/libempathy.pc
203 libempathy-gtk/Makefile
204 libempathy-gtk/libempathy-gtk.pc
207 doc/libempathy/Makefile
208 doc/libempathy-gtk/Makefile
210 python/pyempathy/Makefile
211 python/pyempathygtk/Makefile