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])
29 LIBGLADE_REQUIRED=2.0.0
30 TELEPATHY_REQUIRED=0.0.51
31 MISSION_CONTROL_REQUIRED=4.27
35 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
36 AC_SUBST(GLIB_GENMARSHAL)
38 pluginlibdir=`$PKG_CONFIG mission-control --variable=pluginlibdir`
39 AC_SUBST(pluginlibdir)
41 dnl -----------------------------------------------------------
43 dnl -----------------------------------------------------------
45 GETTEXT_PACKAGE=empathy
46 AC_SUBST(GETTEXT_PACKAGE)
47 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
51 dnl -----------------------------------------------------------
52 dnl Pkg-Config dependency checks
53 dnl -----------------------------------------------------------
55 PKG_CHECK_MODULES(LIBEMPATHY,
57 glib-2.0 >= $GLIB_REQUIRED
59 gconf-2.0 >= $GCONF_REQUIRED
61 libtelepathy >= $TELEPATHY_REQUIRED
62 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
65 PKG_CHECK_MODULES(EMPATHY,
67 glib-2.0 >= $GLIB_REQUIRED
69 gconf-2.0 >= $GCONF_REQUIRED
72 libtelepathy >= $TELEPATHY_REQUIRED
73 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
74 gtk+-2.0 >= $GTK_REQUIRED
75 libglade-2.0 >= $LIBGLADE_REQUIRED
79 dnl -----------------------------------------------------------
80 dnl ISO codes, used for aspell support
81 dnl -----------------------------------------------------------
82 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
83 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
85 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
86 iso_codes_pkgconfig=iso-codes
95 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
97 dnl -----------------------------------------------------------
99 dnl -----------------------------------------------------------
100 AC_ARG_ENABLE(aspell,
101 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
102 [compile with aspell support]), ,
105 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
106 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
109 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
110 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
112 if test "x$have_aspell" = "xyes"; then
113 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
114 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
122 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
123 AC_MSG_ERROR([Couldn't find aspell.])
126 dnl -----------------------------------------------------------
130 data/empathy.desktop.in
135 data/scalable/Makefile
138 libempathy/libempathy.pc
139 libempathy-gtk/Makefile
140 libempathy-gtk/libempathy-gtk.pc
143 doc/libempathy/Makefile
144 doc/libempathy-gtk/Makefile