On Thu, 2013-08-01 at 11:10 +0200, Gilles Pion wrote:
> 2013/7/31 Andrew Bartlett <abart...@samba.org>
> >
> > Very interesting!  That we certainly can fix, thanks for the heads-up!
> 
> I've also filed a bug on that issue:
> https://bugzilla.samba.org/show_bug.cgi?id=10047

If I've understood you correctly, the attached patch should resolve the
issue.

If you can confirm, then if I can have a team member review and/or push
this for me, that would be great.  We can then backport it to 4.0 and
4.1 for the next releases of those branches. 

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Catalyst IT                   http://catalyst.net.nz

>From de14f0f120ae04190d46e554511b4939b7938508 Mon Sep 17 00:00:00 2001
From: Andrew Bartlett <abart...@samba.org>
Date: Fri, 2 Aug 2013 15:28:51 +1200
Subject: [PATCH] build: Add ldap.h and lber.h to checks for configure
 functions

Based on the suggestion by Gilles Pion <gilles.p...@gmail.com>, this apparently fixes detection of
LDAP on some AIX configurations.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abart...@samba.org>
---
 source3/wscript |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/source3/wscript b/source3/wscript
index 3c0145b..10e4fa0 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -627,8 +627,10 @@ msg.msg_acctrightslen = sizeof(fd);
         conf.CHECK_VARIABLE('LBER_OPT_LOG_PRINT_FN',
                             define='HAVE_LBER_LOG_PRINT_FN', headers='lber.h')
 
-        conf.CHECK_FUNCS_IN('ldap_init ldap_init_fd ldap_initialize ldap_set_rebind_proc', 'ldap')
-        conf.CHECK_FUNCS_IN('ldap_add_result_entry', 'ldap')
+        conf.CHECK_FUNCS_IN('ldap_init ldap_init_fd ldap_initialize ldap_set_rebind_proc', 'ldap',
+                            headers='ldap.h lber.h')
+        conf.CHECK_FUNCS_IN('ldap_add_result_entry', 'ldap',
+                            headers='ldap.h')
 
         # Check if ldap_set_rebind_proc() takes three arguments
         if conf.CHECK_CODE('ldap_set_rebind_proc(0, 0, 0)',
-- 
1.7.10.4

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to