3 @@ -5395,37 +5395,6 @@ $as_echo "Using $pfopen" >&6; }
8 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5
9 -$as_echo_n "checking for local pcap library... " >&6; }
11 -# Check whether --with-system-libpcap was given.
12 -if test "${with_system_libpcap+set}" = set; then :
13 - withval=$with_system_libpcap;
16 - if test "x$with_system_libpcap" != xyes ; then
18 - places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
19 - egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
20 - places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
21 - egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
22 - for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
23 - basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
24 - sed -e 's/-PRE-GIT$//' `
25 - if test $lastdir = $basedir ; then
29 - if test -r $dir/libpcap.a ; then
30 - libpcap=$dir/libpcap.a
35 - if test $libpcap = FAIL ; then
36 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37 -$as_echo "not found" >&6; }
40 # Look for pcap-config.
41 @@ -5581,51 +5550,6 @@ if test "x$ac_cv_lib_pcap_main" = xyes;
45 - if test $libpcap = FAIL ; then
46 - as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
48 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
49 -$as_echo_n "checking for extraneous pcap header directories... " >&6; }
50 - if test \( ! -r /usr/local/include/pcap.h \) -a \
51 - \( ! -r /usr/include/pcap.h \); then
52 - if test -r /usr/local/include/pcap/pcap.h; then
53 - d="/usr/local/include/pcap"
54 - elif test -r /usr/include/pcap/pcap.h; then
55 - d="/usr/include/pcap"
58 - if test -z "$d" ; then
59 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
60 -$as_echo "not found" >&6; }
62 - V_INCLS="-I$d $V_INCLS"
63 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5
64 -$as_echo "found -- -I$d added" >&6; }
69 - places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
70 - egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
71 - places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
72 - egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
74 - if test -r $d/pcap.h; then
77 - for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
78 - if test -r $dir/pcap.h ; then
84 - if test $pcapH = FAIL ; then
85 - as_fn_error $? "cannot find pcap.h: see INSTALL" "$LINENO" 5
87 - V_INCLS="-I$pcapH $V_INCLS"
88 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5
89 -$as_echo "$libpcap" >&6; }
90 # Extract the first word of "pcap-config", so it can be a program name with args.
91 set dummy pcap-config; ac_word=$2
92 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5