From 0b3eff364979e9281c1d4fd9a090bdab5fde0d67 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 27 Aug 2024 08:00:00 +0000 Subject: configure.ac: fix installation of pam_namespace service file Commit 95b464f8417d ("configure.ac: add --with-systemdunitdir option") aka v1.5.2~51 introduced a regression: if --with-systemdunitdir is not specified, then the pam_namespace service file is no longer installed. Fixes: 95b464f8417d ("configure.ac: add --with-systemdunitdir option") --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 383199bb..1fc42b3c 100644 --- a/configure.ac +++ b/configure.ac @@ -726,10 +726,11 @@ AC_DEFINE_UNQUOTED(PAM_USERTYPE_OVERFLOW_UID, $opt_kerneloverflowuid, [Kernel ov AC_ARG_WITH([systemdunitdir], AS_HELP_STRING([--with-systemdunitdir=DIR], [path to systemd service directory]), [], - [ - PKG_CHECK_EXISTS([systemd], - [with_systemdunitdir=$($PKG_CONFIG --variable=systemdunitdir systemd)], - [with_systemdunitdir='${prefix}/lib/systemd/system']) + [AC_MSG_CHECKING([systemd service directory]) + with_systemdunitdir='${prefix}/lib/systemd/system' + PKG_CHECK_EXISTS([systemd], + [with_systemdunitdir=$($PKG_CONFIG --variable=systemdunitdir systemd)]) + AC_MSG_RESULT([$with_systemdunitdir]) ]) AC_SUBST([systemdunitdir], [$with_systemdunitdir]) -- cgit v1.2.3