summaryrefslogtreecommitdiff
path: root/net/gspoof/files/patch-configure
blob: 9721ae803bb61afe0145a4e224eeba1786cfe5f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- ./configure.orig	Tue Dec 23 07:54:42 2003
+++ ./configure	Wed Sep 27 18:23:26 2006
@@ -2505,24 +2505,12 @@
 as_ac_File=`echo "ac_cv_file_$LIBNET_PREFIX/lib/libnet.a" | $as_tr_sh`
 echo "$as_me:$LINENO: checking for $LIBNET_PREFIX/lib/libnet.a" >&5
 echo $ECHO_N "checking for $LIBNET_PREFIX/lib/libnet.a... $ECHO_C" >&6
-if eval "test \"\${$as_ac_File+set}\" = set"; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  test "$cross_compiling" = yes &&
-  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
-   { (exit 1); exit 1; }; }
-if test -r "$LIBNET_PREFIX/lib/libnet.a"; then
-  eval "$as_ac_File=yes"
-else
-  eval "$as_ac_File=no"
-fi
-fi
+eval "$as_ac_File=yes"
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
 if test `eval echo '${'$as_ac_File'}'` = yes; then
-  LDFLAGS="-L$LIBNET_PREFIX/lib"
-	       CPPFLAGS="-I$LIBNET_PREFIX/include"
+  LDFLAGS="`libnet-config --libs`"
+  CPPFLAGS="`libnet-config --cflags`"
 else
   { { echo "$as_me:$LINENO: error:
 Libnet-1.1.1 Packet Shaping Library is required!