From 0ab357e3c9dc9cbadc808367db99908591942780 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 13 Oct 2009 12:11:07 +0200 Subject: add a replacement if ldap_control_create is missing --- server/external/ldap.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'server/external') diff --git a/server/external/ldap.m4 b/server/external/ldap.m4 index 5e817b82..a17ed7e9 100644 --- a/server/external/ldap.m4 +++ b/server/external/ldap.m4 @@ -38,3 +38,12 @@ else fi AC_SUBST(OPENLDAP_LIBS) + +SAVE_CFLAGS=$CFLAGS +SAVE_LIBS=$LIBS +CFLAGS="$CFLAGS $OPENLDAP_CFLAGS" +LIBS="$LIBS $OPENLDAP_LIBS" +AC_CHECK_FUNCS([ldap_control_create]) +CFLAGS=$SAVE_CFLAGS +LIBS=$SAVE_LIBS + -- cgit