From: Chengwei Yang Date: Wed, 20 Nov 2013 03:30:59 +0000 (+0800) Subject: Do not install systemd unit files if build without systemd X-Git-Tag: dbus-1.7.10~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee4f946d0506a3c00fa9d5f2e3c947d48e9c4ea6;p=thirdparty%2Fdbus.git Do not install systemd unit files if build without systemd If dbus buid without systemd (--disable-systemd or no systemd libs available when building), we expect not to install dbus systemd unit files because they're only for systemd environment. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71818 Reviewed-by: Simon McVittie --- diff --git a/configure.ac b/configure.ac index e37a63294..b18c30f61 100644 --- a/configure.ac +++ b/configure.ac @@ -1497,7 +1497,7 @@ AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service if test "x$with_systemdsystemunitdir" != xno; then AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) fi -AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) +AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" != "xno" -a -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) ##### Set up location for system bus socket if ! test -z "$with_system_socket"; then