summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRĂ©mi Cardona <remi@gentoo.org>2016-11-21 08:18:32 +0100
committerRay Strode <rstrode@redhat.com>2017-01-05 10:18:41 -0500
commitc6633b311f7ed8560a5c6847110d872d017672a6 (patch)
treef356252098b4375cba3fd21670f409e8d7d8b455 /configure.ac
parenta35135acf75567429d522c9019ee6ceb8f962fc9 (diff)
downloadgdm-c6633b311f7ed8560a5c6847110d872d017672a6.tar.gz
pam_gdm: allow setting pam module dir at configure time
Code taken almost verbatim from gnome-keyring. https://bugzilla.gnome.org/show_bug.cgi?id=774776
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fbf400e5..0a1d32ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -477,7 +477,7 @@ dnl ---------------------------------------------------------------------------
dnl - Check for PAM stuff
dnl ---------------------------------------------------------------------------
-dnl PAM prefix
+dnl PAM prefix (configuration files)
withval=""
AC_ARG_WITH(pam-prefix,
AS_HELP_STRING([--with-pam-prefix=<prefix>],
@@ -493,6 +493,14 @@ else
fi
AC_SUBST(PAM_PREFIX)
+dnl PAM dir (dynamic modules)
+AC_ARG_WITH([pam-mod-dir],
+ [AS_HELP_STRING([--with-pam-mod-dir=DIR],
+ [directory to install pam modules in])],
+ [], [with_pam_mod_dir='${libdir}/security'])
+PAM_MOD_DIR="$with_pam_mod_dir"
+AC_SUBST(PAM_MOD_DIR)
+
have_pam=no
AC_CHECK_LIB(pam, pam_start, have_pam=yes)
@@ -1582,6 +1590,7 @@ echo "
dbus-1 system.d dir: ${DBUS_SYS_DIR}
PAM prefix: ${PAM_PREFIX}
+ PAM module dir: ${PAM_MOD_DIR}
PAM config: ${with_default_pam_config}
X server: ${X_SERVER}
"