summaryrefslogtreecommitdiff
path: root/ext/snmp/config.w32
diff options
context:
space:
mode:
Diffstat (limited to 'ext/snmp/config.w32')
-rw-r--r--ext/snmp/config.w3220
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/snmp/config.w32 b/ext/snmp/config.w32
new file mode 100644
index 0000000..2462243
--- /dev/null
+++ b/ext/snmp/config.w32
@@ -0,0 +1,20 @@
+// $Id$
+// vim:ft=javascript
+
+ARG_WITH("snmp", "SNMP support", "no");
+
+if (PHP_SNMP != "no") {
+ if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP)) {
+ if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
+ EXTENSION('snmp', 'snmp.c');
+ CHECK_LIB("libeay32.lib", "snmp", PHP_SNMP)
+ AC_DEFINE('HAVE_SNMP', 1);
+ AC_DEFINE("HAVE_NET_SNMP", 1);
+ } else {
+ WARNING("snmp not enabled; libraries and headers not found");
+ }
+ } else {
+ WARNING("snmp not enabled; libraries and headers not found");
+ }
+}
+