From 3767159dee1fac3127023777f178a74cc3daffd0 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sat, 22 Sep 2012 08:32:41 +0200 Subject: Detect LDAPDerefRes in configure script https://fedorahosted.org/sssd/ticket/1317 --- src/external/ldap.m4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/external') diff --git a/src/external/ldap.m4 b/src/external/ldap.m4 index f2435094..8899df9d 100644 --- a/src/external/ldap.m4 +++ b/src/external/ldap.m4 @@ -64,7 +64,10 @@ SAVE_CFLAGS=$CFLAGS SAVE_LIBS=$LIBS CFLAGS="$CFLAGS $OPENLDAP_CFLAGS" LIBS="$LIBS $OPENLDAP_LIBS" -AC_CHECK_FUNCS([ldap_control_create ldap_init_fd]) +AC_CHECK_FUNCS([ldap_control_create ldap_init_fd \ + ldap_create_deref_control_value \ + ldap_parse_derefresponse_control \ + ldap_derefresponse_free]) AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( @@ -79,6 +82,11 @@ AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg], [])], [], [[#include ]]) +AC_CHECK_TYPE([LDAPDerefRes], + [], + [AC_MSG_ERROR([The OpenLDAP version found does not contain the required type LDAPDerefRes])], + [[#include ]]) + CFLAGS=$SAVE_CFLAGS LIBS=$SAVE_LIBS -- cgit