@@ -0,0 +1,13 @@
+Index: ext/ldap/config.m4
+===================================================================
+--- ext/ldap/config.m4.orig 2007-08-08 13:37:44.000000000 +0200
++++ ext/ldap/config.m4 2009-07-27 02:09:24.000000000 +0200
+@@ -50,7 +50,7 @@ AC_DEFUN([PHP_LDAP_SASL_CHECKS], [
+ SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
+ fi
+
+- PHP_CHECK_LIBRARY(ldap, sasl_version,
++ PHP_CHECK_LIBRARY(sasl2, sasl_version,
+ [
+ PHP_ADD_INCLUDE($LDAP_SASL_INCDIR)
+ PHP_ADD_LIBRARY_WITH_PATH(sasl2, $LDAP_SASL_LIBDIR, LDAP_SHARED_LIBADD)
|