From 19991f90d8398a944721b684b1584c1e339c6fec Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Thu, 5 Nov 2015 12:54:09 +0100 Subject: build: Handle libnetfilter-conntrack with pkg-config Needed for openSUSE since they have versioned libnetfilter-header files. Signed-off-by: Martin Hauke Signed-off-by: Tobias Klauser --- configure | 2 +- flowtop/Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 8956f0f..5bf898a 100755 --- a/configure +++ b/configure @@ -343,7 +343,7 @@ int main(void) } EOF - $CC -o $TMPDIR/nfcttest $TMPDIR/nfcttest.c -lnetfilter_conntrack >> config.log 2>&1 + $CC -o $TMPDIR/nfcttest $TMPDIR/nfcttest.c $(pkg-config libnetfilter_conntrack --cflags) -lnetfilter_conntrack >> config.log 2>&1 if [ ! -x $TMPDIR/nfcttest ] ; then echo "[NO]" MISSING_DEFS=1 diff --git a/flowtop/Makefile b/flowtop/Makefile index cb57cb3..bc7afb5 100644 --- a/flowtop/Makefile +++ b/flowtop/Makefile @@ -30,7 +30,8 @@ flowtop-objs += geoip.o \ ioops.o endif -flowtop-eflags = $(shell $(PKG_CONFIG) --cflags ncurses) +flowtop-eflags = $(shell $(PKG_CONFIG) --cflags ncurses) \ + $(shell $(PKG_CONFIG) --cflags libnetfilter_conntrack) flowtop-confs = tcp.conf \ udp.conf \ -- cgit v1.2.3-54-g00ecf