Autotoolised
[gregoa/zavai.git] / configure.ac
1 AC_INIT([zavai], [0.1], [enrico@enricozini.org], [zavai])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE(foreign)
5
6 # Checks for programs.
7 AC_PROG_CC
8 AM_PROG_CC_C_O
9 AC_DISABLE_STATIC
10 AC_PROG_LIBTOOL
11
12 AC_CONFIG_MACRO_DIR([m4])
13
14 AC_PATH_PROG(VALAC, valac, valac)
15 AC_SUBST(VALAC)
16
17 AC_SUBST(CFLAGS)
18 AC_SUBST(CPPFLAGS)
19 AC_SUBST(LDFLAGS)
20
21 GLIB_REQUIRED=2.10.0
22 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
23 AC_SUBST(GLIB_CFLAGS)
24 AC_SUBST(GLIB_LIBS)
25
26 PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.80)
27 AC_SUBST(DBUS_CFLAGS)
28 AC_SUBST(DBUS_LIBS)
29
30 PKG_CHECK_MODULES(GEE, gee-1.0 >= 0.1)
31 AC_SUBST(GEE_CFLAGS)
32 AC_SUBST(GEE_LIBS)
33
34 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16.0)
35 AC_SUBST(GTK_CFLAGS)
36 AC_SUBST(GTK_LIBS)
37
38 AC_CONFIG_FILES([Makefile
39            src/Makefile])
40
41 AC_OUTPUT