dnl Check for Cyrus SASL
AC_DEFUN([SQUID_CHECK_SASL],[
- squid_sasl_present="auto"
+ squid_cv_check_sasl="auto"
AC_CHECK_HEADERS([sasl/sasl.h sasl.h])
AC_CHECK_LIB(sasl2,sasl_errstring,[LIBSASL="-lsasl2"],[
AC_CHECK_LIB(sasl,sasl_errstring,[LIBSASL="-lsasl"], [
- squid_sasl_present="no"
+ squid_cv_check_sasl="no"
])
])
case "$squid_host_os" in
if test "$ac_cv_lib_sasl2_sasl_errstring" = "yes" ; then
AC_DEFINE(HAVE_SASL_DARWIN,1,[Define to 1 if Mac Darwin without sasl.h])
echo "checking for MAC Darwin without sasl.h ... yes"
- squid_sasl_present="yes"
+ squid_cv_check_sasl="yes"
else
echo "checking for MAC Darwin without sasl.h ... no"
- squid_sasl_present="no"
+ squid_cv_check_sasl="no"
fi
;;
esac
- if test "x$squid_sasl_present" != "yes"; then
+ if test "x$squid_cv_check_sasl" = "xno"; then
AC_MSG_WARN([Neither SASL nor SASL2 found])
+ else
+ squid_cv_check_sasl="yes"
fi
AC_SUBST(LIBSASL)
])