| 2265 AC_CHECK_FUNCS(snprintf connect) |
2265 AC_CHECK_FUNCS(snprintf connect) |
| 2266 AC_SUBST(SASL_LIBS) |
2266 AC_SUBST(SASL_LIBS) |
| 2267 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) |
2267 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) |
| 2268 if test "x$enable_cyrus_sasl" = "xyes" ; then |
2268 if test "x$enable_cyrus_sasl" = "xyes" ; then |
| 2269 AC_CHECK_LIB(sasl2, sasl_client_init, [ |
2269 AC_CHECK_LIB(sasl2, sasl_client_init, [ |
| |
2270 AM_CONDITIONAL(USE_CYRUS_SASL, true) |
| 2270 AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) |
2271 AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) |
| 2271 SASL_LIBS=-"lsasl2" |
2272 SASL_LIBS=-"lsasl2" |
| 2272 ], [ |
2273 ], [ |
| |
2274 AM_CONDITIONAL(USE_CYRUS_SASL, false) |
| 2273 AC_ERROR(Cyrus SASL library not found) |
2275 AC_ERROR(Cyrus SASL library not found) |
| 2274 ]) |
2276 ]) |
| |
2277 else |
| |
2278 AM_CONDITIONAL(USE_CYRUS_SASL, false) |
| 2275 fi |
2279 fi |
| 2276 |
2280 |
| 2277 dnl ####################################################################### |
2281 dnl ####################################################################### |
| 2278 dnl # Check for Kerberos (for Zephyr) |
2282 dnl # Check for Kerberos (for Zephyr) |
| 2279 dnl ####################################################################### |
2283 dnl ####################################################################### |