summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-08 18:49:25 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-08 18:49:25 +0200
commit36476eaf763d29e8885f519ab1e0b8beda28074a (patch)
tree72efadf2d7c25299e2f0c351b906faa92d32a2eb /configure
parent78b9949fa486acc9a192df6e6283699fbe9b813a (diff)
configure: netsniff-ng: libpcap is not a hard dependency
netsniff-ng uses libpcap only for high-level filter compiling. Thus, let netsniff-ng not "hard-depend" on libpcap, but rather disable filter compiling in case the user does not want to install libpcap. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index f31cfa0..04c9c4e 100755
--- a/configure
+++ b/configure
@@ -359,11 +359,12 @@ EOF
$CC -o $TMPDIR/pcaptest $TMPDIR/pcaptest.c -lpcap >> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/pcaptest ] ; then
echo "[NO]"
+ echo "CONFIG_LIBPCAP=0" >> Config
MISSING_DEFS=1
- tools_remove "netsniff-ng"
tools_remove "mausezahn"
else
echo "[YES]"
+ echo "CONFIG_LIBPCAP=1" >> Config
fi
}