diff options
-rw-r--r-- | Makefile.defs.in | 2 | ||||
-rw-r--r-- | configure.ac | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/Makefile.defs.in b/Makefile.defs.in index 915d3d83..b9b115fd 100644 --- a/Makefile.defs.in +++ b/Makefile.defs.in @@ -19,7 +19,7 @@ docdir = @docdir@ pdfdir = @pdfdir@ confdir = @sysconfdir@/nftables -LDFLAGS += @LDFLAGS@ +LDFLAGS += -lmnl -lnftnl LDFLAGS += @LIBS@ CPPFLAGS += @CPPFLAGS@ diff --git a/configure.ac b/configure.ac index 4aa14e32..e68d59f7 100644 --- a/configure.ac +++ b/configure.ac @@ -62,11 +62,8 @@ then fi # Checks for libraries. -AC_CHECK_LIB([mnl], [mnl_socket_open], , - AC_MSG_ERROR([No suitable version of libmnl found])) - -AC_CHECK_LIB([nftnl], [nft_rule_alloc], , - AC_MSG_ERROR([No suitable version of libnftnl found])) +PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.3]) +PKG_CHECK_MODULES([LIBNFTNL], [libnftnl >= 1.0.2]) AC_CHECK_LIB([gmp], [__gmpz_init], , AC_MSG_ERROR([No suitable version of libgmp found])) |