- AS_IF([test "x$ac_enable_sasl" = "xyes"], [
- AS_IF([test "x$ax_cv_sasl" = "xyes"], [
- AC_DEFINE([HAVE_LIBSASL], [ 1 ], [Have libsasl2])
- ], [
- AC_DEFINE([HAVE_LIBSASL], [ 0 ], [Have libsasl2])
- ac_enable_sasl= no
- ])
- ], [
- AC_DEFINE([HAVE_LIBSASL], [ 0 ], [Have libsasl2])
- ])
-
- AM_CONDITIONAL(HAVE_SASL, test "x${ac_enable_sasl}" = "xyes")
-
- ])
+ AS_IF([test "x${ac_enable_sasl}" = xyes],[
+ AC_MSG_CHECKING([checking to see if enabling sasl])
+ AS_IF([test "x${ax_sasl_check}" = xyes],[
+ ax_sasl_option=yes],[
+ AC_MSG_WARN([request to add sasl support failed, please see config.log])
+ ac_enable_sasl=no
+ ax_sasl_option=no])
+ AC_MSG_RESULT(["$ax_sasl_option"])],[
+ ax_sasl_option=no])
+ AM_CONDITIONAL([HAVE_SASL],[test "x${ax_sasl_option}" = xyes])
+ ])