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

diff --git a/NEWS b/NEWS
index 704649221377dae01ae61569e4a737e06abbe83a..4f94f515ad90c2293e15ce213870efd2d1103df2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ PHP 4                                                                      NEWS
 - Fixed crash bug when non-existing save/serializer handler was used. (Jani)
 - Fixed memory leak in gethostbynamel() if an error occurs. (Sara)
 - Fixed FastCGI being unable to bind to a specific IP. (Sascha)
+- Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build). (Jani)
 - Fixed bug #25583 (Incorrect handling of paths starting with / on win32 
   inside glob() function). (Ilia)
 - Fixed bug #25570 (Possible crash in apache2handler when zend_bailout called
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,[ ])