]> git.sur5r.net Git - openldap/blobdiff - configure.in
Require 2.1.3 or higher for Cyrus SASL 2
[openldap] / configure.in
index f025695d272b8af2c93c6a11a9b4b979fadbac07..53b3ee60674066aa413c2f1d85bc298ce7ccdde9 100644 (file)
@@ -2169,6 +2169,14 @@ if test $ol_with_cyrus_sasl != no ; then
                                [ol_link_sasl="-lsasl"])])
        fi
 
+       if test $ol_link_sasl = "-lsasl2"; then
+               OL_SASL2_COMPAT
+
+               if test $ol_cv_sasl2_compat = no ; then
+                       ol_link_sasl=no
+                       AC_MSG_ERROR(SASL: Cyrus SASL2 version obsolete)
+               fi
+       fi
        if test $ol_link_sasl = no ; then
                if test $ol_with_cyrus_sasl != auto ; then
                        AC_MSG_ERROR([Could not locate Cyrus SASL])