mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Update SASL compat test to check for 1.5 compatibility
This commit is contained in:
parent
82dc573752
commit
53257cf037
@ -1185,14 +1185,19 @@ AC_DEFUN(OL_FUNC_GETHOSTBYADDR_R_NARGS,
|
||||
dnl
|
||||
dnl --------------------------------------------------------------------
|
||||
dnl Check for Cyrus SASL version compatility, need 2.1.3 or newer
|
||||
AC_DEFUN([OL_SASL2_COMPAT],
|
||||
[AC_CACHE_CHECK([Cyrus SASL 2 library version], [ol_cv_sasl2_compat],[
|
||||
AC_EGREP_CPP(__sasl2_version_compat,[
|
||||
AC_DEFUN([OL_SASL_COMPAT],
|
||||
[AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
|
||||
AC_EGREP_CPP(__sasl_compat,[
|
||||
#include <sasl/sasl.h>
|
||||
|
||||
/* require 2.1.3 or later */
|
||||
#if SASL_VERSION_MAJOR >= 2 && (SASL_VERSION_MINOR > 1 || SASL_VERSION_STEP > 2)
|
||||
__sasl2_version_compat
|
||||
#if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
|
||||
char *__sasl_compat = "1.5.x okay";
|
||||
#elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
|
||||
__sasl_compat "2.2+ or better okay (we guess)";
|
||||
#elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
|
||||
&& SASL_VERSION_STEP >=3
|
||||
__sasl_compat = "2.1.3+ or better okay";
|
||||
#endif
|
||||
], [ol_cv_sasl2_compat=yes], [ol_cv_sasl2_compat=no])])
|
||||
], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user