2003-12-20 01:00:14 +08:00
|
|
|
// $Id$
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
|
|
|
ARG_WITH("snmp", "SNMP support", "no");
|
|
|
|
|
|
|
|
if (PHP_SNMP != "no") {
|
2017-01-08 07:17:31 +08:00
|
|
|
if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP) &&
|
|
|
|
SETUP_OPENSSL("snmp", PHP_SNMP) > 0) {
|
2010-02-10 00:38:24 +08:00
|
|
|
if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
|
|
|
|
EXTENSION('snmp', 'snmp.c');
|
|
|
|
AC_DEFINE('HAVE_SNMP', 1);
|
|
|
|
AC_DEFINE("HAVE_NET_SNMP", 1);
|
|
|
|
} else {
|
|
|
|
WARNING("snmp not enabled; libraries and headers not found");
|
|
|
|
}
|
2003-12-20 01:00:14 +08:00
|
|
|
} else {
|
|
|
|
WARNING("snmp not enabled; libraries and headers not found");
|
|
|
|
}
|
|
|
|
}
|