xref: /PHP-7.3/ext/snmp/config.w32 (revision 1c850bfc)
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) > 0) {
8		if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
9			EXTENSION('snmp', 'snmp.c');
10			AC_DEFINE('HAVE_SNMP', 1);
11			AC_DEFINE("HAVE_NET_SNMP", 1);
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