diff options
-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] ) |