xref: /php-src/ext/snmp/config.w32 (revision 41709ac8)
1// vim:ft=javascript
2
3ARG_WITH("snmp", "SNMP support", "no");
4
5if (PHP_SNMP != "no") {
6	if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP) &&
7		SETUP_OPENSSL("snmp", PHP_SNMP) >= 2) {
8		if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
9			EXTENSION('snmp', 'snmp.c');
10			ADD_EXTENSION_DEP('snmp', 'spl');
11			AC_DEFINE('HAVE_SNMP', 1, "Define to 1 if the PHP extension 'snmp' is available.");
12		} else {
13			WARNING("snmp not enabled; libraries and headers not found");
14		}
15	} else {
16		WARNING("snmp not enabled; libraries and headers not found");
17	}
18}
19