diff options
author | Michael Biebl <biebl@debian.org> | 2012-03-19 16:18:29 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2012-03-19 16:35:48 +0100 |
commit | 67cff230cff6b838d5a473f6bc44b28bcacc3a17 (patch) | |
tree | 573769bab6deefc1e02dfa53f4c705df9f5a4832 | |
parent | 0177dadbce60176eda8571ebedc59af15d17a13f (diff) |
build-sys: don't install systemd units when using --without-systemdsystemunitdir
https://bugs.freedesktop.org/show_bug.cgi?id=33924
-rw-r--r-- | configure.ac | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 7e641cb..4f0c85d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,9 @@ AC_PREREQ([2.68]) -AC_INIT([ConsoleKit],[0.4.6],[https://bugs.freedesktop.org/enter_bug.cgi?product=ConsoleKit],[ConsoleKit]) +AC_INIT([ConsoleKit], + [0.4.6], + [https://bugs.freedesktop.org/enter_bug.cgi?product=ConsoleKit], + [ConsoleKit]) AC_CONFIG_SRCDIR([src/ck-manager.c]) @@ -368,10 +371,9 @@ AC_SUBST(LDFLAGS) AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), - [], - [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) -AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) -AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir"]) + [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) +AS_IF([test "x$with_systemdsystemunitdir" != "xno"], [ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])]) +AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != "xno"]) # Files |