aboutsummaryrefslogtreecommitdiffstats
path: root/net/php4-ldap
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-09-08 18:42:35 +0800
committerale <ale@FreeBSD.org>2005-09-08 18:42:35 +0800
commita2f2a3bcb6e02e4f5ca5ce35a2582dd8eb0a1424 (patch)
tree98aaeb978d0902c9911ba1ee940de22d3c9dac6e /net/php4-ldap
parent4ab95ee8b844e7c056b9c4bd5177751fb4e19189 (diff)
downloadfreebsd-ports-gnome-a2f2a3bcb6e02e4f5ca5ce35a2582dd8eb0a1424.tar.gz
freebsd-ports-gnome-a2f2a3bcb6e02e4f5ca5ce35a2582dd8eb0a1424.tar.zst
freebsd-ports-gnome-a2f2a3bcb6e02e4f5ca5ce35a2582dd8eb0a1424.zip
Fix autodetection of some ldap functions.
PR: ports/85700 Submitted by: Brian A. Seklecki <lavalamp@spiritual-machines.org>
Diffstat (limited to 'net/php4-ldap')
-rw-r--r--net/php4-ldap/files/patch-config.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/net/php4-ldap/files/patch-config.m4 b/net/php4-ldap/files/patch-config.m4
new file mode 100644
index 000000000000..a9dd0c68e67c
--- /dev/null
+++ b/net/php4-ldap/files/patch-config.m4
@@ -0,0 +1,22 @@
+--- config.m4.orig Thu Sep 8 12:40:37 2005
++++ config.m4 Thu Sep 8 12:40:42 2005
+@@ -114,17 +114,18 @@
+ _SAVE_CPPFLAGS=$CPPFLAGS
+ _SAVE_LDFLAGS=$LDFLAGS
+ CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
++ LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD"
+ 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)],
+ ac_cv_3arg_setrebindproc=yes, ac_cv_3arg_setrebindproc=no)])
+ if test "$ac_cv_3arg_setrebindproc" = yes; then
+ AC_DEFINE(HAVE_3ARG_SETREBINDPROC,1,[Whether 3 arg set_rebind_proc()])
+ fi
+- CPPFLAGS=$_SAVE_CPPFLAGS
+
+ 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_result ldap_parse_reference ldap_start_tls_s])
++ CPPFLAGS=$_SAVE_CPPFLAGS
+ LDFLAGS=$_SAVE_LDFLAGS
+
+ dnl