bf331eee648d0e5a69f2965f9564f9b9a30c0b61
[empathy.git] / configure.ac
1 AC_INIT(Empathy, 0.3)
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 AM_PROG_LIBTOOL
15 AM_PATH_GLIB_2_0
16 AC_PATH_XTRA
17
18 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
19 AC_PATH_PROG(GCONFTOOL, gconftool-2)
20 AM_GCONF_SOURCE_2
21
22 IT_PROG_INTLTOOL([0.35.0])
23
24 GLIB_REQUIRED=2.12.0
25 GTK_REQUIRED=2.10.0
26 GCONF_REQUIRED=1.2.0
27 LIBGLADE_REQUIRED=2.0.0
28 TELEPATHY_REQUIRED=0.0.51
29 MISSION_CONTROL_REQUIRED=0.21
30
31 IDT_COMPILE_WARNINGS
32
33 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
34 AC_SUBST(GLIB_GENMARSHAL)
35
36 pluginlibdir=`$PKG_CONFIG mission-control --variable=pluginlibdir`
37 AC_SUBST(pluginlibdir)
38
39 dnl -----------------------------------------------------------
40 dnl Language Support
41 dnl -----------------------------------------------------------
42
43 GETTEXT_PACKAGE=empathy
44 AC_SUBST(GETTEXT_PACKAGE)
45 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
46
47 AM_GLIB_GNU_GETTEXT
48
49 dnl -----------------------------------------------------------
50 dnl Pkg-Config dependency checks
51 dnl -----------------------------------------------------------
52
53 PKG_CHECK_MODULES(LIBEMPATHY,
54 [
55    glib-2.0 >= $GLIB_REQUIRED
56    gobject-2.0
57    gconf-2.0 >= $GCONF_REQUIRED
58    libxml-2.0
59    libtelepathy >= $TELEPATHY_REQUIRED
60    libmissioncontrol >= $MISSION_CONTROL_REQUIRED
61 ])
62
63 PKG_CHECK_MODULES(EMPATHY,
64 [
65    glib-2.0 >= $GLIB_REQUIRED
66    gobject-2.0
67    gtk+-2.0 >= $GTK_REQUIRED
68    gconf-2.0 >= $GCONF_REQUIRED
69    libglade-2.0 >= $LIBGLADE_REQUIRED
70    libgnomeui-2.0
71    libtelepathy >= $TELEPATHY_REQUIRED
72    libmissioncontrol >= $MISSION_CONTROL_REQUIRED
73 ])
74
75 PKG_CHECK_MODULES(MISSION_CONTROL_PLUGINS,
76 [
77    mission-control >= $MISSION_CONTROL_REQUIRED
78    glib-2.0 >= $GLIB_REQUIRED
79    gobject-2.0
80    dbus-glib-1
81    libtelepathy >= $TELEPATHY_REQUIRED
82 ])
83
84 dnl -----------------------------------------------------------
85 AC_OUTPUT([
86   Makefile
87   data/Makefile
88   data/16x16/Makefile
89   po/Makefile.in
90   libempathy/Makefile
91   libempathy-gtk/Makefile
92   src/Makefile
93 ])
94