]> git.0d.be Git - empathy.git/blob - configure.ac
Bump version to 0.10
[empathy.git] / configure.ac
1 AC_INIT(Empathy, 0.10, http://bugzilla.gnome.org/browse.cgi?product=empathy)
2 AC_PREREQ(2.59)
3 AC_COPYRIGHT([Copyright (C) 2003-2007 Imendio AB])
4
5 AM_CONFIG_HEADER(config.h)
6 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
7
8 AM_MAINTAINER_MODE
9
10 AC_ISC_POSIX
11 AC_PROG_CC
12 AC_HEADER_STDC
13
14 # LT Version numbers, remember to change them just *before* a release.
15 #   (Interfaces removed:    CURRENT++, AGE=0, REVISION=0)
16 #   (Interfaces added:      CURRENT++, AGE++, REVISION=0)
17 #   (No interfaces changed:                   REVISION++)
18 LIBEMPATHY_CURRENT=0
19 LIBEMPATHY_AGE=0
20 LIBEMPATHY_REVISION=0
21 AC_SUBST(LIBEMPATHY_CURRENT)
22 AC_SUBST(LIBEMPATHY_AGE)
23 AC_SUBST(LIBEMPATHY_REVISION)
24
25 LIBEMPATHY_GTK_CURRENT=0
26 LIBEMPATHY_GTK_AGE=0
27 LIBEMPATHY_GTK_REVISION=0
28 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
29 AC_SUBST(LIBEMPATHY_GTK_AGE)
30 AC_SUBST(LIBEMPATHY_GTK_REVISION)
31
32 AM_PROG_LIBTOOL
33 AM_PATH_GLIB_2_0
34 AC_PATH_XTRA
35
36 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
37 AC_PATH_PROG(GCONFTOOL, gconftool-2)
38 AM_GCONF_SOURCE_2
39
40 IT_PROG_INTLTOOL([0.35.0])
41
42 GTK_DOC_CHECK([1.3])
43
44 GLIB_REQUIRED=2.12.0
45 GTK_REQUIRED=2.10.0
46 GCONF_REQUIRED=1.2.0
47 LIBGLADE_REQUIRED=2.0.0
48 TELEPATHY_REQUIRED=0.0.51
49 MISSION_CONTROL_REQUIRED=4.27
50
51 IDT_COMPILE_WARNINGS
52
53 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
54 AC_SUBST(GLIB_GENMARSHAL)
55
56 pluginlibdir=`$PKG_CONFIG mission-control --variable=pluginlibdir`
57 AC_SUBST(pluginlibdir)
58
59 dnl -----------------------------------------------------------
60 dnl Language Support
61 dnl -----------------------------------------------------------
62
63 GETTEXT_PACKAGE=empathy
64 AC_SUBST(GETTEXT_PACKAGE)
65 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
66
67 AM_GLIB_GNU_GETTEXT
68
69 dnl -----------------------------------------------------------
70 dnl Pkg-Config dependency checks
71 dnl -----------------------------------------------------------
72
73 PKG_CHECK_MODULES(LIBEMPATHY,
74 [
75    glib-2.0 >= $GLIB_REQUIRED
76    gobject-2.0
77    gconf-2.0 >= $GCONF_REQUIRED
78    libxml-2.0
79    libtelepathy >= $TELEPATHY_REQUIRED
80    libmissioncontrol >= $MISSION_CONTROL_REQUIRED
81 ])
82
83 PKG_CHECK_MODULES(EMPATHY,
84 [
85    glib-2.0 >= $GLIB_REQUIRED
86    gobject-2.0
87    gconf-2.0 >= $GCONF_REQUIRED
88    libxml-2.0
89    gnome-vfs-2.0
90    libtelepathy >= $TELEPATHY_REQUIRED
91    libmissioncontrol >= $MISSION_CONTROL_REQUIRED
92    gtk+-2.0 >= $GTK_REQUIRED
93    libglade-2.0 >= $LIBGLADE_REQUIRED
94    libgnomeui-2.0
95 ])
96
97 dnl -----------------------------------------------------------
98 dnl ISO codes, used for aspell support
99 dnl -----------------------------------------------------------
100 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
101 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
102    AC_MSG_RESULT([yes])
103    iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
104    iso_codes_pkgconfig=iso-codes
105    have_iso_codes=yes
106 else
107    AC_MSG_RESULT([no])
108    iso_codes_prefix=
109    iso_codes_pkgconfig=
110    have_iso_codes=no
111 fi
112
113 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
114
115 dnl -----------------------------------------------------------
116 dnl ASpell
117 dnl -----------------------------------------------------------
118 AC_ARG_ENABLE(aspell,
119               AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
120                              [compile with aspell support]), ,
121                              enable_aspell=auto)
122
123 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
124    AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
125 fi
126
127 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
128    AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
129
130    if test "x$have_aspell" = "xyes"; then
131       AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
132       EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
133    else
134       have_aspell=no
135    fi
136 else
137    have_aspell=no
138 fi
139
140 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
141    AC_MSG_ERROR([Couldn't find aspell.])
142 fi
143
144 dnl -----------------------------------------------------------
145 AC_OUTPUT([
146   Makefile
147   data/Makefile
148   data/empathy.desktop.in
149   data/16x16/Makefile
150   data/22x22/Makefile
151   data/32x32/Makefile
152   data/48x48/Makefile
153   data/scalable/Makefile
154   po/Makefile.in
155   libempathy/Makefile
156   libempathy/libempathy.pc
157   libempathy-gtk/Makefile
158   libempathy-gtk/libempathy-gtk.pc
159   src/Makefile
160   doc/Makefile
161   doc/libempathy/Makefile
162   doc/libempathy-gtk/Makefile
163 ])
164