diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-09-07 15:11:58 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2021-09-07 15:11:58 +0300 |
commit | 5b890d5cf3776e91c086c7052b23df4d3837aafd (patch) | |
tree | 8c20e0a9d7b9004feec9dd2a0f5efb2d107c10c8 /m4 | |
parent | 1c2e0ee5d0c6e1ef10bc7eb8ccb3cb4338893191 (diff) |
....I..... [ZBX-19635] fixed build when DES is disabled in Net-SNMP
Diffstat (limited to 'm4')
-rw-r--r-- | m4/netsnmp.m4 | 12 |
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" |