res_snmp: As build tool, prefer pkg-config over net-snmp-config.

ASTERISK-29709

Change-Id: Ie169df878bdfc3a06b3097c5c38d185b480f54d4
This commit is contained in:
Alexander Traud
2021-10-28 14:09:32 +02:00
committed by Friendly Automation
parent 8b76a3cd3b
commit 95da40cd50
2 changed files with 97 additions and 0 deletions

View File

@@ -2354,6 +2354,7 @@ AST_EXT_TOOL_CHECK([NEON29], [neon-config], , [--libs],
#error Need libneon >= 0.29.0
#endif])
AST_PKG_CONFIG_CHECK(NETSNMP, netsnmp-agent)
AST_EXT_TOOL_CHECK([NETSNMP], [net-snmp-config], , [--agent-libs],
[#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>