X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=blobdiff_plain;f=configure.ac;h=663f0a395a191049879c1a91ef1e15b5090577c5;hp=ddbc28e44fa2736d94eaa473a44fd12f8c9773c4;hb=f74a2240c8b8e7a469170d6300bfd4fb79ef52c1;hpb=aa20eece28fce4517d781b6c47ada472cb188faf diff --git a/configure.ac b/configure.ac index ddbc28e4..663f0a39 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ AC_PREREQ(2.60) define([VERSION_MAJOR], [1]) -define([VERSION_MINOR], [5]) +define([VERSION_MINOR], [6]) define([VERSION_FIX], [1]) define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX) define([VERSION_SUFFIX], [_rolling]) @@ -55,7 +55,7 @@ AC_ARG_ENABLE( ) AC_ARG_ENABLE( [plugin-freeipmi], - [AS_HELP_STRING([--enable-plugin-freeipmi], [freeipmi plugin, requires root])], + [AS_HELP_STRING([--enable-plugin-freeipmi], [enable freeipmi plugin])], , [enable_plugin_freeipmi="detect"] ) @@ -363,12 +363,15 @@ AM_CONDITIONAL([ENABLE_PLUGIN_FREEIPMI], [test "${enable_plugin_freeipmi}" = "ye # ----------------------------------------------------------------------------- # nfacct.plugin - libmnl, libnetfilter_acct +AC_CHECK_HEADERS_ONCE([linux/netfilter/nfnetlink_conntrack.h]) + PKG_CHECK_MODULES( [NFACCT], [libnetfilter_acct], [have_libnetfilter_acct=yes], [have_libnetfilter_acct=no] ) + PKG_CHECK_MODULES( [LIBMNL], [libmnl], @@ -385,6 +388,8 @@ test "${enable_plugin_nfacct}" = "yes" -a "${have_libmnl}" != "yes" && \ AC_MSG_CHECKING([if nfacct.plugin should be enabled]) if test "${enable_plugin_nfacct}" != "no" -a "${have_libnetfilter_acct}" = "yes" -a "${have_libmnl}" = "yes"; then enable_plugin_nfacct="yes" + AC_DEFINE([HAVE_LIBMNL], [1], [libmnl usability]) + AC_DEFINE([HAVE_LIBNETFILTER_ACCT], [1], [libnetfilter_acct usability]) AC_DEFINE([INTERNAL_PLUGIN_NFACCT], [1], [nfacct plugin usability]) OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}" OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} ${LIBMNL_LIBS}"