components/cyrus-sasl/patches/110-solaris-configure.patch
author Jan Parcel <jan.parcel@oracle.com>
Wed, 27 Apr 2016 16:55:22 -0700
changeset 5866 683c5c035a79
permissions -rw-r--r--
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos 23041772 Reconcile redundancies between patches and Makefile 23044356 Unable to build openldap if cyrus-sasl requests -lldap_r for ldapdb 22928693 Now that libsasl2 is available, openldap should call it out as a dependency 23072799 fix dead/broken links in sasl html docs 23077448 Broken links with Net TI install with facet.devel=false - libsasl2

# 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)