1 AC_INIT(Empathy, 0.9, http://bugzilla.gnome.org/browse.cgi?product=empathy)
3 AC_COPYRIGHT([Copyright (C) 2003-2007 Imendio AB])
5 AM_CONFIG_HEADER(config.h)
6 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
18 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
19 AC_PATH_PROG(GCONFTOOL, gconftool-2)
22 IT_PROG_INTLTOOL([0.35.0])
27 LIBGLADE_REQUIRED=2.0.0
28 TELEPATHY_REQUIRED=0.0.51
29 MISSION_CONTROL_REQUIRED=4.22
33 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
34 AC_SUBST(GLIB_GENMARSHAL)
36 pluginlibdir=`$PKG_CONFIG mission-control --variable=pluginlibdir`
37 AC_SUBST(pluginlibdir)
39 dnl -----------------------------------------------------------
41 dnl -----------------------------------------------------------
43 GETTEXT_PACKAGE=empathy
44 AC_SUBST(GETTEXT_PACKAGE)
45 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
49 dnl -----------------------------------------------------------
50 dnl Pkg-Config dependency checks
51 dnl -----------------------------------------------------------
53 PKG_CHECK_MODULES(LIBEMPATHY,
55 glib-2.0 >= $GLIB_REQUIRED
57 gconf-2.0 >= $GCONF_REQUIRED
60 libtelepathy >= $TELEPATHY_REQUIRED
61 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
64 PKG_CHECK_MODULES(EMPATHY,
66 glib-2.0 >= $GLIB_REQUIRED
68 gconf-2.0 >= $GCONF_REQUIRED
71 libtelepathy >= $TELEPATHY_REQUIRED
72 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
73 gtk+-2.0 >= $GTK_REQUIRED
74 libglade-2.0 >= $LIBGLADE_REQUIRED
78 dnl -----------------------------------------------------------
79 dnl ISO codes, used for aspell support
80 dnl -----------------------------------------------------------
81 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
82 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
84 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
85 iso_codes_pkgconfig=iso-codes
94 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
96 dnl -----------------------------------------------------------
98 dnl -----------------------------------------------------------
100 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
101 [compile with aspell support]), ,
104 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
105 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
108 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
109 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
111 if test "x$have_aspell" = "xyes"; then
112 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
113 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
121 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
122 AC_MSG_ERROR([Couldn't find aspell.])
125 dnl -----------------------------------------------------------
129 data/empathy.desktop.in
134 data/scalable/Makefile
137 libempathy-gtk/Makefile