summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
commitddc943c6cb42257b0dcba20e6baea4ff370a727c (patch)
treed8c95ff4beaed1c02a72990ed3476324d4f25294
parentf43cfa1a97776ba995437800b75e9dc77ef82349 (diff)
downloadlinux-pam-git-ddc943c6cb42257b0dcba20e6baea4ff370a727c.tar.gz
Introduce SCONFIGDIR macro
Follow the VENDORDIR example and introduce a macro defined to the argument of --enable-sconfigdir option. Unlike --enable-vendordir, --enable-sconfigdir has a default value, so when --enable-sconfigdir is not used for build, SCONFIGDIR will be defined to that default value. * configure.ac (AC_DEFINE_UNQUOTED): Add SCONFIGDIR.
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index eb98d69a..8af303a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,6 +259,8 @@ AC_MSG_RESULT([Defining \$ISA to "$ISA"])
AC_ARG_ENABLE(sconfigdir,
AS_HELP_STRING([--enable-sconfigdir=DIR],[path to module conf files @<:@default=$sysconfdir/security@:>@]),
SCONFIGDIR=$enableval, SCONFIGDIR=$sysconfdir/security)
+AC_DEFINE_UNQUOTED([SCONFIGDIR], ["$SCONFIGDIR"],
+ [Directory for system PAM modules configuration files])
AC_SUBST(SCONFIGDIR)
AC_ARG_ENABLE(pamlocking,