components/cyrus-sasl/patches/110-solaris-configure.patch
author John Beck <John.Beck@Oracle.COM>
Mon, 03 Oct 2016 15:32:26 -0700
changeset 7030 496c07261afc
parent 5866 683c5c035a79
permissions -rw-r--r--
24791247 lighttpd should use MySQL 5.5 on Solaris 11.3, 5.7 on S12

# Developed in-house at Oracle
# File bug 3239 upstream asking for a configure option to give a path or name
# for the openldap library.
# http://bugzilla.cyrusimap.org/show_bug.cgi?id=3929

diff -rupN old/configure.in new/configure.in
--- old/configure.in	2016-02-23 19:24:33.185997552 -0800
+++ new/configure.in	2016-02-24 10:14:11.001802600 -0800
@@ -968,7 +968,7 @@ if test "$ldapdb" != no; then
         CMU_OPENLDAP_API
 
         if test "$cmu_cv_openldap_api" = yes; then
-            AC_CHECK_LIB(ldap, ldap_initialize, [ cmu_link_openldap="-lldap -llber" ], [ cmu_link_openldap=no ],-llber)
+            AC_CHECK_LIB(ldap_r, ldap_initialize, [ cmu_link_openldap="-lldap_r -llber" ], [ cmu_link_openldap=no ],-llber)
         fi
     fi
 
diff -rupN old/saslauthd/configure.in new/saslauthd/configure.in
--- old/saslauthd/configure.in	2016-02-23 19:24:48.448493822 -0800
+++ new/saslauthd/configure.in	2016-02-24 06:26:13.041626875 -0800
@@ -138,8 +138,8 @@ fi
 
 LDAP_LIBS=""
 if test "$with_ldap" != no; then
-  AC_CHECK_LIB(ldap, ldap_initialize, [ AC_DEFINE(HAVE_LDAP,[],[Support for LDAP?])
-                                        LDAP_LIBS="-lldap -llber"
+  AC_CHECK_LIB(ldap_r, ldap_initialize, [ AC_DEFINE(HAVE_LDAP,[],[Support for LDAP?])
+                                        LDAP_LIBS="-lldap_r -llber"
 					if test "$with_openssl" != "no"; then
 					    LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
 					fi],,-llber)