summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96fb867)
raw | patch | inline | side by side (parent: 96fb867)
author | Florian Forster <octo@collectd.org> | |
Thu, 13 Sep 2012 15:56:13 +0000 (17:56 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 13 Sep 2012 15:56:13 +0000 (17:56 +0200) |
Apparently PF has been or is being ported to FreeBSD, so simply checking the OS
name is not the best of ideas.
name is not the best of ideas.
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 33ecca7cabdb493bf649a597e8dde5e4ba1207fb..c5544c1219acf256fd90c48038ed5d3de04c3499 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_CHECK_HEADERS(netinet/ip_compat.h)
+have_net_pfvar_h="no"
+AC_CHECK_HEADERS(net/pfvar.h, [have_net_pfvar_h="yes"])
+
# For the multimeter plugin
have_termios_h="no"
AC_CHECK_HEADERS(termios.h, [have_termios_h="yes"])
if test "x$ac_system" = "xOpenBSD"
then
plugin_tcpconns="yes"
- plugin_pf="yes"
fi
# Mac OS X devices
AC_PLUGIN([openvpn], [yes], [OpenVPN client statistics])
AC_PLUGIN([oracle], [$with_oracle], [Oracle plugin])
AC_PLUGIN([perl], [$plugin_perl], [Embed a Perl interpreter])
-AC_PLUGIN([pf], [$plugin_pf], [OpenBSD packet filter (PF) statistics])
+AC_PLUGIN([pf], [$have_net_pfvar_h], [BSD packet filter (PF) statistics])
# FIXME: Check for libevent, too.
AC_PLUGIN([pinba], [$have_protoc_c], [Pinba statistics])
AC_PLUGIN([ping], [$with_liboping], [Network latency statistics])