summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-30 02:18:55 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-05 19:50:00 +0200
commit20ed3656786a36f58a27901356e67d03cdd6de5e (patch)
treeec7ba809bb782ca75208ad4226c0080f6bf8f4fe /man
parent0840ce2d4944bf1b14ed92f10db220991c1e94c9 (diff)
man: fix suggested autoconf snippet
Diffstat (limited to 'man')
-rw-r--r--man/daemon.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/man/daemon.xml b/man/daemon.xml
index dac244ca4e..46988ef5ec 100644
--- a/man/daemon.xml
+++ b/man/daemon.xml
@@ -785,8 +785,10 @@
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"])</programlisting>
+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 ])</programlisting>
<para>This snippet allows automatic
installation of the unit files on systemd