From 57decde5b18e510eafcf5f30b127e7d897fde542 Mon Sep 17 00:00:00 2001 From: aland Date: Tue, 8 Jan 2008 04:27:39 +0000 Subject: [PATCH 1/1] If we've found -lcrypto, update LIBS so that the next check for -lssl uses -lcrypto. Otherwise, autoconf helpfully deletes -lcrypto from the LIBS variable BEFORE checking for -lssl. --- configure | 5 +++-- configure.in | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index e675e1d..7b094c3 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.251 . +# From configure.in Revision: 1.253 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # @@ -20860,6 +20860,7 @@ fi echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; } if test $ac_cv_lib_crypto_DH_new = yes; then + LIBS="-lcrypto $LIBS" cat >>confdefs.h <<\_ACEOF #define HAVE_LIBCRYPTO 1 @@ -23917,7 +23918,7 @@ echo "${ECHO_T}yes. Using $devflags" >&6; } else devflags="" CFLAGS="$CFLAGS -DNDEBUG" - INSTALLSTRIP="-s" + INSTALLSTRIP="" { echo "$as_me:$LINENO: result: no." >&5 echo "${ECHO_T}no." >&6; } fi diff --git a/configure.in b/configure.in index c06db06..c7e5ab2 100644 --- a/configure.in +++ b/configure.in @@ -523,6 +523,7 @@ if test "x$WITH_OPENSSL" = xyes; then fi AC_CHECK_LIB(crypto, DH_new, [ + LIBS="-lcrypto $LIBS" AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define to 1 if you have the `crypto' library (-lcrypto).]) AC_CHECK_LIB(ssl, SSL_new, -- 2.1.4