summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-03-03 11:38:51 +0300
committerStefan Metzmacher <metze@samba.org>2010-03-11 13:31:38 +0100
commitd1e3898a05a860f40a7b34b357917aa873dfd145 (patch)
tree7783771d629054723264ad71e4cf5737789012b7 /nsswitch
parent8306eb1c5f7126a72423e936dc36e77f86532d6b (diff)
downloadsamba-d1e3898a05a860f40a7b34b357917aa873dfd145.tar.gz
samba-d1e3898a05a860f40a7b34b357917aa873dfd145.tar.bz2
samba-d1e3898a05a860f40a7b34b357917aa873dfd145.zip
s4: allow pam_winbind.so to be build on samba4
* Modify the nsswitch/config.m4 to add tests and build that will be put in configure by the autoconf/autoheader We test if there is pam headers and pam library to be able to build the pam module We add s4 build directive (that are normaly in standalone config.mk) this is due to the fact that we need to rely on path that are guessed during configure. Add tests not to build pam_winbind if pam dev files is not present Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/config.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/nsswitch/config.m4 b/nsswitch/config.m4
index 8d9118322c..8966e35aa9 100644
--- a/nsswitch/config.m4
+++ b/nsswitch/config.m4
@@ -35,5 +35,12 @@ SMB_EXT_LIB(PAM, $PAM_LIBS)
if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then
SMB_ENABLE(PAM,YES)
+ if test x"$MERGED_BUILD" != x"1"; then
+ SMB_BUILD_LIBRARY(pam_winbind,[../nsswitch/pam_winbind.o],
+ [LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER PAM],
+ [-DLOCALEDIR=\\\"${datarootdir}/locale\\\"],
+ [],
+ [../nsswitch/pam_winbind.\$(SHLIBEXT)])
+ fi
fi
#####