Added check for Cyrus SASLv2

This commit is contained in:
Howard Chu 2002-02-10 14:23:55 +00:00
parent bb84c73062
commit 0b54812c2c

View file

@ -2114,9 +2114,22 @@ dnl ----------------------------------------------------------------
dnl
dnl Check for Cyrus SASL
dnl
dnl HAVE_CYRUS_SASL2 implicitly defines HAVE_CYRUS_SASL
ol_link_sasl=no
ol_link_spasswd=no
if test $ol_with_cyrus_sasl != no ; then
AC_CHECK_HEADERS(sasl/sasl.h)
if test $ac_cv_header_sasl_sasl_h = yes ; then
AC_CHECK_LIB(sasl2, sasl_client_init,
[have_cyrus_sasl2=yes], [have_cyrus_sasl2=no])
if test $have_cyrus_sasl2 != no ; then
SASL_LIBS="-lsasl2"
AC_DEFINE(HAVE_CYRUS_SASL2,1,[define if you have Cyrus SASL v2])
ol_link_sasl=yes
fi
else
AC_CHECK_HEADERS(sasl.h)
if test $ac_cv_header_sasl_h = yes ; then
@ -2125,10 +2138,10 @@ if test $ol_with_cyrus_sasl != no ; then
if test $have_cyrus_sasl != no ; then
SASL_LIBS="-lsasl"
AC_DEFINE(HAVE_CYRUS_SASL,1,[define if you have Cyrus SASL])
ol_link_sasl=yes
fi
fi
fi
if test $ol_link_sasl = no ; then
if test $ol_with_cyrus_sasl != auto ; then
@ -2140,10 +2153,12 @@ if test $ol_with_cyrus_sasl != no ; then
AC_MSG_WARN([Strong authentication not supported!])
fi
fi
elif test $ol_enable_spasswd != no ; then
else
AC_DEFINE(HAVE_CYRUS_SASL,1,[define if you have Cyrus SASL])
if test $ol_enable_spasswd != no ; then
ol_link_spasswd=yes
fi
fi
else
AC_MSG_WARN([SASL authentication not supported!])
@ -2154,7 +2169,7 @@ fi
dnl ----------------------------------------------------------------
dnl Check for entropy sources
if test $cross_compiling != yes -a $ac_cv_mingw32 != yes ; then
if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
dev=no
if test -r /dev/urandom ; then
dev="/dev/urandom";