diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2019-02-19 15:03:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 15:03:03 +0200 |
commit | 5212ac30895fecf3d71b3b2cd5332a800588f12b (patch) | |
tree | 3455c72851cdc0299a76d9470bb70a5832d922cd /configure.ac | |
parent | fae8fb2c159142e173e634f2d3726b0bb8356dad (diff) |
Improve configure.ac mnl and netfilter_acc checks for static builds (#5424)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 38767686e8..d76484dcff 100644 --- a/configure.ac +++ b/configure.ac @@ -462,14 +462,24 @@ AC_CHECK_HEADERS_ONCE([linux/netfilter/nfnetlink_conntrack.h]) PKG_CHECK_MODULES( [NFACCT], [libnetfilter_acct], - [have_libnetfilter_acct=yes], + [AC_CHECK_LIB( + [netfilter_acct], + [nfacct_alloc], + [have_libnetfilter_acct=yes], + [have_libnetfilter_acct=no] + )], [have_libnetfilter_acct=no] ) PKG_CHECK_MODULES( [LIBMNL], [libmnl], - [have_libmnl=yes], + [AC_CHECK_LIB( + [mnl], + [mnl_socket_open], + [have_libmnl=yes], + [have_libmnl=no] + )], [have_libmnl=no] ) |