mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-01 11:28:02 +02:00
build: Fix --without-systemdunitdir / --without-systemdutildir
would take the with_*=no as a value and try to install to a "no" directory https://bugs.freedesktop.org/show_bug.cgi?id=62060
This commit is contained in:
parent
543a950631
commit
90df3546b0
1 changed files with 8 additions and 4 deletions
12
configure.ac
12
configure.ac
|
|
@ -165,15 +165,19 @@ AC_ARG_WITH([systemdutildir],
|
|||
AS_HELP_STRING([--with-systemdutildir=DIR], [Directory for systemd utilities]),
|
||||
[],
|
||||
[with_systemdutildir=$($PKG_CONFIG --variable=systemdutildir systemd)])
|
||||
AC_SUBST([systemdutildir], [$with_systemdutildir])
|
||||
AM_CONDITIONAL(HAVE_SYSTEMDUTILDIR, [test -n "$with_systemdutildir"])
|
||||
if test x$with_systemdutildir != xno; then
|
||||
AC_SUBST([systemdutildir], [$with_systemdutildir])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_SYSTEMDUTILDIR, [test -n "$systemdutildir"])
|
||||
|
||||
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_SYSTEMDSYSTEMUNITDIR, [test -n "$with_systemdsystemunitdir"])
|
||||
if test x$with_systemdsystemunitdir != xno; then
|
||||
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_SYSTEMDSYSTEMUNITDIR, [test -n "$systemdsystemunitdir"])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl - Compile time default choice of backend
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue