Need to set -lssl -lcrypto and do so outside the --with-openssl code
authorwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 18 Nov 2003 04:22:41 +0000 (04:22 +0000)
committerwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 18 Nov 2003 04:22:41 +0000 (04:22 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@739 cb58f699-b61c-0410-a6fe-9272a202ed29

configure.ac

index 4c194d0..322d967 100644 (file)
@@ -85,16 +85,17 @@ if test "x$PKG_CONFIG" = x || test "x$PKG_CONFIG" = "xno" ; then
     AC_ARG_WITH(openssl, 
             AC_HELP_STRING([--with-openssl=PATH], [where openssl is installed]),
             [if test x_$with_openssl != x_/usr; then
-           SSLLIBS="-L${with_openssl}/lib -lssl -lcrypto"
+           SSLLIBS="-L${with_openssl}/lib"
            SSLFLAGS="-I${with_openssl}/include"
             fi])
+    SSLLIBS="$SSLLIBS -lssl -lcrypto"
 else
     SSLLIBS="`$PKG_CONFIG --libs openssl`"
     SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
 fi
 AC_MSG_CHECKING(for OpenSSL libraries)
 AC_MSG_RESULT($SSLLIBS)
-LDFLAGS="$SSLLIBS $LDFLAGS"
+LIBS="$LIBS $SSLLIBS"
 AC_MSG_CHECKING(for OpenSSL cflags)
 AC_MSG_RESULT($SSLFLAGS)
 CPPFLAGS="$SSLFLAGS $CPPFLAGS"