php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #71483
Patch php-openssl-rand-egd.patch revision 2016-01-29 13:07 UTC by jeff at macloue dot com

Patch php-openssl-rand-egd.patch for *Compile Issues Bug #71483

Patch version 2016-01-29 13:07 UTC

Return to Bug #71483 | Download this patch
Patch Revisions:

Developer: jeff@macloue.com

diff --git a/ext/openssl/config0.m4 b/ext/openssl/config0.m4
index a9484b4..44d7c60 100644
--- a/ext/openssl/config0.m4
+++ b/ext/openssl/config0.m4
@@ -21,7 +21,6 @@ if test "$PHP_OPENSSL" != "no"; then
 
   AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
   AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
-  AC_CHECK_FUNCS([RAND_egd])
 
   PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, 
   [
@@ -29,6 +28,7 @@ if test "$PHP_OPENSSL" != "no"; then
   ], [
     AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
   ])
+  AC_CHECK_FUNCS([RAND_egd])
   if test "$PHP_SYSTEM_CIPHERS" != "no"; then
     AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
   fi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC