From: Lennart Poettering Date: Thu, 30 Sep 2010 00:18:55 +0000 (+0200) Subject: man: fix suggested autoconf snippet X-Git-Tag: v11~25 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=20ed3656786a36f58a27901356e67d03cdd6de5e man: fix suggested autoconf snippet --- diff --git a/man/daemon.xml b/man/daemon.xml index dac244ca4..46988ef5e 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"]) +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 ]) This snippet allows automatic installation of the unit files on systemd