tests: fix a small lie
[dconf.git] / configure.ac
blob87356b6a9f55ee960594f31fde30b0e65f82fd0e
1 AC_INIT([dconf],
2         [0.19.2],
3         [https://bugzilla.gnome.org/enter_bug.cgi?product=dconf],
4         [dconf])
6 AC_CONFIG_SRCDIR([configure.ac])
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_AUX_DIR([aux])
9 AC_CONFIG_HEADERS([config.h])
11 AM_INIT_AUTOMAKE([1.11 foreign -Wno-portability no-dist-gzip dist-xz])
12 AM_SILENT_RULES([yes])
14 # Set default CFLAGS before AC_PROG_CC does
15 if test "${CFLAGS+yes}" != "yes"; then
16   CFLAGS='-O2 -g -Wall -Wwrite-strings -Wmissing-prototypes -fno-common'
19 # Check for programs
20 AC_PROG_CC
21 AM_PROG_VALAC([0.17.0])
22 AC_PROG_RANLIB
23 AC_ARG_ENABLE(man,
24               [AS_HELP_STRING([--enable-man],
25                               [generate man pages [default=yes]])],,
26               enable_man=yes)
28 AS_IF([test "$enable_man" != no], [
29   AC_PATH_PROG([XSLTPROC], [xsltproc])
30   AS_IF([test -z "$XSLTPROC"], [
31     AC_MSG_ERROR([xsltproc is required for --enable-man])
32   ])
34 AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
36 # Use GLib resources
37 AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
39 # Use GSettings
40 GLIB_GSETTINGS
42 # Gtk-doc support
43 GTK_DOC_CHECK([1.15])
45 # Dependencies
46 PKG_CHECK_MODULES(glib, glib-2.0 >= 2.39.1)
47 PKG_CHECK_MODULES(gio, gio-unix-2.0)
48 PKG_CHECK_MODULES(dbus, dbus-1)
50 AC_ARG_ENABLE(editor,
51               AC_HELP_STRING([--disable-editor],
52                              [Disable the dconf editor]))
53 AM_CONDITIONAL(ENABLE_EDITOR, test "x$enable_editor" != "xno")
55 if test "x$enable_editor" != "xno"; then
56   PKG_CHECK_MODULES(gtk, gtk+-3.0 >= 3.4)
57   PKG_CHECK_MODULES(gmodule, gmodule-2.0)
58   PKG_CHECK_MODULES(libxml, libxml-2.0)
61 AC_ARG_WITH(gio_modules_dir, [  --with-gio-modules-dir=PATH choose directory for the GIO module, [default=LIBDIR/gio/modules]], giomodulesdir="$withval", giomodulesdir=${libdir}/gio/modules)
62 AC_SUBST(giomodulesdir)
64 AC_ARG_WITH(dbus_service_dir, [  --with-dbus-service-dir=PATH choose directory for dbus service files, [default=PREFIX/share/dbus-1/services]], dbusservicedir="$withval", dbusservicedir=${datadir}/dbus-1/services)
65 AC_SUBST(dbusservicedir)
67 AC_ARG_WITH(dbus_system_service_dir, [  --with-dbus-system-service-dir=PATH choose directory for dbus system service files, [default=PREFIX/share/dbus-1/system-services]], dbussystemservicedir="$withval", dbussystemservicedir=${datadir}/dbus-1/system-services)
68 AC_SUBST(dbussystemservicedir)
70 AC_SUBST(dconfincludedir, ${includedir}/dconf)
72 AC_PATH_PROG(gio_QUERYMODULES, gio-querymodules, no)
74 AC_ARG_ENABLE(gcov,
75               AC_HELP_STRING([--enable-gcov],
76                              [enable generation of code coverage information]))
78 if test "x$enable_gcov" == "xyes"; then
79   CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
80   LDFLAGS="$LDFLAGS -lgcov"
83 dnl Gettext support
84 GETTEXT_PACKAGE=dconf
85 AC_SUBST(GETTEXT_PACKAGE)
86 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
88 AM_GLIB_GNU_GETTEXT
89 IT_PROG_INTLTOOL([0.50.0])
91 AC_CONFIG_FILES([
92   common/Makefile
93   shm/Makefile
94   gvdb/Makefile
95   engine/Makefile
96   gdbus/Makefile
97   gsettings/Makefile
98   dbus-1/dconf-dbus-1.pc
99   client/dconf.pc
100   client/Makefile
101   service/Makefile
102   dbus-1/Makefile
103   bin/Makefile
104   editor/Makefile
105   editor/dconf-editor.desktop.in
106   tests/Makefile
107   docs/Makefile
108   po/Makefile.in
109   Makefile
111 AC_OUTPUT