From 017164521b94018bd143b879b0e858d98cca83e8 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 15 Sep 2015 14:16:42 -0400 Subject: configure.ac: with-systemd flag not using default directory The with-systemd config flag was not using the default directory when a directory was not given Signed-off-by: Steve Dickson --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 926b044..7d08e1e 100644 --- a/configure.ac +++ b/configure.ac @@ -59,7 +59,14 @@ unitdir=/usr/lib/systemd/system AC_ARG_WITH(systemd, [AC_HELP_STRING([--with-systemd@<:@=unit-dir-path@:>@], [install systemd unit files @<:@Default: no, and path defaults to /usr/lib/systemd/system if not given@:>@])], - test "$withval" = "no" && use_systemd=0 || unitdir=$withval use_systemd=1 + if test "$withval" != "no" ; then + use_systemd=1 + if test "$withval" != "yes" ; then + unitdir=$withval + fi + else + use_systemd=0 + fi ) AM_CONDITIONAL(INSTALL_SYSTEMD, [test "$use_systemd" = 1]) AC_SUBST(unitdir) -- cgit