1 ###############################
2 # start SMB_EXT_LIB_PAM
3 # check for security/pam_appl.h and -lpam
4 AC_CHECK_HEADERS(security/pam_appl.h)
5 AC_CHECK_LIB_EXT(pam, PAM_LIBS, pam_start)
6 if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then
9 SMB_EXT_LIB(PAM, $PAM_LIBS)
11 ###############################
13 ################################################
14 # test for where we get crypt() from
15 AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
17 SMB_EXT_LIB(CRYPT, $CRYPT_LIBS)
19 AC_CHECK_FUNCS(crypt16 getauthuid getpwanam)
21 AC_CHECK_HEADERS(sasl/sasl.h)
22 AC_CHECK_LIB_EXT(sasl2, SASL_LIBS, sasl_client_init)
24 if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then
26 SMB_ENABLE(cyrus_sasl,YES)
28 SASL_CPPFLAGS="$CPPFLAGS"
29 SASL_LDFLAGS="$LDFLAGS"
30 LIB_REMOVE_USR_LIB(SASL_LDFLAGS)
31 CFLAGS_REMOVE_USR_INCLUDE(SASL_CPPFLAGS)
32 CFLAGS_REMOVE_USR_INCLUDE(SASL_CFLAGS)
34 SMB_ENABLE(cyrus_sasl,NO)
37 SMB_EXT_LIB(SASL, $SASL_LIBS, [${SASL_CFLAGS}], [${SASL_CPPFLAGS}], [${SASL_LDFLAGS}])