projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
snmp plugin: Replace reserved chars in hostname value
[collectd.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
77451f3
..
eab3432
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-3844,7
+3844,7
@@
if test "x$with_libnetsnmp" = "xyes"; then
AC_CACHE_CHECK([whether netsnmp library has old API],
[c_cv_have_netsnmp_old_api],
[
AC_CACHE_CHECK([whether netsnmp library has old API],
[c_cv_have_netsnmp_old_api],
[
- AC_
COMPILE
_IFELSE(
+ AC_
LINK
_IFELSE(
[
AC_LANG_PROGRAM(
[[
[
AC_LANG_PROGRAM(
[[
@@
-3852,9
+3852,9
@@
if test "x$with_libnetsnmp" = "xyes"; then
#include <net-snmp/net-snmp-includes.h>
]],
[[
#include <net-snmp/net-snmp-includes.h>
]],
[[
- netsnmp_variable_list *key;
+ netsnmp_variable_list *key
= SNMP_MALLOC_TYPEDEF(netsnmp_variable_list);
;
int val;
int val;
- u_char type;
+ u_char type
= ASN_INTEGER
;
snmp_set_var_value(key, &val, sizeof(val));
snmp_set_var_typed_value(key, type, &val, sizeof(val));
return 0;
snmp_set_var_value(key, &val, sizeof(val));
snmp_set_var_typed_value(key, type, &val, sizeof(val));
return 0;