summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-11-20 11:30:59 +0800
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-06 16:42:45 +0000
commitee4f946d0506a3c00fa9d5f2e3c947d48e9c4ea6 (patch)
treec12b29c93103a72ee14e7d211c3e6634287970a0
parente04bd56a3438ac6473f457e1560ccad06b4e86b4 (diff)
downloaddbus-ee4f946d0506a3c00fa9d5f2e3c947d48e9c4ea6.tar.gz
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 <simon.mcvittie@collabora.co.uk>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e37a6329..b18c30f6 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