summaryrefslogtreecommitdiffstats
path: root/source/configure.in
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-07-16 16:22:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:39 -0500
commit8455c65be34186e73283bb60b1ef3441d0338d55 (patch)
tree37c5437ab114506159d7f7f687fc215c5c0c2bee /source/configure.in
parent873eaff8febb50f00f9dac64c57b2a22c16f4f9b (diff)
downloadsamba-8455c65be34186e73283bb60b1ef3441d0338d55.tar.gz
samba-8455c65be34186e73283bb60b1ef3441d0338d55.tar.xz
samba-8455c65be34186e73283bb60b1ef3441d0338d55.zip
r23900: LDAP_OPT_SOCKBUF doesn't exists on all platforms
metze
Diffstat (limited to 'source/configure.in')
-rw-r--r--source/configure.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/configure.in b/source/configure.in
index b824d9d37e0..d1ef464202e 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -3481,7 +3481,15 @@ if test x"$with_ldap_support" != x"no"; then
# If ber_sockbuf_add_io() is available we can add
# SASL wrapping hooks
AC_CHECK_FUNC_EXT(ber_sockbuf_add_io,$LDAP_LIBS)
- if test x"$ac_cv_func_ext_ber_sockbuf_add_io" = x"yes"; then
+
+ AC_CACHE_CHECK([for LDAP_OPT_SOCKBUF],samba_cv_HAVE_LDAP_OPT_SOCKBUF,[
+ AC_TRY_COMPILE([#include <ldap.h>],
+ [int val = LDAP_OPT_SOCKBUF;],
+ samba_cv_HAVE_LDAP_OPT_SOCKBUF=yes,
+ samba_cv_HAVE_LDAP_OPT_SOCKBUF=no)])
+
+ if test x"$ac_cv_func_ext_ber_sockbuf_add_io" = x"yes" -a \
+ x"$samba_cv_HAVE_LDAP_OPT_SOCKBUF" = x"yes"; then
AC_DEFINE(HAVE_LDAP_SASL_WRAPPING, 1, [Support for SASL wrapping])
fi