1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(libsignon-glib, 1.1)
5 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
6 AM_CONFIG_HEADER(config.h)
18 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
28 AC_ARG_ENABLE(cast-checks, [ --disable-cast-checks compile with GLIB cast checks disabled],[cchecks=${enableval}],cchecks=yes)
29 if test "x$cchecks" = "xno"; then
30 CFLAGS="$CFLAGS -DG_DISABLE_CAST_CHECKS"
33 AC_ARG_ENABLE(asserts, [ --disable-asserts compile with GLIB assertions disabled],[asserts=${enableval}],asserts=yes)
34 if test "x$asserts" = "xno"; then
35 CFLAGS="$CFLAGS -DG_DISABLE_ASSERTS"
38 AC_ARG_ENABLE(checks, [ --disable-checks compile with GLIB checks disabled],[checks=${enableval}],checks=yes)
39 if test "x$checks" = "xno"; then
40 CFLAGS="$CFLAGS -DG_DISABLE_CHECKS"
43 AC_ARG_ENABLE(debug, [ --enable-debug enable printing of debug messages],[ddebug=${enableval}],ddebug=no)
44 if test "x$ddebug" != "xyes"; then
45 CFLAGS="$CFLAGS -DG_DEBUG_DISABLE"
48 AC_ARG_ENABLE(coverage, [ --enable-coverage compile with coverage info],[coverage=${enableval}],coverage=no)
49 if test "x$coverage" = "xyes"; then
50 CFLAGS="$CFLAGS -g -fprofile-arcs -ftest-coverage"
53 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.51, dbus-glib-1 >= 0.51], have_dbus=yes, have_dbus=no)
57 testdatadir=${datadir}/libsignon-glib1-test
60 AC_CONFIG_FILES([tests/signon-glib-test.sh], [chmod +x tests/signon-glib-test.sh])
64 libsignon-glib/Makefile
67 docs/reference/Makefile