Sort platforms lexicographically as well. Also, support more than two
[openssl.git] / config
1 #!/bin/sh
2 #
3 # OpenSSL config: determine the operating system and run ./Configure
4 #
5 # "config -h" for usage information.
6 #
7 #          this is a merge of minarch and GuessOS from the Apache Group.
8 #          Originally written by Tim Hudson <tjh@cryptsoft.com>.
9
10 # Original Apache Group comments on GuessOS
11
12 # Simple OS/Platform guesser. Similar to config.guess but
13 # much, much smaller. Since it was developed for use with
14 # Apache, it follows under Apache's regular licensing
15 # with one specific addition: Any changes or additions
16 # to this script should be Emailed to the Apache
17 # group (apache@apache.org) in general and to
18 # Jim Jagielski (jim@jaguNET.com) in specific.
19 #
20 # Be as similar to the output of config.guess/config.sub
21 # as possible.
22
23 PREFIX=""
24 SUFFIX=""
25 TEST="false"
26
27 # pick up any command line args to config
28 for i
29 do
30 case "$i" in 
31 -d*) PREFIX="debug-";;
32 -t*) TEST="true";;
33 -h*) TEST="true"; cat <<EOF
34 Usage: config [options]
35  -d     Add a debug- prefix to machine choice.
36  -t     Test mode, do not run the Configure perl script.
37  -h     This help.
38
39 Any other text will be passed to the Configure perl script.
40 See INSTALL for instructions.
41
42 EOF
43 ;;
44 *) options=$options" $i" ;;
45 esac
46 done
47
48 # First get uname entries that we use below
49
50 MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown"
51 RELEASE=`(uname -r) 2>/dev/null` || RELEASE="unknown"
52 SYSTEM=`(uname -s) 2>/dev/null`  || SYSTEM="unknown"
53 VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown"
54
55
56 # Now test for ISC and SCO, since it is has a braindamaged uname.
57 #
58 # We need to work around FreeBSD 1.1.5.1 
59 (
60 XREL=`uname -X 2>/dev/null | grep "^Release" | awk '{print $3}'`
61 if [ "x$XREL" != "x" ]; then
62     if [ -f /etc/kconfig ]; then
63         case "$XREL" in
64             4.0|4.1)
65                     echo "${MACHINE}-whatever-isc4"; exit 0
66                 ;;
67         esac
68     else
69         case "$XREL" in
70             3.2v4.2)
71                 echo "whatever-whatever-sco3"; exit 0
72                 ;;
73             3.2v5.0*)
74                 echo "whatever-whatever-sco5"; exit 0
75                 ;;
76             4.2MP)
77                 if [ "x$VERSION" = "x2.1.1" ]; then
78                     echo "${MACHINE}-whatever-unixware211"; exit 0
79                 elif [ "x$VERSION" = "x2.1.2" ]; then
80                     echo "${MACHINE}-whatever-unixware212"; exit 0
81                 else
82                     echo "${MACHINE}-whatever-unixware2"; exit 0
83                 fi
84                 ;;
85             4.2)
86                 echo "whatever-whatever-unixware1"; exit 0
87                 ;;
88             5)
89                 if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then
90                     echo "${MACHINE}-sco-unixware7"; exit 0
91                 fi
92                 ;;
93         esac
94     fi
95 fi
96 # Now we simply scan though... In most cases, the SYSTEM info is enough
97 #
98 case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
99     MPE/iX:*)
100         MACHINE=`echo "$MACHINE" | sed -e 's/-/_/g'`
101         echo "parisc-hp-MPE/iX"; exit 0
102         ;;
103     A/UX:*)
104         echo "m68k-apple-aux3"; exit 0
105         ;;
106
107     AIX:*)
108         echo "${MACHINE}-ibm-aix"; exit 0
109         ;;
110
111     dgux:*)
112         echo "${MACHINE}-dg-dgux"; exit 0
113         ;;
114
115     HI-UX:*)
116         echo "${MACHINE}-hi-hiux"; exit 0
117         ;;
118
119     HP-UX:*)
120         HPUXVER=`echo ${RELEASE}|sed -e 's/[^.]*.[0B]*//'`
121         case "$HPUXVER" in
122             11.*)
123                 echo "${MACHINE}-hp-hpux11"; exit 0
124                 ;;
125             10.*)
126                 echo "${MACHINE}-hp-hpux10"; exit 0
127                 ;;
128             *)
129                 echo "${MACHINE}-hp-hpux"; exit 0
130                 ;;
131         esac
132         ;;
133
134     IRIX:5.*)
135         echo "mips2-sgi-irix"; exit 0
136         ;;
137
138     IRIX:6.*)
139         echo "mips3-sgi-irix"; exit 0
140         ;;
141
142     IRIX64:*)
143         echo "mips4-sgi-irix64"; exit 0
144         ;;
145
146     Linux:[2-9].*)
147         echo "${MACHINE}-whatever-linux2"; exit 0
148         ;;
149
150     Linux:1.*)
151         echo "${MACHINE}-whatever-linux1"; exit 0
152         ;;
153
154     GNU*)
155         echo "hurd-x86"; exit 0;
156         ;;
157
158     LynxOS:*)
159         echo "${MACHINE}-lynx-lynxos"; exit 0
160         ;;
161
162     BSD/OS:4.*)  # BSD/OS always says 386
163         echo "i486-whatever-bsdi4"; exit 0
164         ;;
165
166     BSD/386:*:*:*486*|BSD/OS:*:*:*:*486*)
167         case `/sbin/sysctl -n hw.model` in
168             Pentium*)
169                 echo "i586-whatever-bsdi"; exit 0
170                 ;;
171             *)
172                 echo "i386-whatever-bsdi"; exit 0
173                 ;;
174             esac;
175         ;;
176
177     BSD/386:*|BSD/OS:*)
178         echo "${MACHINE}-whatever-bsdi"; exit 0
179         ;;
180
181     FreeBSD:*)
182         VERS=`echo ${RELEASE} | sed -e 's/[-(].*//'`
183         MACH=`sysctl -n hw.model`
184         ARCH='whatever'
185         case ${MACH} in
186            *386*       ) MACH="i386"     ;;
187            *486*       ) MACH="i486"     ;;
188            Pentium\ II*) MACH="i686"     ;;
189            Pentium*    ) MACH="i586"     ;;
190            Alpha*      ) MACH="alpha"    ;;
191            *           ) MACH="$MACHINE" ;;
192         esac
193         case ${MACH} in
194            i[0-9]86 ) ARCH="pc" ;;
195         esac
196         echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0
197         ;;
198
199     NetBSD:*:*:*386*)
200         echo "`(/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model) | sed 's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
201         ;;
202
203     NetBSD:*)
204         echo "${MACHINE}-whatever-netbsd"; exit 0
205         ;;
206
207     OpenBSD:*)
208         echo "${MACHINE}-whatever-openbsd"; exit 0
209         ;;
210
211     OSF1:*:*:*alpha*)
212         echo "${MACHINE}-dec-osf"; exit 0
213         ;;
214
215     QNX:*)
216         case "$VERSION" in
217             4*)
218                 echo "${MACHINE}-whatever-qnx4"
219                 ;;
220             *)
221                 echo "${MACHINE}-whatever-qnx"
222                 ;;
223         esac
224         exit 0
225         ;;
226
227     Paragon*:*:*:*)
228         echo "i860-intel-osf1"; exit 0
229         ;;
230
231     Rhapsody:*)
232         echo "ppc-apple-rhapsody"; exit 0
233         ;;
234
235     Darwin:*)
236         echo "ppc-apple-darwin"; exit 0
237         ;;
238
239     SunOS:5.*)
240         echo "${MACHINE}-whatever-solaris2"; exit 0
241         ;;
242
243     SunOS:*)
244         echo "${MACHINE}-sun-sunos4"; exit 0
245         ;;
246
247     UNIX_System_V:4.*:*)
248         echo "${MACHINE}-whatever-sysv4"; exit 0
249         ;;
250
251     *:4*:R4*:m88k)
252         echo "${MACHINE}-whatever-sysv4"; exit 0
253         ;;
254
255     DYNIX/ptx:4*:*)
256         echo "${MACHINE}-whatever-sysv4"; exit 0
257         ;;
258
259     *:4.0:3.0:3[34]?? | *:4.0:3.0:3[34]??,*)
260         echo "i486-ncr-sysv4"; exit 0
261         ;;
262
263     ULTRIX:*)
264         echo "${MACHINE}-unknown-ultrix"; exit 0
265         ;;
266
267     SINIX*|ReliantUNIX*)
268         echo "${MACHINE}-siemens-sysv4"; exit 0
269         ;;
270
271     POSIX-BC*)
272         echo "${MACHINE}-siemens-sysv4"; exit 0   # Here, $MACHINE == "BS2000"
273         ;;
274
275     machten:*)
276        echo "${MACHINE}-tenon-${SYSTEM}"; exit 0;
277        ;;
278
279     library:*)
280         echo "${MACHINE}-ncr-sysv4"; exit 0
281         ;;
282
283     ConvexOS:*:11.0:*)
284         echo "${MACHINE}-v11-${SYSTEM}"; exit 0;
285         ;;
286
287     NEWS-OS:4.*)
288         echo "mips-sony-newsos4"; exit 0;
289         ;;
290
291 esac
292
293 #
294 # Ugg. These are all we can determine by what we know about
295 # the output of uname. Be more creative:
296 #
297
298 # Do the Apollo stuff first. Here, we just simply assume
299 # that the existance of the /usr/apollo directory is proof
300 # enough
301 if [ -d /usr/apollo ]; then
302     echo "whatever-apollo-whatever"
303     exit 0
304 fi
305
306 # Now NeXT
307 ISNEXT=`hostinfo 2>/dev/null`
308 case "$ISNEXT" in
309     *'NeXT Mach 3.3'*)
310         echo "whatever-next-nextstep3.3"; exit 0
311         ;;
312     *NeXT*)
313         echo "whatever-next-nextstep"; exit 0
314         ;;
315 esac
316
317 # At this point we gone through all the one's
318 # we know of: Punt
319
320 echo "${MACHINE}-whatever-${SYSTEM}" 
321 exit 0
322 ) 2>/dev/null | (
323
324 # ---------------------------------------------------------------------------
325 # this is where the translation occurs into SSLeay terms
326 # ---------------------------------------------------------------------------
327
328 # figure out if gcc is available and if so we use it otherwise
329 # we fallback to whatever cc does on the system
330 GCCVER=`(gcc --version) 2>/dev/null`
331 if [ "$GCCVER" != "" ]; then
332   CC=gcc
333   # then strip off whatever prefix Cygnus prepends the number with...
334   GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'`
335   # peak single digit before and after first dot, e.g. 2.95.1 gives 29
336   GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
337 else
338   CC=cc
339 fi
340
341 if [ "$SYSTEM" = "SunOS" ]; then
342   # check for WorkShop C, expected output is "cc: blah-blah C x.x"
343   CCVER=`(cc -V 2>&1) 2>/dev/null | \
344         egrep -e '^cc: .* C [0-9]\.[0-9]' | \
345         sed 's/.* C \([0-9]\)\.\([0-9]\).*/\1\2/'`
346   CCVER=${CCVER:-0}
347   if [ $CCVER -gt 40 ]; then
348     CC=cc       # overrides gcc!!!
349     if [ $CCVER -eq 50 ]; then
350       echo "WARNING! Detected WorkShop C 5.0. Do make sure you have"
351       echo "         patch #107357-01 or later applied."
352       sleep 5
353     fi
354   elif [ "$CC" = "cc" -a $CCVER -gt 0 ]; then
355     CC=sc3
356   fi
357 fi
358
359 if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then
360   # check for Compaq C, expected output is "blah-blah C Vx.x"
361   CCCVER=`(ccc -V 2>&1) 2>/dev/null | \
362         egrep -e '.* C V[0-9]\.[0-9]' | \
363         sed 's/.* C V\([0-9]\)\.\([0-9]\).*/\1\2/'`
364   CCCVER=${CCCVER:-0}
365   if [ $CCCVER -gt 60 ]; then
366     CC=ccc      # overrides gcc!!! well, ccc outperforms inoticeably
367                 # only on hash routines and des, otherwise gcc (2.95)
368                 # keeps along rather tight...
369   fi
370 fi
371
372 GCCVER=${GCCVER:-0}
373 CCVER=${CCVER:-0}
374
375 # read the output of the embedded GuessOS 
376 read GUESSOS
377
378 echo Operating system: $GUESSOS
379
380 # now map the output into SSLeay terms ... really should hack into the
381 # script above so we end up with values in vars but that would take
382 # more time that I want to waste at the moment
383 case "$GUESSOS" in
384   mips2-sgi-irix)
385         CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
386         CPU=${CPU:-0}
387         if [ $CPU -ge 4000 ]; then
388                 options="$options -mips2"
389         fi
390         OUT="irix-$CC"
391         ;;
392   mips3-sgi-irix)
393         CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
394         CPU=${CPU:-0}
395         if [ $CPU -ge 5000 ]; then
396                 options="$options -mips4"
397         else
398                 options="$options -mips3"
399         fi
400         OUT="irix-mips3-$CC"
401         ;;
402   mips4-sgi-irix64)
403         echo "WARNING! If you wish to build 64-bit library, then you have to"
404         echo "         invoke './Configure irix64-mips4-$CC' *manually*."
405         echo "         Type return if you want to continue, Ctrl-C to abort."
406         if [ "$TEST" = "false" ]; then
407           read waste < /dev/tty
408         fi
409         CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
410         CPU=${CPU:-0}
411         if [ $CPU -ge 5000 ]; then
412                 options="$options -mips4"
413         else
414                 options="$options -mips3"
415         fi
416         OUT="irix-mips3-$CC"
417         ;;
418   alpha-*-linux2)
419         ISA=`awk '/cpu model/{print$4}' /proc/cpuinfo`
420         case ${ISA:-generic} in
421         *[67])  OUT="linux-alpha+bwx-$CC" ;;
422         *)      OUT="linux-alpha-$CC" ;;
423         esac
424         if [ "$CC" = "gcc" ]; then
425             case ${ISA:-generic} in
426             EV5|EV45)           options="$options -mcpu=ev5";;
427             EV56|PCA56)         options="$options -mcpu=ev56";;
428             EV6|EV67|PCA57)     options="$options -mcpu=ev6";;
429             esac
430         fi
431         ;;
432   mips-*-linux?)
433           cat >dummy.c <<EOF
434 #include <stdio.h>  /* for printf() prototype */
435         int main (argc, argv) int argc; char *argv[]; {
436 #ifdef __MIPSEB__
437   printf ("linux-%s\n", argv[1]);
438 #endif
439 #ifdef __MIPSEL__
440   printf ("linux-%sel\n", argv[1]);
441 #endif
442   return 0;
443 }
444 EOF
445         ${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}`
446         rm dummy dummy.c
447         ;;
448   ppc-*-linux2) OUT="linux-ppc" ;;
449   m68k-*-linux*) OUT="linux-m68k" ;;
450   ia64-*-linux?) OUT="linux-ia64" ;;
451   ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
452   ppc-apple-darwin) OUT="darwin-ppc-cc" ;;
453   sparc64-*-linux2)
454         #Before we can uncomment following lines we have to wait at least
455         #till 64-bit glibc for SPARC is operational:-(
456         #echo "WARNING! If you wish to build 64-bit library, then you have to"
457         #echo "         invoke './Configure linux64-sparcv9' *manually*."
458         #echo "         Type return if you want to continue, Ctrl-C to abort."
459         #read waste < /dev/tty
460         OUT="linux-sparcv9" ;;
461   sparc-*-linux2)
462         KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
463         case ${KARCH:-sun4} in
464         sun4u*) OUT="linux-sparcv9" ;;
465         sun4m)  OUT="linux-sparcv8" ;;
466         sun4d)  OUT="linux-sparcv8" ;;
467         *)      OUT="linux-sparcv7" ;;
468         esac ;;
469   arm*-*-linux2) OUT="linux-elf-arm" ;;
470   s390-*-linux2) OUT="linux-s390" ;;
471   *-*-linux2) OUT="linux-elf" ;;
472   *-*-linux1) OUT="linux-aout" ;;
473   sun4u*-*-solaris2)
474         ISA64=`(isalist) 2>/dev/null | grep sparcv9`
475         if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then
476                 echo "WARNING! If you wish to build 64-bit library, then you have to"
477                 echo "         invoke './Configure solaris64-sparcv9-cc' *manually*."
478                 echo "         Type return if you want to continue, Ctrl-C to abort."
479                 if [ "$TEST" = "false" ]; then
480                   read waste < /dev/tty
481                 fi
482         fi
483         OUT="solaris-sparcv9-$CC" ;;
484   sun4m-*-solaris2)     OUT="solaris-sparcv8-$CC" ;;
485   sun4d-*-solaris2)     OUT="solaris-sparcv8-$CC" ;;
486   sun4*-*-solaris2)     OUT="solaris-sparcv7-$CC" ;;
487   *86*-*-solaris2) OUT="solaris-x86-$CC" ;;
488   *-*-sunos4) OUT="sunos-$CC" ;;
489   alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;;
490   *-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
491   *-freebsd[1-2]*) OUT="FreeBSD" ;;
492   *86*-*-netbsd) OUT="NetBSD-x86" ;;
493   sun3*-*-netbsd) OUT="NetBSD-m68" ;;
494   *-*-netbsd) OUT="NetBSD-sparc" ;;
495   *86*-*-openbsd) OUT="OpenBSD-x86" ;;
496   alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
497   pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
498   *-*-openbsd) OUT="OpenBSD" ;;
499   *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;;
500   *-*-osf) OUT="alpha-cc" ;;
501   *-*-unixware7) OUT="unixware-7" ;;
502   *-*-UnixWare7) OUT="unixware-7" ;;
503   *-*-Unixware7) OUT="unixware-7" ;;
504   *-*-unixware[1-2]*) OUT="unixware-2.0" ;;
505   *-*-UnixWare[1-2]*) OUT="unixware-2.0" ;;
506   *-*-Unixware[1-2]*) OUT="unixware-2.0" ;;
507   BS2000-siemens-sysv4) OUT="BS2000-OSD" ;;
508   RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
509   *-siemens-sysv4) OUT="SINIX" ;;
510   *-hpux1*)     OUT="hpux-parisc-$CC"
511                 options="$options -D_REENTRANT" ;;
512   *-hpux)       OUT="hpux-parisc-$CC" ;;
513   # these are all covered by the catchall below
514   # *-aix) OUT="aix-$CC" ;;
515   # *-dgux) OUT="dgux" ;;
516   mips-sony-newsos4) OUT="newsos4-gcc" ;;
517   *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
518 esac
519
520 # NB: This atalla support has been superceded by the ENGINE support
521 # That contains its own header and definitions anyway. Support can
522 # be enabled or disabled on any supported platform without external
523 # headers, eg. by adding the "hw-atalla" switch to ./config or
524 # perl Configure
525 #
526 # See whether we can compile Atalla support
527 #if [ -f /usr/include/atasi.h ]
528 #then
529 #  options="$options -DATALLA"
530 #fi
531
532 # gcc < 2.8 does not support -mcpu=ultrasparc
533 if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
534 then
535   echo "WARNING! Do consider upgrading to gcc-2.8 or later."
536   sleep 5
537   OUT=solaris-sparcv9-gcc27
538 fi
539 if [ "$OUT" = "linux-sparcv9" -a $GCCVER -lt 28 ]
540 then
541   echo "WARNING! Falling down to 'linux-sparcv8'."
542   echo "         Upgrade to gcc-2.8 or later."
543   sleep 5
544   OUT=linux-sparcv8
545 fi
546
547 case "$GUESSOS" in
548   i386-*) options="$options 386" ;;
549 esac
550
551 for i in bf cast des dh dsa hmac md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa sha
552 do
553   if [ ! -d crypto/$i ]
554   then
555     options="$options no-$i"
556   fi
557 done
558
559 # Discover Kerberos 5 (since it's still a prototype, we don't
560 # do any guesses yet, that's why this section is commented away.
561 #if [ -d /usr/kerberos ]; then
562 #    krb5_dir=/usr/kerberos
563 #    if [ \( -f $krb5_dir/lib/libgssapi_krb5.a -o -f $krb5_dir/lib/libgssapi_krb5.so* \)\
564 #       -a \( -f $krb5_dir/lib/libkrb5.a -o -f $krb5_dir/lib/libkrb5.so* \)\
565 #       -a \( -f $krb5_dir/lib/libcom_err.a -o -f $krb5_dir/lib/libcom_err.so* \)\
566 #       -a \( -f $krb5_dir/lib/libk5crypto.a -o -f $krb5_dir/lib/libk5crypto.so* \)\
567 #       -a \( -f $krb5_dir/include/krb5.h \) ]; then
568 #       options="$options --with-krb5-flavor=MIT"
569 #    fi
570 #elif [ -d /usr/heimdal ]; then
571 #    krb5_dir=/usr/heimdal
572 #    if [ \( -f $krb5_dir/lib/libgssapi.a -o -f $krb5_dir/lib/libgssapi.so* \)\
573 #       -a \( -f $krb5_dir/lib/libkrb5.a -o -f $krb5_dir/lib/libkrb5.so* \)\
574 #       -a \( -f $krb5_dir/lib/libcom_err.a -o -f $krb5_dir/lib/libcom_err.so* \)\
575 #       -a \( -f $krb5_dir/include/krb5.h \) ]; then
576 #       options="$options --with-krb5-flavor=Heimdal"
577 #    fi
578 #fi
579
580 if [ -z "$OUT" ]; then
581   OUT="$CC"
582 fi
583
584 if [ ".$PERL" = . ] ; then
585         for i in . `echo $PATH | sed 's/:/ /g'`; do
586                 if [ -f "$i/perl5" ] ; then
587                         PERL="$i/perl5"
588                         break;
589                 fi;
590         done
591 fi
592
593 if [ ".$PERL" = . ] ; then
594         for i in . `echo $PATH | sed 's/:/ /g'`; do
595                 if [ -f "$i/perl" ] ; then
596                         if "$i/perl" -e 'exit($]<5.0)'; then
597                                 PERL="$i/perl"
598                                 break;
599                         fi;
600                 fi;
601         done
602 fi
603
604 if [ ".$PERL" = . ] ; then
605         echo "You need Perl 5."
606         exit 1
607 fi
608
609 # run Configure to check to see if we need to specify the 
610 # compiler for the platform ... in which case we add it on
611 # the end ... otherwise we leave it off
612
613 $PERL ./Configure LIST | grep "$OUT-$CC" > /dev/null
614 if [ $? = "0" ]; then
615   OUT="$OUT-$CC"
616 fi
617
618 OUT="$PREFIX$OUT"
619
620 $PERL ./Configure LIST | grep "$OUT" > /dev/null
621 if [ $? = "0" ]; then
622   echo Configuring for $OUT
623
624   if [ "$TEST" = "true" ]; then
625     echo $PERL ./Configure $OUT $options
626   else
627     $PERL ./Configure $OUT $options
628   fi
629 else
630   echo "This system ($OUT) is not supported. See file INSTALL for details."
631 fi
632 )