1 AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [
3 AS_HELP_STRING([--enable-pam],
4 [install pam_zfs_key module [[default: check]]]),
5 [enable_pam=$enableval],
8 AC_ARG_WITH(pammoduledir,
9 AS_HELP_STRING([--with-pammoduledir=DIR],
10 [install pam module in dir [[$libdir/security]]]),
11 [pammoduledir="$withval"],[pammoduledir=$libdir/security])
13 AC_ARG_WITH(pamconfigsdir,
14 AS_HELP_STRING([--with-pamconfigsdir=DIR],
15 [install pam-config files in dir [DATADIR/pam-configs]]),
16 [pamconfigsdir="$withval"],
17 [pamconfigsdir='${datadir}/pam-configs'])
19 AS_IF([test "x$enable_pam" != "xno"], [
20 AC_CHECK_HEADERS([security/pam_modules.h], [
23 AS_IF([test "x$enable_pam" = "xyes"], [
25 *** security/pam_modules.h missing, libpam0g-dev package required
32 AS_IF([test "x$enable_pam" = "xyes"], [
33 DEFINE_PAM='--with pam'
36 AC_SUBST(pammoduledir)
37 AC_SUBST(pamconfigsdir)