Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorArtjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com>2020-02-19 15:38:28 +0300
committerArtjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com>2020-02-19 15:40:57 +0300
commit82b177868e514890008b3fd617fb3606a149d38b (patch)
treeef30fe76b8d6a3f3d7822667ac24cae770361a07 /m4
parent000f65eb60c2d196b43b2e20803e9f51350b2e20 (diff)
.......PS. [ZBXNEXT-3940] check net-snmp library version is at least 5.5.0
Diffstat (limited to 'm4')
-rw-r--r--m4/netsnmp.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/netsnmp.m4 b/m4/netsnmp.m4
index 061ff4dd008..0eed08a5523 100644
--- a/m4/netsnmp.m4
+++ b/m4/netsnmp.m4
@@ -98,6 +98,18 @@ AC_HELP_STRING([--with-net-snmp@<:@=ARG@:>@],
AC_CHECK_LIB(netsnmp, main, , [AC_MSG_ERROR([Not found Net-SNMP library])])
+ LIBNETSNMP_CONFIG_VERSION=`$_libnetsnmp_config --version`
+ netsnmp_version_major=`expr $LIBNETSNMP_CONFIG_VERSION : '\([[0-9]]*\)'`
+ netsnmp_version_minor=`expr $LIBNETSNMP_CONFIG_VERSION : '[[0-9]]*\.\([[0-9]]*\)'`
+ netsnmp_version_micro=`expr $LIBNETSNMP_CONFIG_VERSION : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
+ if test "x$netsnmp_version_micro" = "x"; then
+ netsnmp_version_micro="0"
+ fi
+
+ netsnmp_version_number=`expr $netsnmp_version_major \* 1000000 \
+ \+ $netsnmp_version_minor \* 1000 \
+ \+ $netsnmp_version_micro`
+
dnl Check for localname in struct snmp_session
AC_MSG_CHECKING(for localname in struct snmp_session)
AC_TRY_COMPILE([