diff options
author | Stig Venaas <venaas@php.net> | 2000-10-28 18:26:45 +0000 |
---|---|---|
committer | Stig Venaas <venaas@php.net> | 2000-10-28 18:26:45 +0000 |
commit | 273422f2774bbb99e89f2a55f654df44306272a1 (patch) | |
tree | 7d292d4d583c6b206db12426e27de7f5a8c70d48 /configure.in | |
parent | 06de8e78cff4f985b0490bd30c2255871ab3afe4 (diff) | |
download | php-git-273422f2774bbb99e89f2a55f654df44306272a1.tar.gz |
Moving --with-openssl to global configure, want OpenSSL for not just snmp
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 3e60645b6a..88c2e82b7b 100644 --- a/configure.in +++ b/configure.in @@ -501,6 +501,41 @@ AC_ARG_WITH(exec-dir, AC_MSG_RESULT(/usr/local/php/bin) ]) +PHP_ARG_WITH(openssl,for OpenSSL support, +[ --with-openssl[=DIR] Include OpenSSL support]) +if test "$PHP_OPENSSL" = "yes"; then + PHP_OPENSSL="/usr/local/ssl /usr/local /usr /usr/local/openssl" +fi + +AC_DEFUN(PHP_SETUP_OPENSSL,[ + if test "$PHP_OPENSSL" = "no"; then + PHP_OPENSSL="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + + for i in $PHP_OPENSSL; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_DIR=$i + OPENSSL_INC=$i/include/openssl + elif test -r $i/include/evp.h; then + OPENSSL_DIR=$i + OPENSSL_INC=$i/include + fi + done + + if test -z "$OPENSSL_DIR"; then + AC_MSG_ERROR(Cannot find OpenSSL's <evp.h>) + fi + + AC_ADD_LIBPATH($OPENSSL_DIR/lib) + AC_ADD_LIBRARY(ssl) + AC_ADD_LIBRARY(crypto) + AC_ADD_INCLUDE($OPENSSL_INC) +]) + +if test "$PHP_OPENSSL" != "no"; then + PHP_SETUP_OPENSSL +fi + PHP_ARG_ENABLE(sigchild,whether to enable PHP's own SIGCHLD handler, [ --enable-sigchild Enable PHP's own SIGCHLD handler.],no) |