| 2262 AC_CHECK_FUNCS(snprintf connect) |
2262 AC_CHECK_FUNCS(snprintf connect) |
| 2263 AC_SUBST(SASL_LIBS) |
2263 AC_SUBST(SASL_LIBS) |
| 2264 AC_ARG_ENABLE(cyrus-sasl, AC_HELP_STRING([--enable-cyrus-sasl], [enable Cyrus SASL support for jabberd]), enable_cyrus_sasl=$enableval, enable_cyrus_sasl=no) |
2264 AC_ARG_ENABLE(cyrus-sasl, AC_HELP_STRING([--enable-cyrus-sasl], [enable Cyrus SASL support for jabberd]), enable_cyrus_sasl=$enableval, enable_cyrus_sasl=no) |
| 2265 if test "x$enable_cyrus_sasl" = "xyes" ; then |
2265 if test "x$enable_cyrus_sasl" = "xyes" ; then |
| 2266 AC_CHECK_LIB(sasl2, sasl_client_init, [ |
2266 AC_CHECK_LIB(sasl2, sasl_client_init, [ |
| |
2267 AM_CONDITIONAL(USE_CYRUS_SASL, true) |
| 2267 AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) |
2268 AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) |
| 2268 SASL_LIBS=-"lsasl2" |
2269 SASL_LIBS=-"lsasl2" |
| 2269 ], [ |
2270 ], [ |
| |
2271 AM_CONDITIONAL(USE_CYRUS_SASL, false) |
| 2270 AC_ERROR(Cyrus SASL library not found) |
2272 AC_ERROR(Cyrus SASL library not found) |
| 2271 ]) |
2273 ]) |
| |
2274 else |
| |
2275 AM_CONDITIONAL(USE_CYRUS_SASL, false) |
| 2272 fi |
2276 fi |
| 2273 |
2277 |
| 2274 dnl ####################################################################### |
2278 dnl ####################################################################### |
| 2275 dnl # Check for Kerberos (for Zephyr) |
2279 dnl # Check for Kerberos (for Zephyr) |
| 2276 dnl ####################################################################### |
2280 dnl ####################################################################### |