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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
--- snips-1.2/Configure.orig 2008-06-26 16:46:49.000000000 +0100
+++ snips-1.2/Configure 2008-06-26 16:48:10.000000000 +0100
@@ -72,11 +72,7 @@
if [ -f $PREVDEFS ]; then
echo "You seem to have already run $0 before, would you like"
echo "to take your previous answers as defaults [n]: " | tr -d '\012'
- read input
- if [ "$input" = "Y" ] || [ "$input" = "y" ]
- then
. ./$PREVDEFS
- fi
fi
cat <<!
@@ -93,14 +89,11 @@
!
echo "Enter top level directory [${ROOTDIR}]: " | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then ROOTDIR=${input}; fi
MANDIR=${ROOTDIR}/man
echo "Enter location of man pages [${MANDIR}]: " | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then MANDIR=${input} ; fi
echo "Enter extension for man pages [${MANEXT}]: " | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then MANEXT=${input} ; fi
cat <<!
@@ -115,34 +108,27 @@
if [ ! -f ${MAIL} ]; then MAIL=/bin/mail ; fi
if [ ! -f ${MAIL} ]; then MAIL=/usr/bin/mail ; fi
echo "Where is your MAIL program located? [${MAIL}] :" | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then MAIL="${input}" ; fi
if [ ! -f ${MAIL} ]; then echo "WARNING, ${MAIL} does not exist" ; fi
echo "Where should the operational email go? [${OPSMAIL}] :" | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then OPSMAIL="${input}" ; fi
echo "Where should the admin email go? [${ADMINMAIL}] :" | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then ADMINMAIL="${input}" ; fi
##
##
echo ""
echo "Which compiler would you like to use? [${CC}]: " | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then CC="${input}" ; fi
echo "What compiler options do you want (-DDEBUG)? [${CFLAGS}]: " | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then CFLAGS="${input}" ; fi
echo "What linker options do you want (-L/local/lib -lbind)? [${LIBS}]: " | tr -d '\012'
-read input ; if [ "X$input" != "X" ]; then LIBS="${input}" ; fi
(mkdir TemP; cd TemP; ${YACC}) 2>&1 | egrep -i 'not.*found' >/dev/null 2>&1
if [ $? = 0 ]; then
echo "${YACC} NOT FOUND"
YACC="bison -y"
echo "Enter an alternative to yacc [${YACC}]: " | tr -d '\012'
- read input ; if [ "X$input" != "X" ]; then YACC="${input}" ; fi
fi
rm -rf TemP
@@ -150,7 +136,6 @@
if [ ! -f ${PERL} ]; then PERL=/usr/local/bin/perl ; fi
if [ ! -f ${PERL} ]; then
echo "Where is PERL located on your system? [$PERL]: "| tr -d '\012'
- read input ; if [ "X$input" != "X" ]; then PERL="${input}" ; fi
if [ ! -f ${PERL} ]; then echo "WARNING, ${PERL} does not exist" ; fi
fi
@@ -161,12 +146,10 @@
if [ -d $RRDLIBDIR ]; then RRDCFLAGS="-DRRDTOOL" ; fi
if [ "$RRDCFLAGS" = "" ]; then definput="n" ; else definput="y" ; fi
echo "Do you have RRDtool installed (www.caida.org)? [$definput]: " | tr -d '\012'
-read input
if [ "X$input" = "X" ]; then input=$definput ; fi
if [ "$input" = "y" ] || [ "$input" = "Y" ]; then
RRDCFLAGS="-DRRDTOOL"
echo "Enter path to the RRD library [$RRDLIBDIR]: " | tr -d '\012'
- read input ; if [ "X$input" != "X" ]; then RRDLIBDIR="${input}"; fi
if [ ! -f $RRDLIBDIR/librrd.a ]; then
echo "WARNING, $RRDLIBDIR/librrd.a not found"
@@ -181,7 +164,6 @@
## Check if they want the old NOCOL mode
#echo ""
#echo "Do you want to compile using the old NOCOL event structure? [no]: " | tr -d '\012'
-#read input ; if [ "X$input" != "X" ]; then CFLAGS="${CFLAGS} -DNOCOL" ; fi
##
|