From: Lennart Poettering Date: Tue, 5 Oct 2010 00:04:50 +0000 (+0200) Subject: systemd: update configure.ac snippet X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=2bd272c14ac1be48324a0ec66bf3e519824fc74f systemd: update configure.ac snippet --- diff --git a/configure.ac b/configure.ac index 2d0c079..f2377b7 100644 --- a/configure.ac +++ b/configure.ac @@ -1080,8 +1080,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 ]) # ========================================================================== AC_CONFIG_FILES([