diff options
author | foobar <sniper@php.net> | 2003-06-24 14:05:26 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-06-24 14:05:26 +0000 |
commit | e3cd8fac9bb85e7e39537fcc39f2bc0a1b7aadbf (patch) | |
tree | 34350c732955fbdf61f965ca0984ce49f7d9bbfc /ext/snmp | |
parent | e1a9dd289afc0a056865dff95fc356444af6744c (diff) | |
download | php-git-e3cd8fac9bb85e7e39537fcc39f2bc0a1b7aadbf.tar.gz |
- Unified PHP_SETUP_OPENSSL with other PHP_SETUP_* macros.
Diffstat (limited to 'ext/snmp')
-rw-r--r-- | ext/snmp/config.m4 | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/ext/snmp/config.m4 b/ext/snmp/config.m4 index d8a5ad5d3e..e9641569af 100644 --- a/ext/snmp/config.m4 +++ b/ext/snmp/config.m4 @@ -5,6 +5,9 @@ dnl PHP_ARG_WITH(snmp,for SNMP support, [ --with-snmp[=DIR] Include SNMP support.]) +PHP_ARG_WITH(openssl-dir,OpenSSL dir for SNMP, +[ --with-openssl-dir[=DIR] SNMP: openssl install prefix.], no, no) + if test "$PHP_SNMP" != "no"; then dnl @@ -77,13 +80,18 @@ if test "$PHP_SNMP" != "no"; then AC_MSG_RESULT($SNMP_SSL) if test "$SNMP_SSL" = "yes"; then - if test "$PHP_OPENSSL" != "no"; then - PHP_ADD_LIBRARY(ssl, 1, SNMP_SHARED_LIBADD) - PHP_ADD_LIBRARY(crypto,1, SNMP_SHARED_LIBADD) - else - AC_MSG_ERROR(The UCD-SNMP in this system is built with SSL support. + if test "$PHP_OPENSSL_DIR" != "no"; then + PHP_OPENSSL=$PHP_OPENSSL_DIR + fi + + if test "$PHP_OPENSSL" = "no"; then + AC_MSG_ERROR([The UCD-SNMP in this system is built with SSL support. - Add --with-openssl<=DIR> to your configure line.) + Add --with-openssl-dir=DIR to your configure line.]) + else + PHP_SETUP_OPENSSL(SNMP_SHARED_LIBADD, [], [ + AC_MSG_ERROR([SNMP: OpenSSL check failed. Please check config.log for more information.]) + ]) fi fi |