Jeff Layton
2014-04-02 14:30:58 UTC
=46rom: Lars M=C3=BCller <lars-***@public.gmane.org>
Allow the pam module install directory to be set at build time.
Signed-off-by: Jeff Layton <jlayton-***@public.gmane.org>
---
Makefile.am | 2 --
configure.ac | 6 ++++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index a3fb413743b5..92da8b19dd5b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -92,8 +92,6 @@ idmapwb.8: idmapwb.8.in
endif
=20
if CONFIG_PAM
-pamdir =3D $(libdir)/security
-
pam_PROGRAMS =3D pam_cifscreds.so
=20
pam_cifscreds.so: pam_cifscreds.c cifskey.c resolve_host.c util.c
diff --git a/configure.ac b/configure.ac
index 6cd8558a138a..43aa55c60053 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 plug=
in that ID mapping infrastructure should use. (usually a symlink to rea=
l plugin)])
AC_SUBST([pluginpath])
=20
+AC_ARG_WITH(pamdir,
+ [AC_HELP_STRING([--with-pamdir=3DDIR],[Where to install the PAM modul=
e @<:@default=3D$(libdir)/security@:>@])],
+ pamdir=3D$withval,
+ pamdir=3D"\$(libdir)/security")
+AC_SUBST([pamdir])
+
# check for ROOTSBINDIR environment var
if test -z $ROOTSBINDIR; then
ROOTSBINDIR=3D"/sbin"
--=20
1.9.0
Allow the pam module install directory to be set at build time.
Signed-off-by: Jeff Layton <jlayton-***@public.gmane.org>
---
Makefile.am | 2 --
configure.ac | 6 ++++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index a3fb413743b5..92da8b19dd5b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -92,8 +92,6 @@ idmapwb.8: idmapwb.8.in
endif
=20
if CONFIG_PAM
-pamdir =3D $(libdir)/security
-
pam_PROGRAMS =3D pam_cifscreds.so
=20
pam_cifscreds.so: pam_cifscreds.c cifskey.c resolve_host.c util.c
diff --git a/configure.ac b/configure.ac
index 6cd8558a138a..43aa55c60053 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 plug=
in that ID mapping infrastructure should use. (usually a symlink to rea=
l plugin)])
AC_SUBST([pluginpath])
=20
+AC_ARG_WITH(pamdir,
+ [AC_HELP_STRING([--with-pamdir=3DDIR],[Where to install the PAM modul=
e @<:@default=3D$(libdir)/security@:>@])],
+ pamdir=3D$withval,
+ pamdir=3D"\$(libdir)/security")
+AC_SUBST([pamdir])
+
# check for ROOTSBINDIR environment var
if test -z $ROOTSBINDIR; then
ROOTSBINDIR=3D"/sbin"
--=20
1.9.0