need to know if SASL is available

This commit is contained in:
Pierangelo Masarati 2004-06-19 10:00:25 +00:00
parent 18a68380f6
commit 0649baedd3

View file

@ -2082,6 +2082,7 @@ dnl ----------------------------------------------------------------
dnl dnl
dnl Check for Cyrus SASL dnl Check for Cyrus SASL
dnl dnl
WITH_SASL=no
ol_link_sasl=no ol_link_sasl=no
ol_link_spasswd=no ol_link_spasswd=no
if test $ol_with_cyrus_sasl != no ; then if test $ol_with_cyrus_sasl != no ; then
@ -2122,6 +2123,8 @@ if test $ol_with_cyrus_sasl != no ; then
AC_CHECK_FUNC(sasl_version, [AC_DEFINE(HAVE_SASL_VERSION,1, AC_CHECK_FUNC(sasl_version, [AC_DEFINE(HAVE_SASL_VERSION,1,
[define if your SASL library has sasl_version()])]) [define if your SASL library has sasl_version()])])
LIBS="$ac_save_LIBS" LIBS="$ac_save_LIBS"
WITH_SASL=yes
fi fi
else else
@ -2780,6 +2783,7 @@ fi
AC_SUBST(LIBSRCS) AC_SUBST(LIBSRCS)
AC_SUBST(PLAT) AC_SUBST(PLAT)
AC_SUBST(WITH_SASL)
AC_SUBST(WITH_TLS) AC_SUBST(WITH_TLS)
AC_SUBST(BUILD_LIBS_DYNAMIC) AC_SUBST(BUILD_LIBS_DYNAMIC)