From 98adcdd46619681b714bcabfa4e74628731cf7e9 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 9 Dec 2004 09:27:30 +0000
Subject: [PATCH] Ton Voon provided a configure fix that should fix the
 notorious (mostly reported on Solaris) problem where the size_t check fails
 due to the SSL libs being found in a dir not searched through by the run-time
 linker. patch-tracker entry #1081707.

---
 CHANGES      | 7 +++++++
 configure.ac | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/CHANGES b/CHANGES
index 3bd22a5405..e4890c5c8e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,11 +7,18 @@
                                   Changelog
 
 Daniel (9 December 2004)
+- Ton Voon provided a configure fix that should fix the notorious (mostly
+  reported on Solaris) problem where the size_t check fails due to the SSL
+  libs being found in a dir not searched through by the run-time linker.
+  patch-tracker entry #1081707.
+
 - Bryan Henderson pointed out in bug report #1081788 that the curl-config
   --vernum output wasn't zero prefixed properly (as claimed in documentation).
   This is fixed in maketgz now.
   
 Daniel (8 December 2004)
+- Matt Veenstra updated the mach-O framework files for Mac OS X.
+
 - Rene Bernhardt found and fixed a buffer overrun in the NTLM code, where
   libcurl always and unconditionally overwrote a stack-based array with 3 zero
   bytes. This is not an exploitable buffer overflow. No need to get alarmed.
diff --git a/configure.ac b/configure.ac
index 7e2373c599..b204653d91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -872,6 +872,12 @@ AC_HELP_STRING([--without-ca-bundle], [Don't install the CA bundle]),
   if test X"$OPT_SSL" != Xoff &&
      test "$OPENSSL_ENABLED" != "1"; then
     AC_MSG_ERROR([OpenSSL libs and/or directories were not found where specified!])
+  elif test "$OPENSSL_ENABLED" = "1"; then
+    dnl when the ssl shared libs were found in a path that the run-time linker
+    dnl doesn't search through, we need to add it to LD_LIBRARY_PATH to
+    dnl prevent further configure tests to fail due to this
+    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$EXTRA_SSL/lib$libsuff"
+    export LD_LIBRARY_PATH
   fi
 
 fi
-- 
GitLab