From c12530bed53c51bcf217624ad523ef2b6ddd16c0 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 4 Feb 2010 11:53:36 +0100 Subject: Reactivate old fd handling conditionally Older versions of openLDAP do not provide a connection callback. This patch adds a configure check to see if the callback is available and activates the old way of handling the file description of the LDAP connection. This also means that it is not possible to follow referrals. --- server/external/ldap.m4 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/external/ldap.m4') diff --git a/server/external/ldap.m4 b/server/external/ldap.m4 index a17ed7e9..ee425d83 100644 --- a/server/external/ldap.m4 +++ b/server/external/ldap.m4 @@ -44,6 +44,10 @@ SAVE_LIBS=$LIBS CFLAGS="$CFLAGS $OPENLDAP_CFLAGS" LIBS="$LIBS $OPENLDAP_LIBS" AC_CHECK_FUNCS([ldap_control_create]) +AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg], + [AC_DEFINE([HAVE_LDAP_CONNCB], [1], + [Define if LDAP connection callbacks are available])], + [], [[#include ]]) CFLAGS=$SAVE_CFLAGS LIBS=$SAVE_LIBS -- cgit