@@ -12121,11 +12121,12 @@ if test "$with_ldap" = yes ; then
12121
12121
if test "$enable_thread_safety" = yes; then
12122
12122
# Use ldap_r for FE if available, else assume ldap is thread-safe.
12123
12123
# If ldap_r does exist, assume without checking that ldap does too.
12124
- # on some platforms ldap_r fails to link without PTHREAD_LIBS
12124
+ # On some platforms ldap_r fails to link without PTHREAD_LIBS;
12125
+ # also, on AIX we must probe ldap_simple_bind not ldap_bind.
12125
12126
LIBS=""
12126
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_bind " >&5
12127
- $as_echo_n "checking for library containing ldap_bind ... " >&6; }
12128
- if ${ac_cv_search_ldap_bind +:} false; then :
12127
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_simple_bind " >&5
12128
+ $as_echo_n "checking for library containing ldap_simple_bind ... " >&6; }
12129
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12129
12130
$as_echo_n "(cached) " >&6
12130
12131
else
12131
12132
ac_func_search_save_LIBS=$LIBS
@@ -12138,11 +12139,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138
12139
#ifdef __cplusplus
12139
12140
extern "C"
12140
12141
#endif
12141
- char ldap_bind ();
12142
+ char ldap_simple_bind ();
12142
12143
int
12143
12144
main ()
12144
12145
{
12145
- return ldap_bind ();
12146
+ return ldap_simple_bind ();
12146
12147
;
12147
12148
return 0;
12148
12149
}
@@ -12155,25 +12156,25 @@ for ac_lib in '' ldap_r ldap; do
12155
12156
LIBS="-l$ac_lib $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $ac_func_search_save_LIBS"
12156
12157
fi
12157
12158
if ac_fn_c_try_link "$LINENO"; then :
12158
- ac_cv_search_ldap_bind =$ac_res
12159
+ ac_cv_search_ldap_simple_bind =$ac_res
12159
12160
fi
12160
12161
rm -f core conftest.err conftest.$ac_objext \
12161
12162
conftest$ac_exeext
12162
- if ${ac_cv_search_ldap_bind +:} false; then :
12163
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12163
12164
break
12164
12165
fi
12165
12166
done
12166
- if ${ac_cv_search_ldap_bind +:} false; then :
12167
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12167
12168
12168
12169
else
12169
- ac_cv_search_ldap_bind =no
12170
+ ac_cv_search_ldap_simple_bind =no
12170
12171
fi
12171
12172
rm conftest.$ac_ext
12172
12173
LIBS=$ac_func_search_save_LIBS
12173
12174
fi
12174
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_bind " >&5
12175
- $as_echo "$ac_cv_search_ldap_bind " >&6; }
12176
- ac_res=$ac_cv_search_ldap_bind
12175
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_simple_bind " >&5
12176
+ $as_echo "$ac_cv_search_ldap_simple_bind " >&6; }
12177
+ ac_res=$ac_cv_search_ldap_simple_bind
12177
12178
if test "$ac_res" != no; then :
12178
12179
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12179
12180
0 commit comments