chiark / gitweb /
udev-acl: move from udev-extras
[elogind.git] / configure.ac
index 0df0f60f129c2f2c8e5b377a8a43d19406739972..9571c902f8746f732eb56e184d2d59c232cea97d 100644 (file)
@@ -58,6 +58,16 @@ if test "x$enable_logging" = "xyes"; then
        AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
 fi
 
        AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
 fi
 
+AC_ARG_ENABLE([extras],
+       AS_HELP_STRING([--enable-extras], [enable extras with external dependencies]),
+       [], [enable_extras=no])
+if test "x$enable_extras" = xyes; then
+       PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0])
+       AC_SUBST([GLIB_CFLAGS])
+       AC_SUBST([GLIB_LIBS])
+fi
+AM_CONDITIONAL([ENABLE_EXTRAS], [test "x$enable_extras" = xyes])
+
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
        Makefile
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
        Makefile
@@ -79,6 +89,7 @@ AC_CONFIG_FILES([
        extras/rule_generator/Makefile
        extras/scsi_id/Makefile
        extras/usb_id/Makefile
        extras/rule_generator/Makefile
        extras/scsi_id/Makefile
        extras/usb_id/Makefile
+       extras/udev-acl/Makefile
 ])
 
 AC_OUTPUT
 ])
 
 AC_OUTPUT
@@ -102,5 +113,7 @@ AC_MSG_RESULT([
        cflags:                 ${CFLAGS}
        ldflags:                ${LDFLAGS}
 
        cflags:                 ${CFLAGS}
        ldflags:                ${LDFLAGS}
 
+       extras:                 ${enable_extras}
+
        xsltproc:               ${XSLTPROC}
 ])
        xsltproc:               ${XSLTPROC}
 ])