diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-12-27 23:44:27 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-27 23:45:24 -0500 |
commit | 5486855f7d9748684633a96bf646d29080d5a28d (patch) | |
tree | a93c7a4a215ec476fca02f0dc5225435a1335a13 /man/daemon.xml | |
parent | 4f7385fa496242f06aaf358b66b28d71348607b3 (diff) |
man: include autoconf snippet in daemon(7)
https://bugs.freedesktop.org/show_bug.cgi?id=40446
Diffstat (limited to 'man/daemon.xml')
-rw-r--r-- | man/daemon.xml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/man/daemon.xml b/man/daemon.xml index 1fe4546f00..105826ac6b 100644 --- a/man/daemon.xml +++ b/man/daemon.xml @@ -765,12 +765,20 @@ <programlisting>PKG_PROG_PKG_CONFIG AC_ARG_WITH([systemdsystemunitdir], - AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), - [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) -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> + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),, + [with_systemdsystemunitdir=auto]) +AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"], [ + def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) + + AS_IF([test "x$def_systemdsystemunitdir" = "x"], + [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"], + [AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])]) + with_systemdsystemunitdir=no], + [with_systemdsystemunitdir=$def_systemdsystemunitdir])]) +AS_IF([test "x$with_systemdsystemunitdir" != "xno"], + [AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])]) +AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$with_systemdsystemunitdir" != "xno"]) +</programlisting> <para>This snippet allows automatic installation of the unit files on systemd |