summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-02-13 22:56:43 +0100
committerLennart Poettering <lennart@poettering.net>2013-02-13 23:08:25 +0100
commit46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51e (patch)
treede99190b0940c4afa83ead269cb52a3a6070512e /configure.ac
parentbuild-sys: fix build without -Wl,--gc-sections (diff)
downloadsystemd-46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51e.tar.xz
systemd-46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51e.zip
build-sys: make PolicyKit support compile-time optional (was runtime-optional already)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4e36dc3dca..228f6969ff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -627,6 +627,15 @@ fi
AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
# ------------------------------------------------------------------------------
+have_polkit=no
+AC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
+if test "x$enable_polkit" != "xno"; then
+ AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
+ have_polkit=yes
+fi
+AM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
+
+# ------------------------------------------------------------------------------
AC_ARG_WITH(rc-local-script-path-start,
AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
[Path to /etc/rc.local]),
@@ -872,6 +881,7 @@ AC_MSG_RESULT([
timedated: ${have_timedated}
localed: ${have_localed}
coredump: ${have_coredump}
+ polkit: ${have_polkit}
kmod: ${have_kmod}
blkid: ${have_blkid}
nss-myhostname: ${have_myhostname}