1 ###############################
2 # start SMB_EXT_LIB_PAM
3 # check for security/pam_appl.h and -lpam
4 # Tests are now moved in ../nsswitch/config.m4 because winbind stuff require more pam tests
6 ###############################
8 ################################################
9 # test for where we get crypt() from
10 AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
12 SMB_EXT_LIB(CRYPT, $CRYPT_LIBS)
14 AC_CHECK_FUNCS(crypt16 getauthuid getpwanam)
16 AC_CHECK_HEADERS(sasl/sasl.h)
17 AC_CHECK_LIB_EXT(sasl2, SASL_LIBS, sasl_client_init)
19 if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then
21 SMB_ENABLE(cyrus_sasl,YES)
23 SASL_CPPFLAGS="$CPPFLAGS"
24 SASL_LDFLAGS="$LDFLAGS"
25 LIB_REMOVE_USR_LIB(SASL_LDFLAGS)
26 CFLAGS_REMOVE_USR_INCLUDE(SASL_CPPFLAGS)
27 CFLAGS_REMOVE_USR_INCLUDE(SASL_CFLAGS)
29 SMB_ENABLE(cyrus_sasl,NO)
32 SMB_EXT_LIB(SASL, $SASL_LIBS, [${SASL_CFLAGS}], [${SASL_CPPFLAGS}], [${SASL_LDFLAGS}])