3 @@ -3640,7 +3640,7 @@ presetting ac_cv_c_bigendian=no (or yes)
7 -CFLAGS="$CFLAGS -D_BSD_SOURCE"
10 for ac_func in gettimeofday
12 @@ -3917,17 +3917,21 @@ if test "${with_libpcap+set}" = set; the
13 echo "${ECHO_T}no" >&6
16 - echo "$as_me:$LINENO: result: $withval" >&5
17 -echo "${ECHO_T}$withval" >&6
18 + echo "$ac_t""$withval" 1>&6
19 if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
21 if cd $withval; then withval=`pwd`; cd $owd; fi
22 - PCAP_CFLAGS="-I$withval -I$withval/bpf"
23 + PCAPINC="-I$withval -I$withval/bpf"
24 PCAPLIB="-L$withval -lpcap"
25 + elif test -f $withval/include/pcap.h -a \
26 + -f $withval/include/pcap-bpf.h -a \
27 + -f $withval/lib/libpcap.a; then
29 + if cd $withval; then withval=`pwd`; cd $owd; fi
30 + PCAPINC="-I$withval/include"
31 + PCAPLIB="-L$withval/lib -lpcap"
33 - { { echo "$as_me:$LINENO: error: pcap.h or libpcap.a not found in $withval" >&5
34 -echo "$as_me: error: pcap.h or libpcap.a not found in $withval" >&2;}
35 - { (exit 1); exit 1; }; }
36 + { echo "configure: error: pcap.h" 1>&2; exit 1; }
40 @@ -4399,10 +4403,10 @@ echo "${ECHO_T}no" >&6
42 echo "$as_me:$LINENO: result: $withval" >&5
43 echo "${ECHO_T}$withval" >&6
44 - if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/libnet-config ; then
45 + if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/bin/libnet-config ; then
47 if cd $withval; then withval=`pwd`; cd $owd; fi
48 - LNET_CFLAGS="-I$withval/include `$withval/libnet-config --defines`"
49 + LNET_CFLAGS="-I$withval/include `$withval/bin/libnet-config --defines`"
50 LNETLIB="-L$withval/lib -lnet"
51 elif test -f $withval/include/libnet.h -a -f $withval/src/libnet.a; then
53 @@ -4684,7 +4688,7 @@ else
54 echo "$as_me: failed program was:" >&5
55 sed 's/^/| /' conftest.$ac_ext >&5
60 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext