diff options
author | foobar <sniper@php.net> | 2003-06-24 03:41:44 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-06-24 03:41:44 +0000 |
commit | 65b6c4254b3a68165244e98fe5143b473cac955e (patch) | |
tree | 34bddbadadbab3c671aa7c78dd6c6234e48b83eb | |
parent | 9f306aae6cba2faae676c59dde5b0705718be3d7 (diff) | |
download | php-git-65b6c4254b3a68165244e98fe5143b473cac955e.tar.gz |
Synced PHP_SETUP_OPENSSL with PHP_SETUP_ICONV and PHP_SETUP_LIBXML macros.
-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 |