2005-06-03 18:06:23 +04:00
###############################
# start SMB_EXT_LIB_PAM
# check for security/pam_appl.h and -lpam
AC_CHECK_HEADERS(security/pam_appl.h)
AC_CHECK_LIB_EXT(pam, PAM_LIBS, pam_start)
if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then
2006-04-26 16:22:54 +04:00
SMB_ENABLE(PAM,YES)
2005-06-03 18:06:23 +04:00
fi
SMB_EXT_LIB(PAM, $PAM_LIBS)
# end SMB_EXT_LIB_PAM
###############################
2006-04-08 20:25:53 +04:00
################################################
# test for where we get crypt() from
AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
2006-04-26 16:22:54 +04:00
SMB_ENABLE(CRYPT,YES)
2006-04-08 20:25:53 +04:00
SMB_EXT_LIB(CRYPT, $CRYPT_LIBS)
2006-05-13 22:12:53 +04:00
AC_CHECK_FUNCS(crypt16 getauthuid getpwanam)
2006-09-06 14:34:18 +04:00
AC_CHECK_HEADERS(sasl/sasl.h)
AC_CHECK_LIB_EXT(sasl2, SASL_LIBS, sasl_client_init)
if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then
2006-09-06 16:12:42 +04:00
SMB_ENABLE(SASL,YES)
2006-09-06 14:34:18 +04:00
SMB_ENABLE(cyrus_sasl,YES)
2008-11-19 03:52:58 +03:00
SASL_CFLAGS="$CFLAGS"
SASL_CPPFLAGS="$CPPFLAGS"
SASL_LDFLAGS="$LDFLAGS"
2009-03-15 02:54:55 +03:00
LIB_REMOVE_USR_LIB(SASL_LDFLAGS)
2009-03-15 20:10:20 +03:00
CFLAGS_REMOVE_USR_INCLUDE(SASL_CPPFLAGS)
CFLAGS_REMOVE_USR_INCLUDE(SASL_CFLAGS)
2006-09-06 14:34:18 +04:00
else
2006-09-06 16:12:42 +04:00
SMB_ENABLE(cyrus_sasl,NO)
2006-09-06 14:34:18 +04:00
fi
2008-11-19 03:52:58 +03:00
SMB_EXT_LIB(SASL, $SASL_LIBS, [${SASL_CFLAGS}], [${SASL_CPPFLAGS}], [${SASL_LDFLAGS}])