merged-build: pass PYTHON and PERL down to make test4
[Samba/gbeck.git] / source4 / auth / config.m4
bloba271a9f6fe4c8eca6e4e6486689bac29a1d0ac55
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)
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
25         SMB_ENABLE(SASL,YES)
26         SMB_ENABLE(cyrus_sasl,YES)
27         SASL_CFLAGS="$CFLAGS"
28         SASL_CPPFLAGS="$CPPFLAGS"
29         SASL_LDFLAGS="$LDFLAGS"
30 else
31         SMB_ENABLE(cyrus_sasl,NO)
34 SMB_EXT_LIB(SASL, $SASL_LIBS, [${SASL_CFLAGS}], [${SASL_CPPFLAGS}], [${SASL_LDFLAGS}])