diff options
author | Lars Müller <lars@samba.org> | 2014-04-07 14:35:10 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2014-04-07 14:35:10 -0400 |
commit | 00a1cee869fce5b6aa79683da19a2529c2cfd690 (patch) | |
tree | 1b6e4893ca2619ee300fb65cf1d9146e6b068d3e | |
parent | 594f03a5c053d2a539ffb8e2889832829ee542ee (diff) | |
download | cifs-utils-00a1cee869fce5b6aa79683da19a2529c2cfd690.tar.gz cifs-utils-00a1cee869fce5b6aa79683da19a2529c2cfd690.tar.bz2 cifs-utils-00a1cee869fce5b6aa79683da19a2529c2cfd690.zip |
autoconf: allow PAM security install directory to be configurable
Allow the pam module install directory to be set at build time.
Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index a3fb413..92da8b1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -92,8 +92,6 @@ idmapwb.8: idmapwb.8.in endif if CONFIG_PAM -pamdir = $(libdir)/security - pam_PROGRAMS = pam_cifscreds.so pam_cifscreds.so: pam_cifscreds.c cifskey.c resolve_host.c util.c diff --git a/configure.ac b/configure.ac index 6cd8558..43aa55c 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,12 @@ AC_ARG_WITH(idmap-plugin, AC_DEFINE_UNQUOTED(IDMAP_PLUGIN_PATH, "$pluginpath", [Location of plugin that ID mapping infrastructure should use. (usually a symlink to real plugin)]) AC_SUBST([pluginpath]) +AC_ARG_WITH(pamdir, + [AC_HELP_STRING([--with-pamdir=DIR],[Where to install the PAM module @<:@default=$(libdir)/security@:>@])], + pamdir=$withval, + pamdir="\$(libdir)/security") +AC_SUBST([pamdir]) + # check for ROOTSBINDIR environment var if test -z $ROOTSBINDIR; then ROOTSBINDIR="/sbin" |