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:
authorVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2021-09-08 14:14:25 +0300
committerVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2021-09-08 15:12:02 +0300
commitda73711eb731788a54299eb213676eea8b7c375d (patch)
treea6c2fc1c16c4601c50d4e8d91b9d541b426ccc9b /m4
parent3c3dae53f98d240641a6bb30f46a59b288652ba1 (diff)
....I..... [ZBX-19635] fixed build failure when DES is disabled in Net-SNMP or when LTO is used
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 1b7b6f465ca..5cb6159578c 100644
--- a/m4/netsnmp.m4
+++ b/m4/netsnmp.m4
@@ -200,6 +200,18 @@ session.localname = "";
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no))
+ AC_TRY_COMPILE([
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>],
+ [
+struct snmp_session session;
+
+session.securityPrivProto = usmDESPrivProtocol;
+ ],
+ AC_DEFINE(HAVE_NETSNMP_SESSION_DES, 1, [Define to 1 if 'usmDESPrivProtocol' exist.])
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no))
+
CFLAGS="$_save_netsnmp_cflags"
LDFLAGS="$_save_netsnmp_ldflags"
LIBS="$_save_netsnmp_libs"