diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-08 18:49:25 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-08 18:49:25 +0200 |
commit | 36476eaf763d29e8885f519ab1e0b8beda28074a (patch) | |
tree | 72efadf2d7c25299e2f0c351b906faa92d32a2eb /configure | |
parent | 78b9949fa486acc9a192df6e6283699fbe9b813a (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-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 } |