xref: /PHP-7.0/ext/snmp/config.w32 (revision cab643f6)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("snmp", "SNMP support", "no");
5
6if (PHP_SNMP != "no") {
7	if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP)) {
8		if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
9			EXTENSION('snmp', 'snmp.c');
10			CHECK_LIB("libeay32.lib", "snmp", PHP_SNMP)
11			AC_DEFINE('HAVE_SNMP', 1);
12			AC_DEFINE("HAVE_NET_SNMP", 1);
13		} else {
14			WARNING("snmp not enabled; libraries and headers not found");
15		}
16	} else {
17		WARNING("snmp not enabled; libraries and headers not found");
18	}
19}
20
21