]> granicus.if.org Git - php/commitdiff
- Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build)
authorfoobar <sniper@php.net>
Tue, 23 Sep 2003 08:15:49 +0000 (08:15 +0000)
committerfoobar <sniper@php.net>
Tue, 23 Sep 2003 08:15:49 +0000 (08:15 +0000)
ext/snmp/config.m4

index e9641569aff4ec4d2d2b09aeec9a7290c3d57daa..455bc31cac26d2c665ead692f85201eb7936bf64 100644 (file)
@@ -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,[ ])