summaryrefslogtreecommitdiff
path: root/net-mgmt/sing/files/patch-configure
blob: 44c0c18a9355e26fe8278c551ed1d525b9473fb6 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- configure.orig	Thu May  3 17:44:18 2001
+++ configure	Thu May  3 16:33:56 2001
@@ -11,6 +11,10 @@
 ac_help=
 ac_default_prefix=/usr/local
 # Any additions from configure.in:
+ac_help="$ac_help
+  --with-libnet-prefix=PATH  path for libnet-config"
+ac_help="$ac_help
+  --with-libpcap-prefix=PATH  path for libpcap"
 
 # Initialize some variables set by options.
 # The variables have the same names as the options, with
@@ -526,8 +530,23 @@
 
 
 
-libpcapdir=libpcap-0.4
-libnetdir=Libnet-1.0.1b
+# Check whether --with-libnet-prefix or --without-libnet-prefix was given.
+if test "${with_libnet_prefix+set}" = set; then
+  withval="$with_libnet_prefix/bin"
+  libnetdir="$withval"
+else
+  libnetdir="Libnet-1.0.1b"
+fi
+
+
+# Check whether --with-libpcap-prefix or --without-libpcap-prefix was given.
+if test "${with_libpcap_prefix+set}" = set; then
+  withval="$with_libpcap_prefix"
+  libpcapdir="$withval"
+else
+  libpcapdir="libpcap-0.4"
+fi
+
 
 
 
@@ -1097,12 +1116,9 @@
   fi
 fi
 
-if test -n "$GCC"; then
-      CFLAGS="-O3 -Wall"
-fi
 
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1106: checking how to run the C preprocessor" >&5
+echo "configure:1122: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then
   CPP=