Fix openssl checks
authorAlan T. DeKok <aland@freeradius.org>
Tue, 20 Oct 2009 14:07:18 +0000 (16:07 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Oct 2009 14:07:18 +0000 (16:07 +0200)
configure.in

index d53287d..84b66f3 100644 (file)
@@ -520,8 +520,9 @@ dnl Check for OpenSSL libraries.
 OPENSSL_LIBS=
 if test "x$WITH_OPENSSL" = xyes; then
   old_LIBS=$LIBS
+  old_LDFLAGS="$LDFLAGS"
   if test "x$OPENSSL_LIB_DIR" != "x"; then
-    LIBS="-L$OPENSSL_LIB_DIR $LIBS"
+    LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
   fi
   AC_CHECK_LIB(crypto, DH_new,
     [
@@ -539,6 +540,7 @@ if test "x$WITH_OPENSSL" = xyes; then
            ], [])
     ], [])
   LIBS=$old_LIBS
+  LDFLAGS="$old_LDFLAGS"
 fi
 
 AC_CHECK_LIB(ws2_32, htonl)