r19521: Fix memory leak.
[Samba.git] / source / auth / config.m4
blob1338b775ec859c6692eda9845971cea5e301202c
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
7         SMB_ENABLE(PAM,YES)
8 fi
9 SMB_EXT_LIB(PAM, $PAM_LIBS)
10 # end SMB_EXT_LIB_PAM
11 ###############################
13 ################################################
14 # test for where we get crypt() from
15 AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
16 SMB_ENABLE(CRYPT,YES)
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)
23 SMB_EXT_LIB(SASL, $SASL_LIBS)
25 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(SASL,YES)
27         SMB_ENABLE(cyrus_sasl,YES)
28 else
29         SMB_ENABLE(cyrus_sasl,NO)