diff options
| author | foobar <sniper@php.net> | 2003-07-01 00:02:13 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2003-07-01 00:02:13 +0000 |
| commit | b9fcb3462550854f77693068daee027138703408 (patch) | |
| tree | 1196ab123ec9c565ddbc342e670944c2d52b5a62 /ext/ldap | |
| parent | e4f67f3545b116ad420493b457a7afafb1e5a467 (diff) | |
| download | php-git-b9fcb3462550854f77693068daee027138703408.tar.gz | |
Fixed bug #24025 (Can not build with shared ldap support)
Diffstat (limited to 'ext/ldap')
| -rw-r--r-- | ext/ldap/config.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4 index 39fac5a2d7..2eb00971b8 100644 --- a/ext/ldap/config.m4 +++ b/ext/ldap/config.m4 @@ -157,6 +157,7 @@ if test "$PHP_LDAP" != "no"; then dnl Check for 3 arg ldap_set_rebind_proc _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LDFLAGS=$LDFLAGS CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" AC_CACHE_CHECK([for 3 arg ldap_set_rebind_proc], ac_cv_3arg_setrebindproc, [AC_TRY_COMPILE([#include <ldap.h>], [ldap_set_rebind_proc(0,0,0)], @@ -169,7 +170,8 @@ if test "$PHP_LDAP" != "no"; then dnl Solaris 2.8 claims to be 2004 API, but doesn't have dnl ldap_parse_reference() nor ldap_start_tls_s() AC_CHECK_FUNCS([ldap_parse_reference ldap_start_tls_s]) - + LDFLAGS=$_SAVE_LDFLAGS + dnl dnl SASL check dnl @@ -180,7 +182,10 @@ if test "$PHP_LDAP" != "no"; then dnl dnl Sanity check dnl + _SAVE_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD" AC_CHECK_FUNC(ldap_bind_s, [], [ AC_MSG_ERROR([LDAP build check failed. Please check config.log for more information.]) ]) + LDFLAGS=$_SAVE_LDFLAGS fi |
