- [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
- AC_CHECK_LIB(sasl, sasl_client_init,
- [have_cyrus_sasl=yes], [have_cyrus_sasl=no])
-
- if test $have_cyrus_sasl != no ; then
- SASL_LIBS="-lsasl"
- ol_link_sasl=yes
- fi
- fi
+ [ol_link_sasl="-lsasl2"],
+ [AC_CHECK_LIB(sasl, sasl_client_init,
+ [ol_link_sasl="-lsasl"])])