diff --git a/build/openldap.m4 b/build/openldap.m4 index b6fb814e0b..21f8f2b5ef 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -1188,7 +1188,11 @@ dnl Check for Cyrus SASL version compatility, need 2.1.3 or newer AC_DEFUN([OL_SASL_COMPAT], [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[ AC_EGREP_CPP(__sasl_compat,[ +#ifdef HAVE_SASL_SASL_H #include +#else +#include +#endif /* require 2.1.3 or later */ #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5