aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-27 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-27 08:00:00 +0000
commit0b3eff364979e9281c1d4fd9a090bdab5fde0d67 (patch)
tree0d960638018d7459642f8824804cb6003eef62c1
parent3f4b8cd77c8ceeb61ddbb82743deed6f111ec0ec (diff)
downloadpam-0b3eff364979e9281c1d4fd9a090bdab5fde0d67.tar.gz
pam-0b3eff364979e9281c1d4fd9a090bdab5fde0d67.tar.bz2
pam-0b3eff364979e9281c1d4fd9a090bdab5fde0d67.zip
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")
-rw-r--r--configure.ac9
1 files 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])