diff options
author | Michael Adam <obnox@samba.org> | 2008-02-06 18:16:03 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-02-06 18:16:22 +0100 |
commit | b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b (patch) | |
tree | 17c3f7fb3a82622c863a42341171a170ea02890b /source3/configure.in | |
parent | 7183e5811e00b650bd271c765562b9dcea8e2d09 (diff) | |
download | samba-b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b.tar.gz samba-b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b.tar.bz2 samba-b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b.zip |
Add configure check for LBER_LOG_PRINT_FN - to intercept ldap debug.
Use the resulting HAVE_LBER_LOG_PRINT_FN to determine whether we can
use it in init_ldap_debugging to intercept LDAP debug output and print
it out in the samba logs (controlled with "ldap debug level").
Michael
(This used to be commit 8dfc389ff678967a7b16ff1d68f00468a9925275)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index 7ed29fe902..5cc9019407 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -3490,6 +3490,21 @@ if test x"$with_ldap_support" != x"no"; then AC_DEFINE(HAVE_LDAP_SASL_WRAPPING, 1, [Support for SASL wrapping]) fi + ####################################################### + # if we have LBER_OPT_LOG_PRINT_FN, we can intercept + # ldap logging and print it out in the samba logs + AC_CACHE_CHECK([for LBER_OPT_LOG_PRINT_FN], + samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN, + [AC_TRY_COMPILE([#include <lber.h>], + [int val = LBER_OPT_LOG_PRINT_FN;], + samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN=yes, + samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN=no)]) + + if test x"$samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN" = x"yes"; then + AC_DEFINE(HAVE_LBER_LOG_PRINT_FN, 1, + [Support for LDAP/LBER logging interception]) + fi + ######################################################## # now see if we can find the ldap libs in standard paths AC_CHECK_LIB_EXT(ldap, LDAP_LIBS, ldap_init) |