xref: /PHP-5.3/ext/snmp/config.w32 (revision d010d073)
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 if (CHECK_LIB("libsnmp.lib", "snmp", PHP_SNMP)) {
14			EXTENSION('snmp', 'snmp.c');
15			AC_DEFINE('HAVE_SNMP', 1);
16		} else {
17			WARNING("snmp not enabled; libraries and headers not found");
18		}
19	} else {
20		WARNING("snmp not enabled; libraries and headers not found");
21	}
22}
23
24