diff options
author | foobar <sniper@php.net> | 2003-09-23 08:15:49 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-09-23 08:15:49 +0000 |
commit | a299e943f83f497999a3d07158749bdc457ea687 (patch) | |
tree | edd9a925ae5b77409c97097fd8983a4c3b887358 /ext/snmp | |
parent | ce66e1eb8d6979a9414ee1ae9f15399edaadaab9 (diff) | |
download | php-git-a299e943f83f497999a3d07158749bdc457ea687.tar.gz |
- Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build)
Diffstat (limited to 'ext/snmp')
-rw-r--r-- | ext/snmp/config.m4 | 9 |
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,[ ]) |