[collectd] [PATCH] configure, libiptc check fix

Bruno Prémont bonbons at linux-vserver.org
Wed Mar 21 21:28:42 CET 2012


Recent iptables (at least iptables-1.4.12.1) don't have
iptc_handle_t and ip6tc_handle_t anymore but just have the base
struct iptc_handle and struct ip6tc_handle.

As both structs are just forward definitions without ever
showing their contents, check for "struct iptc_handle *"
in configure.

Signed-off-by: Bruno Prémont <bonbons at linux-vserver.org>
---
diff --git a/configure.in b/configure.in
index 97fc54c..b663603 100644
--- a/configure.in
+++ b/configure.in
@@ -1651,7 +1651,7 @@ fi
 # declared in the iptables plugin.
 if test "x$with_libiptc" = "xpkgconfig"
 then
-	AC_CHECK_TYPES([iptc_handle_t, ip6tc_handle_t], [], [])
+	AC_CHECK_TYPES([struct iptc_handle *, struct ip6tc_handle *], [], [])
 fi
 # Check for the iptc_init symbol in the library.
 # This could be in iptc or ip4tc



More information about the collectd mailing list