mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
- fixed bug in debugging output (added #include "config.h" to debug.h)
- rebuild configure script
This commit is contained in:
parent
7e1d4023b8
commit
e7dc46c01e
58
contrib/ldapc++/configure
vendored
58
contrib/ldapc++/configure
vendored
@ -1627,6 +1627,10 @@ if test "${enable_debug+set}" = set; then
|
||||
EOF
|
||||
|
||||
|
||||
else
|
||||
|
||||
CXXFLAGS="-O0"
|
||||
|
||||
|
||||
fi
|
||||
|
||||
@ -1659,7 +1663,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
|
||||
echo "configure:1663: checking for main in -lresolv" >&5
|
||||
echo "configure:1667: checking for main in -lresolv" >&5
|
||||
ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@ -1667,14 +1671,14 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lresolv $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1671 "configure"
|
||||
#line 1675 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
main()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@ -1702,7 +1706,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for ber_strdup in -llber""... $ac_c" 1>&6
|
||||
echo "configure:1706: checking for ber_strdup in -llber" >&5
|
||||
echo "configure:1710: checking for ber_strdup in -llber" >&5
|
||||
ac_lib_var=`echo lber'_'ber_strdup | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@ -1710,7 +1714,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-llber $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1714 "configure"
|
||||
#line 1718 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
@ -1721,7 +1725,7 @@ int main() {
|
||||
ber_strdup()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@ -1749,7 +1753,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for ldap_add_ext in -lldap""... $ac_c" 1>&6
|
||||
echo "configure:1753: checking for ldap_add_ext in -lldap" >&5
|
||||
echo "configure:1757: checking for ldap_add_ext in -lldap" >&5
|
||||
ac_lib_var=`echo ldap'_'ldap_add_ext | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@ -1759,7 +1763,7 @@ LIBS="-lldap
|
||||
-llber
|
||||
$LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1763 "configure"
|
||||
#line 1767 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
@ -1770,7 +1774,7 @@ int main() {
|
||||
ldap_add_ext()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@ -1798,12 +1802,12 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
||||
echo "configure:1802: checking whether time.h and sys/time.h may both be included" >&5
|
||||
echo "configure:1806: checking whether time.h and sys/time.h may both be included" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1807 "configure"
|
||||
#line 1811 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
@ -1812,7 +1816,7 @@ int main() {
|
||||
struct tm *tp;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_header_time=yes
|
||||
else
|
||||
@ -1833,7 +1837,7 @@ EOF
|
||||
fi
|
||||
|
||||
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
||||
echo "configure:1837: checking how to run the C preprocessor" >&5
|
||||
echo "configure:1841: checking how to run the C preprocessor" >&5
|
||||
# On Suns, sometimes $CPP names a directory.
|
||||
if test -n "$CPP" && test -d "$CPP"; then
|
||||
CPP=
|
||||
@ -1848,13 +1852,13 @@ else
|
||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||
# not just through cpp.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1852 "configure"
|
||||
#line 1856 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
@ -1865,13 +1869,13 @@ else
|
||||
rm -rf conftest*
|
||||
CPP="${CC-cc} -E -traditional-cpp"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1869 "configure"
|
||||
#line 1873 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
@ -1882,13 +1886,13 @@ else
|
||||
rm -rf conftest*
|
||||
CPP="${CC-cc} -nologo -E"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1886 "configure"
|
||||
#line 1890 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
@ -1914,17 +1918,17 @@ echo "$ac_t""$CPP" 1>&6
|
||||
|
||||
ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
||||
echo "configure:1918: checking for ldap.h" >&5
|
||||
echo "configure:1922: checking for ldap.h" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1923 "configure"
|
||||
#line 1927 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <ldap.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
@ -1946,7 +1950,7 @@ else
|
||||
fi
|
||||
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1950 "configure"
|
||||
#line 1954 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <ldap.h>
|
||||
EOF
|
||||
@ -1968,17 +1972,17 @@ rm -f conftest*
|
||||
|
||||
ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
||||
echo "configure:1972: checking for lber.h" >&5
|
||||
echo "configure:1976: checking for lber.h" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1977 "configure"
|
||||
#line 1981 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <lber.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
@ -2000,7 +2004,7 @@ else
|
||||
fi
|
||||
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2004 "configure"
|
||||
#line 2008 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <lber.h>
|
||||
EOF
|
||||
|
@ -24,7 +24,9 @@ dnl AC_PROG_MAKE_SET
|
||||
AC_ARG_ENABLE(debug,--enable-debug,[
|
||||
CXXFLAGS="-g -O0 -Wall"
|
||||
AC_DEFINE(WITH_DEBUG)
|
||||
]
|
||||
],[
|
||||
CXXFLAGS="-O0"
|
||||
]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(libldap,[ --with-libldap=DIR Path to the libldap library [/usr/local/lib]],[
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
#include <ldap.h>
|
||||
#include <ctype.h>
|
||||
//#include <ctype.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "StringList.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <ldap.h>
|
||||
|
||||
#include <debug.h>
|
||||
#include "debug.h"
|
||||
|
||||
#include "LDAPModifyRequest.h"
|
||||
#include "LDAPException.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "debug.h"
|
||||
#include"LDAPSearchResult.h"
|
||||
#include "LDAPSearchResult.h"
|
||||
#include "LDAPRequest.h"
|
||||
|
||||
LDAPSearchResult::LDAPSearchResult(const LDAPRequest *req,
|
||||
|
@ -6,13 +6,13 @@
|
||||
#ifndef DEBUG_H
|
||||
#define DEBUG_H
|
||||
#include <iostream>
|
||||
|
||||
#include "config.h"
|
||||
#define LDAP_DEBUG_NONE 0x0000
|
||||
#define LDAP_DEBUG_TRACE 0x0001
|
||||
#define LDAP_DEBUG_CONSTRUCT 0x0002
|
||||
#define LDAP_DEBUG_DESTROY 0x0004
|
||||
#define LDAP_DEBUG_PARAMETER 0x0008
|
||||
#define LDAP_DEBUG_ANY -1
|
||||
#define LDAP_DEBUG_ANY 0xffff
|
||||
|
||||
#define DEBUGLEVEL LDAP_DEBUG_ANY
|
||||
|
||||
|
@ -35,6 +35,7 @@ int main(){
|
||||
|
||||
LDAPAttributeList* attrs=new LDAPAttributeList();
|
||||
StringList values;
|
||||
StringList s2;
|
||||
values.add("top");
|
||||
values.add("Person");
|
||||
attrs->addAttribute(LDAPAttribute("objectClass",values));
|
||||
|
Loading…
Reference in New Issue
Block a user