File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 5
5
PHP_ARG_WITH(snmp,for SNMP support,
6
6
[ --with-snmp[ =DIR] Include SNMP support.] )
7
7
8
+ PHP_ARG_WITH(openssl-dir,OpenSSL dir for SNMP,
9
+ [ --with-openssl-dir[ =DIR] SNMP: openssl install prefix.] , no, no)
10
+
8
11
if test "$PHP_SNMP" != "no"; then
9
12
10
13
dnl
@@ -77,13 +80,18 @@ if test "$PHP_SNMP" != "no"; then
77
80
AC_MSG_RESULT ( $SNMP_SSL )
78
81
79
82
if test "$SNMP_SSL" = "yes"; then
80
- if test "$PHP_OPENSSL" != "no"; then
81
- PHP_ADD_LIBRARY(ssl, 1, SNMP_SHARED_LIBADD)
82
- PHP_ADD_LIBRARY(crypto,1, SNMP_SHARED_LIBADD)
83
- else
84
- AC_MSG_ERROR ( The UCD-SNMP in this system is built with SSL support.
83
+ if test "$PHP_OPENSSL_DIR" != "no"; then
84
+ PHP_OPENSSL=$PHP_OPENSSL_DIR
85
+ fi
86
+
87
+ if test "$PHP_OPENSSL" = "no"; then
88
+ AC_MSG_ERROR ( [ The UCD-SNMP in this system is built with SSL support.
85
89
86
- Add -- with-openssl<=DIR> to your configure line. )
90
+ Add --with-openssl-dir=DIR to your configure line.] )
91
+ else
92
+ PHP_SETUP_OPENSSL(SNMP_SHARED_LIBADD, [ ] , [
93
+ AC_MSG_ERROR ( [ SNMP: OpenSSL check failed. Please check config.log for more information.] )
94
+ ] )
87
95
fi
88
96
fi
89
97
You can’t perform that action at this time.
0 commit comments