]> granicus.if.org Git - php/commitdiff
- Fixed build of shared extensions which require openssl and when you only
authorfoobar <sniper@php.net>
Thu, 13 Nov 2003 14:17:47 +0000 (14:17 +0000)
committerfoobar <sniper@php.net>
Thu, 13 Nov 2003 14:17:47 +0000 (14:17 +0000)
  have static openssl libraries.

acinclude.m4

index 340f79f191e2ba757e14db4e4d59c30f6c65a295..d8a9ce9a3cbfd3dbc0f769f28d357543c9088877 100644 (file)
@@ -1658,7 +1658,9 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
     ],[
       -L$OPENSSL_LIBDIR
     ])
-  
+
+    old_LIBS=$LIBS
+    LIBS="$LIBS -lcrypto"
     PHP_CHECK_LIBRARY(ssl, SSL_CTX_set_ssl_version, [
       PHP_ADD_LIBRARY(ssl,,$1)
       found_openssl=yes
@@ -1667,6 +1669,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
     ],[
       -L$OPENSSL_LIBDIR
     ])
+    LIBS=$old_LIBS
   fi
 
   dnl For apache 1.3.x static build