summaryrefslogtreecommitdiff
path: root/ext/ldap
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-12-03 09:35:42 +0000
committerfoobar <sniper@php.net>2002-12-03 09:35:42 +0000
commit68eaf6391a6a20d8c1af2d6bff7a000ac38ea7ce (patch)
treed3a5d6be2f134b859c6a3e047660ea39da2556ab /ext/ldap
parent679d645738ce5b40e40e9d7ec02ff6a9ca213d73 (diff)
downloadphp-git-68eaf6391a6a20d8c1af2d6bff7a000ac38ea7ce.tar.gz
- Fixed the build with iPlanet LDAP SDK 5.x
Diffstat (limited to 'ext/ldap')
-rw-r--r--ext/ldap/config.m415
1 files changed, 14 insertions, 1 deletions
diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4
index c2cb887bfb..9187224248 100644
--- a/ext/ldap/config.m4
+++ b/ext/ldap/config.m4
@@ -55,6 +55,16 @@ if test "$PHP_LDAP" != "no"; then
elif test -f $LDAP_LIBDIR/libldap.so.3; then
PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ elif test -f $LDAP_LIBDIR/libssldap50.so -o -f $LDAP_LIBDIR/libssldap50.sl; then
+ if test -n "$LDAP_PTHREAD"; then
+ PHP_ADD_LIBRARY($LDAP_PTHREAD)
+ fi
+ PHP_ADD_LIBRARY_WITH_PATH(nspr4, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(plc4, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(plds4, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ssldap50, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ AC_DEFINE(HAVE_NSLDAP,1,[ ])
+
elif test -f $LDAP_LIBDIR/libldapssl41.so -o -f $LDAP_LIBDIR/libldapssl41.sl; then
if test -n "$LDAP_PTHREAD"; then
PHP_ADD_LIBRARY($LDAP_PTHREAD)
@@ -86,7 +96,10 @@ if test "$PHP_LDAP" != "no"; then
elif test -f $LDAP_LIBDIR/libclntsh.so; then
PHP_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
AC_DEFINE(HAVE_ORALDAP,1,[ ])
- fi
+
+ else
+ AC_MSG_ERROR(Cannot find ldap libraries in $LDAP_LIBDIR.)
+ fi
PHP_ADD_INCLUDE($LDAP_INCDIR)
PHP_SUBST(LDAP_SHARED_LIBADD)