summaryrefslogtreecommitdiffstats
path: root/src/external/ldap.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-09-22 08:32:41 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-24 18:49:09 +0200
commit3767159dee1fac3127023777f178a74cc3daffd0 (patch)
tree6ec840be7e30af92a974b584f6bdb2194fbb9a92 /src/external/ldap.m4
parent5feb9beb0586ac97a85acec31c19acfff314fdbd (diff)
downloadsssd-3767159dee1fac3127023777f178a74cc3daffd0.tar.gz
sssd-3767159dee1fac3127023777f178a74cc3daffd0.tar.xz
sssd-3767159dee1fac3127023777f178a74cc3daffd0.zip
Detect LDAPDerefRes in configure script
https://fedorahosted.org/sssd/ticket/1317
Diffstat (limited to 'src/external/ldap.m4')
-rw-r--r--src/external/ldap.m410
1 files changed, 9 insertions, 1 deletions
diff --git a/src/external/ldap.m4 b/src/external/ldap.m4
index f24350943..8899df9d7 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 <ldap.h>]])
+AC_CHECK_TYPE([LDAPDerefRes],
+ [],
+ [AC_MSG_ERROR([The OpenLDAP version found does not contain the required type LDAPDerefRes])],
+ [[#include <ldap.h>]])
+
CFLAGS=$SAVE_CFLAGS
LIBS=$SAVE_LIBS