If we've found -lcrypto, update LIBS so that the next check for
authoraland <aland>
Tue, 8 Jan 2008 04:27:39 +0000 (04:27 +0000)
committeraland <aland>
Tue, 8 Jan 2008 04:27:39 +0000 (04:27 +0000)
-lssl uses -lcrypto.  Otherwise, autoconf helpfully deletes
-lcrypto from the LIBS variable BEFORE checking for -lssl.

configure
configure.in

index e675e1d..7b094c3 100755 (executable)
--- 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
index c06db06..c7e5ab2 100644 (file)
@@ -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,