Merging upstream version 0.2.6.
[debian/menu-cache.git] / configure.in
1 AC_INIT([menu-cache], [0.2.6],
2         [http://lxde.org/])
3 AC_CONFIG_SRCDIR(menu-cache-gen/gmenu-tree.h)
4
5 AM_INIT_AUTOMAKE
6 AM_CONFIG_HEADER(config.h)
7
8 AM_MAINTAINER_MODE
9
10 AC_ISC_POSIX
11 AC_PROG_CC
12 AM_PROG_CC_C_O
13 AC_STDC_HEADERS
14 dnl AC_ARG_PROGRAM
15 AM_PROG_LIBTOOL
16
17 dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
18 AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
19
20 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0 gio-2.0 >= 2.15.2)
21 AC_SUBST(GLIB_CFLAGS)
22 AC_SUBST(GLIB_LIBS)
23
24 dnl --enable-debug=(yes|minimum|no)
25 AC_ARG_ENABLE(debug, [  --enable-debug=[no/yes] turn on debugging [default=no]],,enable_debug=yes)
26 if test "$enable_debug" = "yes"; then
27   DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
28 else
29   if test "x$enable_debug" = "xno"; then
30     DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
31   else
32     DEBUG_CFLAGS=""
33   fi
34 fi
35 AC_SUBST(DEBUG_CFLAGS)
36
37 AC_OUTPUT([
38 Makefile
39 libmenu-cache/Makefile
40 libmenu-cache/libmenu-cache.pc
41 libmenu-cache/libmenu-cache-uninstalled.pc
42 menu-cache-gen/Makefile
43 menu-cache-daemon/Makefile
44 ])