mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Use correct prefix for share/pam-configs
Respect the configured install prefix. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Arvind Sankar <nivedita@alum.mit.edu> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10604
This commit is contained in:
+4
-3
@@ -12,8 +12,9 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [
|
||||
|
||||
AC_ARG_WITH(pamconfigsdir,
|
||||
AS_HELP_STRING([--with-pamconfigsdir=DIR],
|
||||
[install pam-config files in dir [[/usr/share/pamconfigs]]]),
|
||||
[pamconfigsdir="$withval"],[pamconfigsdir=/usr/share/pam-configs])
|
||||
[install pam-config files in dir [DATADIR/pam-configs]]),
|
||||
[pamconfigsdir="$withval"],
|
||||
[pamconfigsdir='${datadir}/pam-configs'])
|
||||
|
||||
AS_IF([test "x$enable_pam" != "xno"], [
|
||||
AC_CHECK_HEADERS([security/pam_modules.h], [
|
||||
@@ -29,7 +30,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [
|
||||
])
|
||||
])
|
||||
AS_IF([test "x$enable_pam" = "xyes"], [
|
||||
DEFINE_PAM='--with "pam" --define "_pamconfigsdir $(pamconfigsdir)"'
|
||||
DEFINE_PAM='--with pam'
|
||||
])
|
||||
AC_SUBST(DEFINE_PAM)
|
||||
AC_SUBST(pammoduledir)
|
||||
|
||||
Reference in New Issue
Block a user