Line 0
Link Here
|
|
|
1 |
--- configure.old 2006-03-28 20:49:55.000000000 -0500 |
2 |
+++ configure 2007-12-13 13:57:42.000000000 -0500 |
3 |
@@ -3713,38 +3713,11 @@ |
4 |
|
5 |
fi; |
6 |
|
7 |
-LIBNET_CONFIG="libnet-config" # relative, using $PATH |
8 |
- |
9 |
-# Check whether --with-libnet or --without-libnet was given. |
10 |
-if test "${with_libnet+set}" = set; then |
11 |
- withval="$with_libnet" |
12 |
- |
13 |
- LIBNETCC="" |
14 |
- LIBNETLD="" |
15 |
- |
16 |
- test -x "$withval/bin/libnet-config" && LIBNET_CONFIG="$withval/bin/libnet-config" |
17 |
- test -x "$withval/libnet-config" && LIBNET_CONFIG="$withval/libnet-config" |
18 |
- |
19 |
- test -f "$withval/libnet.h" && LIBNETCC="$LIBNETCC -I$withval" |
20 |
- test -f "$withval/include/libnet.h" && LIBNETCC="$LIBNETCC -I$withval/include" |
21 |
- |
22 |
- test -f "$withval/libnet.a" && LIBNETLD="$LIBNETLD -L$withval" |
23 |
- test -f "$withval/lib/libnet.a" && LIBNETLD="$LIBNETLD -L$withval/lib" |
24 |
- |
25 |
- if test -z "$LIBNETCC" -o -z "$LIBNETLD" |
26 |
- then |
27 |
- { { echo "$as_me:$LINENO: error: No valid libnet library found in $withval" >&5 |
28 |
-echo "$as_me: error: No valid libnet library found in $withval" >&2;} |
29 |
- { (exit 1); exit 1; }; } |
30 |
- else |
31 |
- CPPFLAGS="$CPPFLAGS $LIBNETCC" |
32 |
- LDFLAGS="$LDFLAGS $LIBNETLD" |
33 |
- { echo "$as_me:$LINENO: using libnet in $withval" >&5 |
34 |
-echo "$as_me: using libnet in $withval" >&6;} |
35 |
- fi |
36 |
- |
37 |
-fi; |
38 |
- |
39 |
+LIBNET_CONFIG="libnet11-config" # relative, using $PATH |
40 |
+LIBNETCC=`$LIBNET_CONFIG --cflags` |
41 |
+LIBNETLD=`$LIBNET_CONFIG --libs` |
42 |
+CPPFLAGS="$CPPFLAGS $LIBNETCC" |
43 |
+LDFLAGS="$LDFLAGS $LIBNETLD" |
44 |
|
45 |
echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5 |
46 |
echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6 |