Pristine Ack-5.5
[Ack-5.5.git] / first / limit_enquire
1 while :
2 do
3         echo "The libraries will end up in the machine-independent part of the
4 ACK binary tree. You may already have them from a previous ACK installation
5 on a different machine, in particular if you have an NFS file system.
6 Therefore, it may not be neccessary to install them again. As this part
7 of the ACK installation takes the most time, you are given the opportunity
8 to disable installation of the machine-independent part"
9         echo $E_FLAG \
10         "Do you want to install the machine-independent part? (y/n) [$DO_MACHINE_INDEP] $E_SFX"
11         . $FDIR/get_answer
12         case $ANS in
13         '')     ANS="$DO_MACHINE_INDEP" ;;
14         esac
15         case X$ANS in
16         Xj*|Xy*|X)      DO_MACHINE_INDEP=y
17                 echo "machine-independent part will be installed"
18                 echo
19                 break
20                 ;;
21         Xn*)    DO_MACHINE_INDEP=n
22                 echo "machine-independent part will not be installed"
23                 echo
24                 break
25                 ;;
26         *)      echo "I do not understand your answer ($ANS). Try again."
27                 ;;
28         esac
29 done
30 OLD_DIS_LANG="$DISABLE_LANG"
31 DISABLE_LANG=
32 case X$OLD_DIS_LANG in
33 X)      ;;
34 *)      set $OLD_DIS_LANG
35         ;;
36 esac
37 for i in Modula-2 Pascal Occam Basic ANSI-C C Fortran
38 do
39     DEF=y
40     if [ $# != 0 -a X$i = X$1 ]
41     then
42         DEF=n
43         shift
44     fi
45     while :
46     do
47         echo $E_FLAG "Do you want to install $i? (y/n) [$DEF] $E_SFX"
48         . $FDIR/get_answer
49         case $ANS in
50         '')     ANS="$DEF";;
51         esac
52         case X$ANS in
53         Xj*|Xy*)
54                 echo "$i will be installed"
55                 echo
56                 break
57                 ;;
58         Xn*)    DISABLE_LANG=$DISABLE_LANG" $i"
59                 echo "$i will not be installed"
60                 echo
61                 break
62                 ;;
63         *)      echo "I do not understand your answer ($ANS). Try again."
64                 ;;
65         esac
66     done
67 done
68 OLD_DIS_SUP="$DISABLE_SUP"
69 DISABLE_SUP=
70 set $MACH_LIST
71 while test $# != 0
72 do
73     DEF=y
74     for i in $OLD_DIS_SUP
75     do
76         if [ X$i = X$1 ]
77         then
78                 DEF=n
79                 break
80         fi
81     done
82     while :
83     do
84         case $1 in
85         i86)    echo "not installing i86 will disable installation of xenix3 and minix."
86                 ;;
87         m68k2)  echo "not installing m68k2 will disable installation of pmds, minixST,
88 m68k4, pmds4, sun2, and mantra."
89                 ;;
90         m68k4)  echo "not installing m68k4 will disable installation of pmds4, sun2, and mantra."
91                 ;;
92         m68020) echo "not installing m68020 will disable installation of sun3."
93                 ;;
94         esac
95         echo $E_FLAG "Do you want to install the $1 support? (y/n) [$DEF] $E_SFX"
96         . $FDIR/get_answer
97         case $ANS in
98         '')     ANS="$DEF";;
99         esac
100         case X$ANS in
101         Xj*|Xy*)
102                 echo "The $1 support will be installed"
103                 echo
104                 case $1 in
105                 vax4)   case $SYSNAME in
106                         vax_bsd4_1a)    SYSVAX=libbsd4_1a
107                                         ;;
108                         vax_bsd4_2)     SYSVAX=libbsd4_2
109                                         ;;
110                         vax_sysV_2)     SYSVAX=libsysV_2
111                                         ;;
112                         *)              if [ $DO_MACHINE_INDEP = y ]
113                                         then
114                                                 . $FDIR/get_sysvax
115                                         fi
116                                         ;;
117                         esac
118                         ;;
119                 sparc)  shift
120                         ;;
121                 esac
122                 break
123                 ;;
124         Xn*)    DISABLE_SUP=$DISABLE_SUP" $1"
125                 echo "The $1 support will not be installed"
126                 echo
127                 case $1 in
128                 i86)
129                         shift
130                         DISABLE_SUP=$DISABLE_SUP" $1"
131                         shift
132                         DISABLE_SUP=$DISABLE_SUP" $1"
133                         ;;
134                 m68k2)
135                         shift
136                         DISABLE_SUP=$DISABLE_SUP" $1"
137                         shift
138                         DISABLE_SUP=$DISABLE_SUP" $1"
139                         shift
140                         DISABLE_SUP=$DISABLE_SUP" $1"
141                         shift
142                         DISABLE_SUP=$DISABLE_SUP" $1"
143                         shift
144                         DISABLE_SUP=$DISABLE_SUP" $1"
145                         shift
146                         DISABLE_SUP=$DISABLE_SUP" $1"
147                         ;;
148                 m68k4)
149                         shift
150                         DISABLE_SUP=$DISABLE_SUP" $1"
151                         shift
152                         DISABLE_SUP=$DISABLE_SUP" $1"
153                         shift
154                         DISABLE_SUP=$DISABLE_SUP" $1"
155                         ;;
156                 sparc)
157                         shift
158                         DISABLE_SUP=$DISABLE_SUP" $1"
159                         ;;
160                 m68020)
161                         shift
162                         DISABLE_SUP=$DISABLE_SUP" $1"
163                         ;;
164                 esac
165                 break
166                 ;;
167         *)      echo "I do not understand your answer ($ANS). Try again."
168                 ;;
169         esac
170     done
171     shift
172 done
173
174 if [ $TARGET_HOME = $UTIL_HOME ] 
175 then
176         case $ACM in
177         sun3|m68020|i386|vax*)
178                 while :
179                 do
180                         echo $E_FLAG "Do you want to install the fast compilers? (y/n) [$DO_FAST] $E_SFX"
181                         . $FDIR/get_answer
182                         case $ANS in
183                         '')     ANS="$DO_FAST" ;;
184                         esac
185                         case X$ANS in
186                         Xj*|Xy*)
187                                 DO_FAST=y
188                                 echo "The fast compilers will be installed"
189                                 break
190                                 ;;
191                         Xn*)
192                                 DO_FAST=n
193                                 echo "The fast compilers will not be installed"
194                                 break
195                                 ;;
196                         *)      echo "I do not understand your answer ($ANS). Try again."
197                                 ;;
198                         esac
199                 done
200                 ;;
201         *)
202                 DO_FAST=n
203                 ;;
204         esac
205 else
206         DO_FAST=n
207 fi