Code for better build under Darwin (MacOS X).
[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         case "$MACHINE" in
237             Power*)
238                 echo "ppc-apple-darwin${VERSION}"
239                 ;;
240             *)
241                 echo "i386-apple-darwin${VERSION}"
242                 ;;
243         esac
244         exit 0
245         ;;
246
247     SunOS:5.*)
248         echo "${MACHINE}-whatever-solaris2"; exit 0
249         ;;
250
251     SunOS:*)
252         echo "${MACHINE}-sun-sunos4"; exit 0
253         ;;
254
255     UNIX_System_V:4.*:*)
256         echo "${MACHINE}-whatever-sysv4"; exit 0
257         ;;
258
259     *:4*:R4*:m88k)
260         echo "${MACHINE}-whatever-sysv4"; exit 0
261         ;;
262
263     DYNIX/ptx:4*:*)
264         echo "${MACHINE}-whatever-sysv4"; exit 0
265         ;;
266
267     *:4.0:3.0:3[34]?? | *:4.0:3.0:3[34]??,*)
268         echo "i486-ncr-sysv4"; exit 0
269         ;;
270
271     ULTRIX:*)
272         echo "${MACHINE}-unknown-ultrix"; exit 0
273         ;;
274
275     SINIX*|ReliantUNIX*)
276         echo "${MACHINE}-siemens-sysv4"; exit 0
277         ;;
278
279     POSIX-BC*)
280         echo "${MACHINE}-siemens-sysv4"; exit 0   # Here, $MACHINE == "BS2000"
281         ;;
282
283     machten:*)
284        echo "${MACHINE}-tenon-${SYSTEM}"; exit 0;
285        ;;
286
287     library:*)
288         echo "${MACHINE}-ncr-sysv4"; exit 0
289         ;;
290
291     ConvexOS:*:11.0:*)
292         echo "${MACHINE}-v11-${SYSTEM}"; exit 0;
293         ;;
294
295     NEWS-OS:4.*)
296         echo "mips-sony-newsos4"; exit 0;
297         ;;
298
299 esac
300
301 #
302 # Ugg. These are all we can determine by what we know about
303 # the output of uname. Be more creative:
304 #
305
306 # Do the Apollo stuff first. Here, we just simply assume
307 # that the existance of the /usr/apollo directory is proof
308 # enough
309 if [ -d /usr/apollo ]; then
310     echo "whatever-apollo-whatever"
311     exit 0
312 fi
313
314 # Now NeXT
315 ISNEXT=`hostinfo 2>/dev/null`
316 case "$ISNEXT" in
317     *'NeXT Mach 3.3'*)
318         echo "whatever-next-nextstep3.3"; exit 0
319         ;;
320     *NeXT*)
321         echo "whatever-next-nextstep"; exit 0
322         ;;
323 esac
324
325 # At this point we gone through all the one's
326 # we know of: Punt
327
328 echo "${MACHINE}-whatever-${SYSTEM}" 
329 exit 0
330 ) 2>/dev/null | (
331
332 # ---------------------------------------------------------------------------
333 # this is where the translation occurs into SSLeay terms
334 # ---------------------------------------------------------------------------
335
336 # figure out if gcc is available and if so we use it otherwise
337 # we fallback to whatever cc does on the system
338 GCCVER=`(gcc --version) 2>/dev/null`
339 if [ "$GCCVER" != "" ]; then
340   CC=gcc
341   # then strip off whatever prefix Cygnus prepends the number with...
342   GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'`
343   # peak single digit before and after first dot, e.g. 2.95.1 gives 29
344   GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
345 else
346   CC=cc
347 fi
348
349 if [ "$SYSTEM" = "SunOS" ]; then
350   # check for WorkShop C, expected output is "cc: blah-blah C x.x"
351   CCVER=`(cc -V 2>&1) 2>/dev/null | \
352         egrep -e '^cc: .* C [0-9]\.[0-9]' | \
353         sed 's/.* C \([0-9]\)\.\([0-9]\).*/\1\2/'`
354   CCVER=${CCVER:-0}
355   if [ $CCVER -gt 40 ]; then
356     CC=cc       # overrides gcc!!!
357     if [ $CCVER -eq 50 ]; then
358       echo "WARNING! Detected WorkShop C 5.0. Do make sure you have"
359       echo "         patch #107357-01 or later applied."
360       sleep 5
361     fi
362   elif [ "$CC" = "cc" -a $CCVER -gt 0 ]; then
363     CC=sc3
364   fi
365 fi
366
367 if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then
368   # check for Compaq C, expected output is "blah-blah C Vx.x"
369   CCCVER=`(ccc -V 2>&1) 2>/dev/null | \
370         egrep -e '.* C V[0-9]\.[0-9]' | \
371         sed 's/.* C V\([0-9]\)\.\([0-9]\).*/\1\2/'`
372   CCCVER=${CCCVER:-0}
373   if [ $CCCVER -gt 60 ]; then
374     CC=ccc      # overrides gcc!!! well, ccc outperforms inoticeably
375                 # only on hash routines and des, otherwise gcc (2.95)
376                 # keeps along rather tight...
377   fi
378 fi
379
380 GCCVER=${GCCVER:-0}
381 CCVER=${CCVER:-0}
382
383 # read the output of the embedded GuessOS 
384 read GUESSOS
385
386 echo Operating system: $GUESSOS
387
388 # now map the output into SSLeay terms ... really should hack into the
389 # script above so we end up with values in vars but that would take
390 # more time that I want to waste at the moment
391 case "$GUESSOS" in
392   mips2-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 4000 ]; then
396                 options="$options -mips2"
397         fi
398         OUT="irix-$CC"
399         ;;
400   mips3-sgi-irix)
401         CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
402         CPU=${CPU:-0}
403         if [ $CPU -ge 5000 ]; then
404                 options="$options -mips4"
405         else
406                 options="$options -mips3"
407         fi
408         OUT="irix-mips3-$CC"
409         ;;
410   mips4-sgi-irix64)
411         echo "WARNING! If you wish to build 64-bit library, then you have to"
412         echo "         invoke './Configure irix64-mips4-$CC' *manually*."
413         echo "         Type return if you want to continue, Ctrl-C to abort."
414         if [ "$TEST" = "false" ]; then
415           read waste < /dev/tty
416         fi
417         CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
418         CPU=${CPU:-0}
419         if [ $CPU -ge 5000 ]; then
420                 options="$options -mips4"
421         else
422                 options="$options -mips3"
423         fi
424         OUT="irix-mips3-$CC"
425         ;;
426   alpha-*-linux2)
427         ISA=`awk '/cpu model/{print$4}' /proc/cpuinfo`
428         case ${ISA:-generic} in
429         *[67])  OUT="linux-alpha+bwx-$CC" ;;
430         *)      OUT="linux-alpha-$CC" ;;
431         esac
432         if [ "$CC" = "gcc" ]; then
433             case ${ISA:-generic} in
434             EV5|EV45)           options="$options -mcpu=ev5";;
435             EV56|PCA56)         options="$options -mcpu=ev56";;
436             EV6|EV67|PCA57)     options="$options -mcpu=ev6";;
437             esac
438         fi
439         ;;
440   mips-*-linux?)
441           cat >dummy.c <<EOF
442 #include <stdio.h>  /* for printf() prototype */
443         int main (argc, argv) int argc; char *argv[]; {
444 #ifdef __MIPSEB__
445   printf ("linux-%s\n", argv[1]);
446 #endif
447 #ifdef __MIPSEL__
448   printf ("linux-%sel\n", argv[1]);
449 #endif
450   return 0;
451 }
452 EOF
453         ${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}`
454         rm dummy dummy.c
455         ;;
456   ppc-*-linux2) OUT="linux-ppc" ;;
457   m68k-*-linux*) OUT="linux-m68k" ;;
458   ia64-*-linux?) OUT="linux-ia64" ;;
459   ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
460   ppc-apple-darwin*) OUT="darwin-ppc-cc" ;;
461   i386-apple-darwin*) OUT="darwin-i386-cc" ;;
462   sparc64-*-linux2)
463         #Before we can uncomment following lines we have to wait at least
464         #till 64-bit glibc for SPARC is operational:-(
465         #echo "WARNING! If you wish to build 64-bit library, then you have to"
466         #echo "         invoke './Configure linux64-sparcv9' *manually*."
467         #echo "         Type return if you want to continue, Ctrl-C to abort."
468         #read waste < /dev/tty
469         OUT="linux-sparcv9" ;;
470   sparc-*-linux2)
471         KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
472         case ${KARCH:-sun4} in
473         sun4u*) OUT="linux-sparcv9" ;;
474         sun4m)  OUT="linux-sparcv8" ;;
475         sun4d)  OUT="linux-sparcv8" ;;
476         *)      OUT="linux-sparcv7" ;;
477         esac ;;
478   arm*-*-linux2) OUT="linux-elf-arm" ;;
479   s390-*-linux2) OUT="linux-s390" ;;
480   *-*-linux2) OUT="linux-elf" ;;
481   *-*-linux1) OUT="linux-aout" ;;
482   sun4u*-*-solaris2)
483         ISA64=`(isalist) 2>/dev/null | grep sparcv9`
484         if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then
485                 echo "WARNING! If you wish to build 64-bit library, then you have to"
486                 echo "         invoke './Configure solaris64-sparcv9-cc' *manually*."
487                 echo "         Type return if you want to continue, Ctrl-C to abort."
488                 if [ "$TEST" = "false" ]; then
489                   read waste < /dev/tty
490                 fi
491         fi
492         OUT="solaris-sparcv9-$CC" ;;
493   sun4m-*-solaris2)     OUT="solaris-sparcv8-$CC" ;;
494   sun4d-*-solaris2)     OUT="solaris-sparcv8-$CC" ;;
495   sun4*-*-solaris2)     OUT="solaris-sparcv7-$CC" ;;
496   *86*-*-solaris2) OUT="solaris-x86-$CC" ;;
497   *-*-sunos4) OUT="sunos-$CC" ;;
498   alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;;
499   *-freebsd[3-9]*) OUT="FreeBSD-elf" ;;
500   *-freebsd[1-2]*) OUT="FreeBSD" ;;
501   *86*-*-netbsd) OUT="NetBSD-x86" ;;
502   sun3*-*-netbsd) OUT="NetBSD-m68" ;;
503   *-*-netbsd) OUT="NetBSD-sparc" ;;
504   *86*-*-openbsd) OUT="OpenBSD-x86" ;;
505   alpha*-*-openbsd) OUT="OpenBSD-alpha" ;;
506   pmax*-*-openbsd) OUT="OpenBSD-mips" ;;
507   *-*-openbsd) OUT="OpenBSD" ;;
508   *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;;
509   *-*-osf) OUT="alpha-cc" ;;
510   *-*-unixware7) OUT="unixware-7" ;;
511   *-*-UnixWare7) OUT="unixware-7" ;;
512   *-*-Unixware7) OUT="unixware-7" ;;
513   *-*-unixware[1-2]*) OUT="unixware-2.0" ;;
514   *-*-UnixWare[1-2]*) OUT="unixware-2.0" ;;
515   *-*-Unixware[1-2]*) OUT="unixware-2.0" ;;
516   BS2000-siemens-sysv4) OUT="BS2000-OSD" ;;
517   RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
518   *-siemens-sysv4) OUT="SINIX" ;;
519   *-hpux1*)     OUT="hpux-parisc-$CC"
520                 options="$options -D_REENTRANT" ;;
521   *-hpux)       OUT="hpux-parisc-$CC" ;;
522   # these are all covered by the catchall below
523   # *-aix) OUT="aix-$CC" ;;
524   # *-dgux) OUT="dgux" ;;
525   mips-sony-newsos4) OUT="newsos4-gcc" ;;
526   *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
527 esac
528
529 # NB: This atalla support has been superceded by the ENGINE support
530 # That contains its own header and definitions anyway. Support can
531 # be enabled or disabled on any supported platform without external
532 # headers, eg. by adding the "hw-atalla" switch to ./config or
533 # perl Configure
534 #
535 # See whether we can compile Atalla support
536 #if [ -f /usr/include/atasi.h ]
537 #then
538 #  options="$options -DATALLA"
539 #fi
540
541 # gcc < 2.8 does not support -mcpu=ultrasparc
542 if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
543 then
544   echo "WARNING! Do consider upgrading to gcc-2.8 or later."
545   sleep 5
546   OUT=solaris-sparcv9-gcc27
547 fi
548 if [ "$OUT" = "linux-sparcv9" -a $GCCVER -lt 28 ]
549 then
550   echo "WARNING! Falling down to 'linux-sparcv8'."
551   echo "         Upgrade to gcc-2.8 or later."
552   sleep 5
553   OUT=linux-sparcv8
554 fi
555
556 case "$GUESSOS" in
557   i386-*) options="$options 386" ;;
558 esac
559
560 for i in bf cast des dh dsa hmac md2 md5 mdc2 rc2 rc4 rc5 ripemd rsa sha
561 do
562   if [ ! -d crypto/$i ]
563   then
564     options="$options no-$i"
565   fi
566 done
567
568 # Discover Kerberos 5 (since it's still a prototype, we don't
569 # do any guesses yet, that's why this section is commented away.
570 #if [ -d /usr/kerberos ]; then
571 #    krb5_dir=/usr/kerberos
572 #    if [ \( -f $krb5_dir/lib/libgssapi_krb5.a -o -f $krb5_dir/lib/libgssapi_krb5.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/lib/libk5crypto.a -o -f $krb5_dir/lib/libk5crypto.so* \)\
576 #       -a \( -f $krb5_dir/include/krb5.h \) ]; then
577 #       options="$options --with-krb5-flavor=MIT"
578 #    fi
579 #elif [ -d /usr/heimdal ]; then
580 #    krb5_dir=/usr/heimdal
581 #    if [ \( -f $krb5_dir/lib/libgssapi.a -o -f $krb5_dir/lib/libgssapi.so* \)\
582 #       -a \( -f $krb5_dir/lib/libkrb5.a -o -f $krb5_dir/lib/libkrb5.so* \)\
583 #       -a \( -f $krb5_dir/lib/libcom_err.a -o -f $krb5_dir/lib/libcom_err.so* \)\
584 #       -a \( -f $krb5_dir/include/krb5.h \) ]; then
585 #       options="$options --with-krb5-flavor=Heimdal"
586 #    fi
587 #fi
588
589 if [ -z "$OUT" ]; then
590   OUT="$CC"
591 fi
592
593 if [ ".$PERL" = . ] ; then
594         for i in . `echo $PATH | sed 's/:/ /g'`; do
595                 if [ -f "$i/perl5" ] ; then
596                         PERL="$i/perl5"
597                         break;
598                 fi;
599         done
600 fi
601
602 if [ ".$PERL" = . ] ; then
603         for i in . `echo $PATH | sed 's/:/ /g'`; do
604                 if [ -f "$i/perl" ] ; then
605                         if "$i/perl" -e 'exit($]<5.0)'; then
606                                 PERL="$i/perl"
607                                 break;
608                         fi;
609                 fi;
610         done
611 fi
612
613 if [ ".$PERL" = . ] ; then
614         echo "You need Perl 5."
615         exit 1
616 fi
617
618 # run Configure to check to see if we need to specify the 
619 # compiler for the platform ... in which case we add it on
620 # the end ... otherwise we leave it off
621
622 $PERL ./Configure LIST | grep "$OUT-$CC" > /dev/null
623 if [ $? = "0" ]; then
624   OUT="$OUT-$CC"
625 fi
626
627 OUT="$PREFIX$OUT"
628
629 $PERL ./Configure LIST | grep "$OUT" > /dev/null
630 if [ $? = "0" ]; then
631   echo Configuring for $OUT
632
633   if [ "$TEST" = "true" ]; then
634     echo $PERL ./Configure $OUT $options
635   else
636     $PERL ./Configure $OUT $options
637   fi
638 else
639   echo "This system ($OUT) is not supported. See file INSTALL for details."
640 fi
641 )