This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cosmetics.
[metaconfig.git] / U / modified / Oldconfig.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: Oldconfig.U,v 3.0.1.10 1997/02/28 15:06:39 ram Exp $
2?RCS:
3?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4?RCS:
5?RCS: You may redistribute only under the terms of the Artistic Licence,
6?RCS: as specified in the README file that comes with the distribution.
7?RCS: You may reuse parts of this distribution only within the terms of
8?RCS: that same Artistic Licence; a copy of which may be found at the root
9?RCS: of the source tree for dist 3.0.
10?RCS:
11?RCS: $Log: Oldconfig.U,v $
12?RCS: Revision 3.0.1.10 1997/02/28 15:06:39 ram
13?RCS: patch61: added support for src.U
14?RCS: patch61: new OSNAME define
15?RCS: patch61: can now sense new OSes
16?RCS:
17?RCS: Revision 3.0.1.9 1995/07/25 13:40:51 ram
18?RCS: patch56: now knows about OS/2 platforms
19?RCS:
20?RCS: Revision 3.0.1.8 1995/05/12 12:04:18 ram
21?RCS: patch54: config.sh reload logic now knows about new -K switch
22?RCS: patch54: cleaned up and extended osvers for DEC OSF/1 (ADO)
23?RCS: patch54: added MachTen detection (ADO)
24?RCS:
25?RCS: Revision 3.0.1.7 1995/02/15 14:13:41 ram
26?RCS: patch51: adapted osvers computation for AIX (ADO)
27?RCS:
28?RCS: Revision 3.0.1.6 1995/01/30 14:27:15 ram
29?RCS: patch49: unit Options.U now exports file optdef.sh, not a variable
30?RCS: patch49: update code for myuname changed (WED)
31?RCS:
32?RCS: Revision 3.0.1.5 1995/01/11 15:15:36 ram
33?RCS: patch45: added quotes around the INITPROG variable (ADO)
34?RCS: patch45: allows variable overriding after config file loading
35?RCS:
36?RCS: Revision 3.0.1.4 1994/10/29 15:57:05 ram
37?RCS: patch36: added ?F: line for metalint file checking
38?RCS: patch36: merged with the version used for perl5's Configure (ADO)
39?RCS:
40?RCS: Revision 3.0.1.3 1994/05/06 14:24:17 ram
41?RCS: patch23: added support for osf1 hints
42?RCS: patch23: new support for solaris and i386 systems (ADO)
43?RCS:
44?RCS: Revision 3.0.1.2 1994/01/24 14:05:02 ram
45?RCS: patch16: added post-processing on myuname for Xenix targets
46?RCS: patch16: message proposing config.sh defaults made consistent
47?RCS:
48?RCS: Revision 3.0.1.1 1993/09/13 15:56:32 ram
49?RCS: patch10: force use of config.sh when -d option is used (WAD)
50?RCS: patch10: complain about non-existent hint files (WAD)
51?RCS: patch10: added Options dependency for fastread variable
52?RCS:
53?RCS: Revision 3.0 1993/08/18 12:05:12 ram
54?RCS: Baseline for dist 3.0 netwide release.
55?RCS:
56?X:
57?X: This unit tries to remember what we did last time we ran Configure, mostly
58?X: for the sake of setting defaults.
59?X:
60?MAKE:Oldconfig hint myuname osname osvers: Instruct Myread uname \
61 sh awk sed test cat rm lns tr n c contains Loc Options Tr src trnl ln
62?MAKE: -pick wipe $@ %<
63?S:myuname:
64?S: The output of 'uname -a' if available, otherwise the hostname. On Xenix,
65?S: pseudo variables assignments in the output are stripped, thank you. The
66?S: whole thing is then lower-cased.
67?S:.
68?S:hint:
69?S: Gives the type of hints used for previous answers. May be one of
70?S: "default", "recommended" or "previous".
71?S:.
72?S:osname:
73?S: This variable contains the operating system name (e.g. sunos,
74?S: solaris, hpux, etc.). It can be useful later on for setting
75?S: defaults. Any spaces are replaced with underscores. It is set
76?S: to a null string if we can't figure it out.
77?S:.
78?S:osvers:
79?S: This variable contains the operating system version (e.g.
80?S: 4.1.3, 5.2, etc.). It is primarily used for helping select
81?S: an appropriate hints file, but might be useful elsewhere for
82?S: setting defaults. It is set to '' if we can't figure it out.
83?S: We try to be flexible about how much of the version number
84?S: to keep, e.g. if 4.1.1, 4.1.2, and 4.1.3 are essentially the
85?S: same for this package, hints files might just be os_4.0 or
86?S: os_4.1, etc., not keeping separate files for each little release.
87?S:.
88?C:OSNAME:
89?C: This symbol contains the name of the operating system, as determined
90?C: by Configure. You shouldn't rely on it too much; the specific
91?C: feature tests from Configure are generally more reliable.
92?C:.
93?H:#define OSNAME "$osname" /**/
94?H:.
95?F:!config.sh
96?T:tmp tmp_n tmp_c tmp_sh file
97?T:xxxxfile xxxfile xxfile xfile hintfile newmyuname
98?T:tans _ isesix INITPROG DJGPP
99?D:osname=''
100?LINT:change n c sh
101: Try to determine whether config.sh was made on this system
102case "$config_sh" in
103'')
104?X: indentation wrong on purpose--RAM
105?X: Leave a white space between first two '(' for ksh. The sub-shell is needed
106?X: on some machines to avoid the error message when uname is not found; e.g.
107?X: old SUN-OS 3.2 would not execute hostname in (uname -a || hostname). Sigh!
108myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1`
109?X: Special mention for Xenix, whose 'uname -a' gives us output like this:
110?X: sysname=XENIX
111?X: nodename=whatever
112?X: release=2.3.2 .. etc...
113?X: Therefore, we strip all this variable assignment junk and remove all the
114?X: new lines to keep the myuname variable sane... --RAM
115# tr '[A-Z]' '[a-z]' would not work in EBCDIC
116# because the A-Z/a-z are not consecutive.
117myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e 's/\///g' | \
118 ./tr '[A-Z]' '[a-z]' | $tr $trnl ' '`
119?X: Save the value we just computed to reset myuname after we get done here.
120newmyuname="$myuname"
121dflt=n
122case "$knowitall" in
123'')
124 if test -f ../config.sh; then
125 if $contains myuname= ../config.sh >/dev/null 2>&1; then
126 eval "`grep myuname= ../config.sh`"
127 fi
128 if test "X$myuname" = "X$newmyuname"; then
129 dflt=y
130 fi
131 fi
132 ;;
133*) dflt=y;;
134esac
135
136@if {test -d ../hints}
137: Get old answers from old config file if Configure was run on the
138: same system, otherwise use the hints.
139hint=default
140cd ..
141?X: Since we are now at the root of the source tree, we must use $src
142?X: to access the sources and not $rsrc. See src.U for details...
143if test -f config.sh; then
144 echo " "
145 rp="I see a config.sh file. Shall I use it to set the defaults?"
146 . UU/myread
147 case "$ans" in
148 n*|N*) echo "OK, I'll ignore it."; mv config.sh config.sh.old;;
149 *) echo "Fetching default answers from your old config.sh file..." >&4
150 tmp_n="$n"
151 tmp_c="$c"
152 tmp_sh="$sh"
153 . ./config.sh
154 cp config.sh UU
155 n="$tmp_n"
156 c="$tmp_c"
157 : Older versions did not always set $sh. Catch re-use of such
158 : an old config.sh.
159 case "$sh" in
160 '') sh="$tmp_sh" ;;
161 esac
162 hint=previous
163 ;;
164 esac
165fi
166if test ! -f config.sh; then
167 $cat <<EOM
168
169First time through, eh? I have some defaults handy for some systems
170that need some extra help getting the Configure answers right:
171
172EOM
173 (cd $src/hints; ls -C *.sh) | $sed 's/\.sh/ /g' >&4
174 dflt=''
175 : Half the following guesses are probably wrong... If you have better
176 : tests or hints, please send them to <MAINTLOC>
177 : The metaconfig authors would also appreciate a copy...
178 $test -f /irix && osname=irix
179 $test -f /xenix && osname=sco_xenix
180 $test -f /dynix && osname=dynix
181 $test -f /dnix && osname=dnix
182 $test -f /lynx.os && osname=lynxos
183 $test -f /unicos && osname=unicos && osvers=`$uname -r`
73f6f260 184 $test -f /unicosmk && osname=unicosmk && osvers=`$uname -r`
959f3c4c
JH
185 $test -f /unicosmk.ar && osname=unicosmk && osvers=`$uname -r`
186 $test -f /bin/mips && /bin/mips && osname=mips
187 $test -d /NextApps && set X `hostinfo | grep 'NeXT Mach.*:' | \
188 $sed -e 's/://' -e 's/\./_/'` && osname=next && osvers=$4
189 $test -d /usr/apollo/bin && osname=apollo
190 $test -f /etc/saf/_sactab && osname=svr4
191 $test -d /usr/include/minix && osname=minix
192 if $test -d /MachTen -o -d /MachTen_Folder; then
193?X: MachTen uname -a output looks like
194?X: xxx 4 0.0 Macintosh
195?X: MachTen /sbin/version output looks like
196?X: MachTen 4.0 Mon Aug 28 10:18:00 1995
197?X: MachTen 3.x had the 'version' command in /usr/etc/version.
198 osname=machten
199 if $test -x /sbin/version; then
200 osvers=`/sbin/version | $awk '{print $2}' |
201 $sed -e 's/[A-Za-z]$//'`
202 elif $test -x /usr/etc/version; then
203 osvers=`/usr/etc/version | $awk '{print $2}' |
204 $sed -e 's/[A-Za-z]$//'`
205 else
206 osvers="$2.$3"
207 fi
208 fi
edd6115f
JH
209
210 $test -f /sys/posix.dll &&
211 $test -f /usr/bin/what &&
212 set X `/usr/bin/what /sys/posix.dll` &&
213 $test "$3" = UWIN &&
214 osname=uwin &&
215 osvers="$5"
216
959f3c4c
JH
217?X: If we have uname, we already computed a suitable uname -a output, correctly
218?X: formatted for Xenix, and it lies in $myuname.
219 if $test -f $uname; then
220 set X $myuname
221 shift
222
223 case "$5" in
224 fps*) osname=fps ;;
225 mips*)
226 case "$4" in
227 umips) osname=umips ;;
228 *) osname=mips ;;
229 esac;;
230 [23]100) osname=mips ;;
231 next*) osname=next ;;
232?X: Interactive Unix.
233 i386*)
234 tmp=`/bin/uname -X 2>/dev/null|awk '/3\.2v[45]/{ print $(NF) }'`
235 if $test "$tmp" != "" -a "$3" = "3.2" -a -f '/etc/systemid'; then
236 osname='sco'
237 osvers=$tmp
238 elif $test -f /etc/kconfig; then
239 osname=isc
240 if test "$lns" = "$ln -s"; then
241 osvers=4
242 elif $contains _SYSV3 /usr/include/stdio.h > /dev/null 2>&1 ; then
243 osvers=3
244 elif $contains _POSIX_SOURCE /usr/include/stdio.h > /dev/null 2>&1 ; then
245 osvers=2
246 fi
247 fi
248 tmp=''
249 ;;
250?X: MS-DOS djgpp uname -a output looks like:
251?X: ms-dos xxx 6 22 pc
252?X: $1 is the "dos flavor" (need not be "ms-dos").
253?X: $2 is the node name
254?X: $3 and $4 are version/subversion
255?X: $5 is always "pc", but that might not be unique to DJGPP.
256?X: (e.g. Solaris_x86 has $5 = i86pc, which doesn't actually conflict,
257?X: but it's close enought that I can easily imagine other vendors also
258?X: using variants of pc* in $5.)
259?X: The "DJGPP" environment variable is always set when djgpp is active.
260 pc*)
261 if test -n "$DJGPP"; then
262 osname=dos
263 osvers=djgpp
264 fi
265 ;;
266 esac
267
268 case "$1" in
269 aix) osname=aix
270?X: aix 4.1 uname -a output looks like
271?X: AIX foo 1 4 000123456789
272?X: where $4 is the major release number and $3 is the (minor) version.
273?X: More detail on the version is available with the oslevel command.
274?X: in 3.2.x, it output a string (see case statements below). In 4.1,
275?X: it puts out something like 4.1.1.0
276 tmp=`( (oslevel) 2>/dev/null || echo "not found") 2>&1`
277 case "$tmp" in
278 'not found') osvers="$4"."$3" ;;
279 '<3240'|'<>3240') osvers=3.2.0 ;;
280 '=3240'|'>3240'|'<3250'|'<>3250') osvers=3.2.4 ;;
281 '=3250'|'>3250') osvers=3.2.5 ;;
282 *) osvers=$tmp;;
283 esac
284 ;;
edd6115f
JH
285 bsd386) osname=bsd386
286 osvers=`$uname -r`
287 ;;
288 cygwin*) osname=cygwin
289 osvers="$3"
290 ;;
959f3c4c
JH
291 *dc.osx) osname=dcosx
292 osvers="$3"
293 ;;
294 dnix) osname=dnix
295 osvers="$3"
296 ;;
297 domainos) osname=apollo
298 osvers="$3"
299 ;;
300 dgux) osname=dgux
301 osvers="$3"
302 ;;
303?X: uname -a returns
304?X: DYNIX/ptx xxx 4.0 V4.1.2 i386
305 dynixptx*) osname=dynixptx
306 osvers=`echo "$4"|sed 's/^v//'`
307 ;;
308 freebsd) osname=freebsd
309 osvers="$3" ;;
310 genix) osname=genix ;;
311?X: HP-UX uname -a gives something like
312?X: HP-UX foobar B.10.20 A 9000/735 2016483812 two-user license
313?X: Preserve the full 10.20 string instead of the previous plain '10'.
314?X: Thanks to Graham Barr. --AD 6/30/1998
315 hp*) osname=hpux
316 osvers=`echo "$3" | $sed 's,.*\.\([0-9]*\.[0-9]*\),\1,'`
317 ;;
318 irix*) osname=irix
319 case "$3" in
320 4*) osvers=4 ;;
321 5*) osvers=5 ;;
322 *) osvers="$3" ;;
323 esac
324 ;;
325 linux) osname=linux
326 case "$3" in
327 *) osvers="$3" ;;
328 esac
329 ;;
330 MiNT) osname=mint
331 ;;
332 netbsd*) osname=netbsd
333 osvers="$3"
334 ;;
335 news-os) osvers="$3"
336 case "$3" in
337 4*) osname=newsos4 ;;
338 *) osname=newsos ;;
339 esac
340 ;;
edd6115f
JH
341 next*) osname=next ;;
342 POSIX-BC | posix-bc ) osname=posix-bc
343 osvers="$3"
959f3c4c 344 ;;
959f3c4c
JH
345 powerux | power_ux | powermax_os | powermaxos | \
346 powerunix | power_unix) osname=powerux
347 osvers="$3"
348 ;;
edd6115f
JH
349 qnx) osname=qnx
350 osvers="$4"
351 ;;
959f3c4c
JH
352 solaris) osname=solaris
353 case "$3" in
354 5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;;
355 *) osvers="$3" ;;
356 esac
357 ;;
358 sunos) osname=sunos
359 case "$3" in
360 5*) osname=solaris
361 osvers=`echo $3 | $sed 's/^5/2/g'` ;;
362 *) osvers="$3" ;;
363 esac
364 ;;
365 titanos) osname=titanos
366 case "$3" in
367 1*) osvers=1 ;;
368 2*) osvers=2 ;;
369 3*) osvers=3 ;;
370 4*) osvers=4 ;;
371 *) osvers="$3" ;;
372 esac
373 ;;
374 ultrix) osname=ultrix
375 osvers="$3"
376 ;;
377 osf1|mls+) case "$5" in
378 alpha)
379?X: DEC OSF/1 myuname -a output looks like: osf1 xxxx t3.2 123.4 alpha
380?X: where the version number can be something like [xvt]n.n
381 osname=dec_osf
382 osvers=`echo "$3" | sed 's/^[xvt]//'`
383 ;;
384 hp*) osname=hp_osf1 ;;
385 mips) osname=mips_osf1 ;;
386?X: hp and mips were unsupported Technology Releases -- ADO, 24/10/94
387 esac
388 ;;
4ac3c55c
A
389 unixware) osname=svr5
390 osvers="$4"
391 ;;
392 uts) osname=uts
959f3c4c
JH
393 osvers="$3"
394 ;;
959f3c4c
JH
395 $2) case "$osname" in
396 *isc*) ;;
397 *freebsd*) ;;
398 svr*)
399 : svr4.x or possibly later
400 case "svr$3" in
401 ${osname}*)
402 osname=svr$3
403 osvers=$4
404 ;;
405 esac
406 case "$osname" in
407 svr4.0)
408 : Check for ESIX
409 if test -f /stand/boot ; then
410 eval `grep '^INITPROG=[a-z/0-9]*$' /stand/boot`
411 if test -n "$INITPROG" -a -f "$INITPROG"; then
412 isesix=`strings -a $INITPROG|grep 'ESIX SYSTEM V/386 Release 4.0'`
413 if test -n "$isesix"; then
414 osname=esix4
415 fi
416 fi
417 fi
418 ;;
419 esac
420 ;;
421 *) if test -f /etc/systemid; then
422 osname=sco
423 set `echo $3 | $sed 's/\./ /g'` $4
424 if $test -f $src/hints/sco_$1_$2_$3.sh; then
425 osvers=$1.$2.$3
426 elif $test -f $src/hints/sco_$1_$2.sh; then
427 osvers=$1.$2
428 elif $test -f $src/hints/sco_$1.sh; then
429 osvers=$1
430 fi
431 else
432 case "$osname" in
433 '') : Still unknown. Probably a generic Sys V.
434 osname="sysv"
435 osvers="$3"
436 ;;
437 esac
438 fi
439 ;;
440 esac
441 ;;
442 *) case "$osname" in
443 '') : Still unknown. Probably a generic BSD.
444 osname="$1"
445 osvers="$3"
446 ;;
447 esac
448 ;;
449 esac
450 else
451?X: Try to identify sony's NEWS-OS (BSD unix)
452 if test -f /vmunix -a -f $src/hints/news_os.sh; then
453 (what /vmunix | UU/tr '[A-Z]' '[a-z]') > UU/kernel.what 2>&1
454 if $contains news-os UU/kernel.what >/dev/null 2>&1; then
455 osname=news_os
456 fi
457 $rm -f UU/kernel.what
458?X: Maybe it's OS/2 or DOS or something similar
459 elif test -d c:/.; then
460 set X $myuname
461 osname=os2
462 osvers="$5"
463 fi
464 fi
465
466 : Now look for a hint file osname_osvers, unless one has been
467 : specified already.
468 case "$hintfile" in
469 ''|' ')
470 file=`echo "${osname}_${osvers}" | $sed -e 's@\.@_@g' -e 's@_$@@'`
471 : Also try without trailing minor version numbers.
472 xfile=`echo $file | $sed -e 's@_[^_]*$@@'`
473 xxfile=`echo $xfile | $sed -e 's@_[^_]*$@@'`
474 xxxfile=`echo $xxfile | $sed -e 's@_[^_]*$@@'`
475 xxxxfile=`echo $xxxfile | $sed -e 's@_[^_]*$@@'`
476 case "$file" in
477 '') dflt=none ;;
478 *) case "$osvers" in
479 '') dflt=$file
480 ;;
481 *) if $test -f $src/hints/$file.sh ; then
482 dflt=$file
483 elif $test -f $src/hints/$xfile.sh ; then
484 dflt=$xfile
485 elif $test -f $src/hints/$xxfile.sh ; then
486 dflt=$xxfile
487 elif $test -f $src/hints/$xxxfile.sh ; then
488 dflt=$xxxfile
489 elif $test -f $src/hints/$xxxxfile.sh ; then
490 dflt=$xxxxfile
491 elif $test -f "$src/hints/${osname}.sh" ; then
492 dflt="${osname}"
493 else
494 dflt=none
495 fi
496 ;;
497 esac
498 ;;
499 esac
500 if $test -f Policy.sh ; then
501 case "$dflt" in
502 *Policy*) ;;
503 none) dflt="Policy" ;;
504 *) dflt="Policy $dflt" ;;
505 esac
506 fi
507 ;;
508 *)
509 dflt=`echo $hintfile | $sed 's/\.sh$//'`
510 ;;
511 esac
512
513 if $test -f Policy.sh ; then
514 $cat <<EOM
515
516There's also a Policy hint file available, which should make the
517site-specific (policy) questions easier to answer.
518EOM
519
520 fi
521
522 $cat <<EOM
523
524You may give one or more space-separated answers, or "none" if appropriate.
525A well-behaved OS will have no hints, so answering "none" or just "Policy"
86a2f2c4 526is a good thing. DO NOT give a wrong version or a wrong OS.
959f3c4c
JH
527
528EOM
529
530 rp="Which of these apply, if any?"
531 . UU/myread
532 tans=$ans
533 for file in $tans; do
534 if $test X$file = XPolicy -a -f Policy.sh; then
535 . Policy.sh
536 $cat Policy.sh >> UU/config.sh
537 elif $test -f $src/hints/$file.sh; then
538 . $src/hints/$file.sh
539 $cat $src/hints/$file.sh >> UU/config.sh
540 elif $test X$tans = X -o X$tans = Xnone ; then
541 : nothing
542 else
543 : Give one chance to correct a possible typo.
544 echo "$file.sh does not exist"
545 dflt=$file
546 rp="hint to use instead?"
547 . UU/myread
548 for file in $ans; do
549 if $test -f "$src/hints/$file.sh"; then
550 . $src/hints/$file.sh
551 $cat $src/hints/$file.sh >> UU/config.sh
552 elif $test X$ans = X -o X$ans = Xnone ; then
553 : nothing
554 else
555 echo "$file.sh does not exist -- ignored."
556 fi
557 done
558 fi
559 done
560
561 hint=recommended
562 : Remember our hint file for later.
563 if $test -f "$src/hints/$file.sh" ; then
564 hintfile="$file"
565 else
566 hintfile=''
567 fi
568fi
569cd UU
570?X: From here on, we must use $rsrc instead of $src
571@else
572: Get old answers, if there is a config file out there
573hint=default
574hintfile=''
575if test -f ../config.sh; then
576 echo " "
577 rp="I see a config.sh file. Shall I use it to set the defaults?"
578 . ./myread
579 case "$ans" in
580 n*|N*) echo "OK, I'll ignore it.";;
581 *) echo "Fetching default answers from your old config.sh file..." >&4
582 tmp_n="$n"
583 tmp_c="$c"
584 . ../config.sh
585 cp ../config.sh .
586 n="$tmp_n"
587 c="$tmp_c"
588 hint=previous
589 ;;
590 esac
591fi
592@end
593?X: remember, indentation is wrong--RAM
594;;
595*)
596 echo " "
597 echo "Fetching default answers from $config_sh..." >&4
598 tmp_n="$n"
599 tmp_c="$c"
600 cd ..
601?X: preserve symbolic links, if any
602 cp $config_sh config.sh 2>/dev/null
603 chmod +w config.sh
604 . ./config.sh
605 cd UU
606 cp ../config.sh .
607 n="$tmp_n"
608 c="$tmp_c"
609 hint=previous
610 ;;
611esac
612test "$override" && . ./optdef.sh
613myuname="$newmyuname"
614
615: Restore computed paths
616for file in $loclist $trylist; do
617 eval $file="\$_$file"
618done
619
620@if osname || osvers
621cat << EOM
622
623Configure uses the operating system name and version to set some defaults.
624The default value is probably right if the name rings a bell. Otherwise,
625since spelling matters for me, either accept the default or answer "none"
626to leave it blank.
627
628EOM
629@end
630@if osname
631case "$osname" in
632 ''|' ')
633 case "$hintfile" in
634 ''|' '|none) dflt=none ;;
635 *) dflt=`echo $hintfile | $sed -e 's/\.sh$//' -e 's/_.*$//'` ;;
636 esac
637 ;;
638 *) dflt="$osname" ;;
639esac
640rp="Operating system name?"
641. ./myread
642case "$ans" in
643none) osname='' ;;
644*) osname=`echo "$ans" | $sed -e 's/[ ][ ]*/_/g' | ./tr '[A-Z]' '[a-z]'`;;
645esac
646@end
647@if osvers
648@if osname
649echo " "
650@end
651case "$osvers" in
652 ''|' ')
653 case "$hintfile" in
654 ''|' '|none) dflt=none ;;
655 *) dflt=`echo $hintfile | $sed -e 's/\.sh$//' -e 's/^[^_]*//'`
656 dflt=`echo $dflt | $sed -e 's/^_//' -e 's/_/./g'`
657 case "$dflt" in
658 ''|' ') dflt=none ;;
659 esac
660 ;;
661 esac
662 ;;
663 *) dflt="$osvers" ;;
664esac
665rp="Operating system version?"
666. ./myread
667case "$ans" in
668none) osvers='' ;;
669*) osvers="$ans" ;;
670esac
671
672@end
c71449a6
JH
673
674. ./posthint.sh
675