summaryrefslogtreecommitdiff
path: root/ext/snmp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/snmp')
-rw-r--r--ext/snmp/config.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/snmp/config.m4 b/ext/snmp/config.m4
index e9641569af..455bc31cac 100644
--- a/ext/snmp/config.m4
+++ b/ext/snmp/config.m4
@@ -101,8 +101,15 @@ if test "$PHP_SNMP" != "no"; then
SNMP_LIBNAME=snmp
fi
- AC_CHECK_FUNCS(snmp_parse_oid)
+ dnl Check whether snmp_parse_oid() exists.
+ PHP_CHECK_LIBRARY($SNMP_LIBNAME, snmp_parse_oid,
+ [
+ AC_DEFINE(HAVE_SNMP_PARSE_OID, 1, [ ])
+ ], [], [
+ $SNMP_SHARED_LIBADD
+ ])
+ dnl Test build.
PHP_CHECK_LIBRARY($SNMP_LIBNAME, init_snmp,
[
AC_DEFINE(HAVE_SNMP,1,[ ])