[BACK]Return to config.sub CVS log [TXT][DIR] Up to [local] / src / usr.bin / pcc

Annotation of src/usr.bin/pcc/config.sub, Revision 1.1

1.1     ! otto        1: #! /bin/sh
        !             2: #
        !             3: # $NetBSD: config.sub,v 1.7 2004/08/14 19:14:42 schmonz Exp $
        !             4: #
        !             5: # Configuration validation subroutine script.
        !             6: #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
        !             7: #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
        !             8:
        !             9: timestamp='2004-03-12'
        !            10:
        !            11: # This file is (in principle) common to ALL GNU software.
        !            12: # The presence of a machine in this file suggests that SOME GNU software
        !            13: # can handle that machine.  It does not imply ALL GNU software can.
        !            14: #
        !            15: # This file is free software; you can redistribute it and/or modify
        !            16: # it under the terms of the GNU General Public License as published by
        !            17: # the Free Software Foundation; either version 2 of the License, or
        !            18: # (at your option) any later version.
        !            19: #
        !            20: # This program is distributed in the hope that it will be useful,
        !            21: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            22: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            23: # GNU General Public License for more details.
        !            24: #
        !            25: # You should have received a copy of the GNU General Public License
        !            26: # along with this program; if not, write to the Free Software
        !            27: # Foundation, Inc., 59 Temple Place - Suite 330,
        !            28: # Boston, MA 02111-1307, USA.
        !            29:
        !            30: # As a special exception to the GNU General Public License, if you
        !            31: # distribute this file as part of a program that contains a
        !            32: # configuration script generated by Autoconf, you may include it under
        !            33: # the same distribution terms that you use for the rest of that program.
        !            34:
        !            35: # Please send patches to <config-patches@gnu.org>.  Submit a context
        !            36: # diff and a properly formatted ChangeLog entry.
        !            37: #
        !            38: # Configuration subroutine to validate and canonicalize a configuration type.
        !            39: # Supply the specified configuration type as an argument.
        !            40: # If it is invalid, we print an error message on stderr and exit with code 1.
        !            41: # Otherwise, we print the canonical config type on stdout and succeed.
        !            42:
        !            43: # This file is supposed to be the same for all GNU packages
        !            44: # and recognize all the CPU types, system types and aliases
        !            45: # that are meaningful with *any* GNU software.
        !            46: # Each package is responsible for reporting which valid configurations
        !            47: # it does not support.  The user should be able to distinguish
        !            48: # a failure to support a valid configuration from a meaningless
        !            49: # configuration.
        !            50:
        !            51: # The goal of this file is to map all the various variations of a given
        !            52: # machine specification into a single specification in the form:
        !            53: #      CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
        !            54: # or in some cases, the newer four-part form:
        !            55: #      CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
        !            56: # It is wrong to echo any other type of specification.
        !            57:
        !            58: me=`echo "$0" | sed -e 's,.*/,,'`
        !            59:
        !            60: usage="\
        !            61: Usage: $0 [OPTION] CPU-MFR-OPSYS
        !            62:        $0 [OPTION] ALIAS
        !            63:
        !            64: Canonicalize a configuration name.
        !            65:
        !            66: Operation modes:
        !            67:   -h, --help         print this help, then exit
        !            68:   -t, --time-stamp   print date of last modification, then exit
        !            69:   -v, --version      print version number, then exit
        !            70:
        !            71: Report bugs and patches to <config-patches@gnu.org>."
        !            72:
        !            73: version="\
        !            74: GNU config.sub ($timestamp)
        !            75:
        !            76: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
        !            77: Free Software Foundation, Inc.
        !            78:
        !            79: This is free software; see the source for copying conditions.  There is NO
        !            80: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
        !            81:
        !            82: help="
        !            83: Try \`$me --help' for more information."
        !            84:
        !            85: # Parse command line
        !            86: while test $# -gt 0 ; do
        !            87:   case $1 in
        !            88:     --time-stamp | --time* | -t )
        !            89:        echo "$timestamp" ; exit 0 ;;
        !            90:     --version | -v )
        !            91:        echo "$version" ; exit 0 ;;
        !            92:     --help | --h* | -h )
        !            93:        echo "$usage"; exit 0 ;;
        !            94:     -- )     # Stop option processing
        !            95:        shift; break ;;
        !            96:     - )        # Use stdin as input.
        !            97:        break ;;
        !            98:     -* )
        !            99:        echo "$me: invalid option $1$help"
        !           100:        exit 1 ;;
        !           101:
        !           102:     *local*)
        !           103:        # First pass through any local machine types.
        !           104:        echo $1
        !           105:        exit 0;;
        !           106:
        !           107:     * )
        !           108:        break ;;
        !           109:   esac
        !           110: done
        !           111:
        !           112: case $# in
        !           113:  0) echo "$me: missing argument$help" >&2
        !           114:     exit 1;;
        !           115:  1) ;;
        !           116:  *) echo "$me: too many arguments$help" >&2
        !           117:     exit 1;;
        !           118: esac
        !           119:
        !           120: # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
        !           121: # Here we must recognize all the valid KERNEL-OS combinations.
        !           122: maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
        !           123: case $maybe_os in
        !           124:   nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
        !           125:   kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
        !           126:     os=-$maybe_os
        !           127:     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
        !           128:     ;;
        !           129:   *)
        !           130:     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
        !           131:     if [ $basic_machine != $1 ]
        !           132:     then os=`echo $1 | sed 's/.*-/-/'`
        !           133:     else os=; fi
        !           134:     ;;
        !           135: esac
        !           136:
        !           137: ### Let's recognize common machines as not being operating systems so
        !           138: ### that things like config.sub decstation-3100 work.  We also
        !           139: ### recognize some manufacturers as not being operating systems, so we
        !           140: ### can provide default operating systems below.
        !           141: case $os in
        !           142:        -sun*os*)
        !           143:                # Prevent following clause from handling this invalid input.
        !           144:                ;;
        !           145:        -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
        !           146:        -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
        !           147:        -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
        !           148:        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
        !           149:        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
        !           150:        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
        !           151:        -apple | -axis)
        !           152:                os=
        !           153:                basic_machine=$1
        !           154:                ;;
        !           155:        -sim | -cisco | -oki | -wec | -winbond)
        !           156:                os=
        !           157:                basic_machine=$1
        !           158:                ;;
        !           159:        -scout)
        !           160:                ;;
        !           161:        -wrs)
        !           162:                os=-vxworks
        !           163:                basic_machine=$1
        !           164:                ;;
        !           165:        -chorusos*)
        !           166:                os=-chorusos
        !           167:                basic_machine=$1
        !           168:                ;;
        !           169:        -chorusrdb)
        !           170:                os=-chorusrdb
        !           171:                basic_machine=$1
        !           172:                ;;
        !           173:        -hiux*)
        !           174:                os=-hiuxwe2
        !           175:                ;;
        !           176:        -sco5)
        !           177:                os=-sco3.2v5
        !           178:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           179:                ;;
        !           180:        -sco4)
        !           181:                os=-sco3.2v4
        !           182:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           183:                ;;
        !           184:        -sco3.2.[4-9]*)
        !           185:                os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
        !           186:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           187:                ;;
        !           188:        -sco3.2v[4-9]*)
        !           189:                # Don't forget version if it is 3.2v4 or newer.
        !           190:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           191:                ;;
        !           192:        -sco*)
        !           193:                os=-sco3.2v2
        !           194:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           195:                ;;
        !           196:        -udk*)
        !           197:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           198:                ;;
        !           199:        -isc)
        !           200:                os=-isc2.2
        !           201:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           202:                ;;
        !           203:        -clix*)
        !           204:                basic_machine=clipper-intergraph
        !           205:                ;;
        !           206:        -isc*)
        !           207:                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        !           208:                ;;
        !           209:        -lynx*)
        !           210:                os=-lynxos
        !           211:                ;;
        !           212:        -ptx*)
        !           213:                basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
        !           214:                ;;
        !           215:        -windowsnt*)
        !           216:                os=`echo $os | sed -e 's/windowsnt/winnt/'`
        !           217:                ;;
        !           218:        -psos*)
        !           219:                os=-psos
        !           220:                ;;
        !           221:        -mint | -mint[0-9]*)
        !           222:                basic_machine=m68k-atari
        !           223:                os=-mint
        !           224:                ;;
        !           225: esac
        !           226:
        !           227: # Decode aliases for certain CPU-COMPANY combinations.
        !           228: case $basic_machine in
        !           229:        # Recognize the basic CPU types without company name.
        !           230:        # Some are omitted here because they have special meanings below.
        !           231:        1750a | 580 \
        !           232:        | a29k \
        !           233:        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
        !           234:        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
        !           235:        | am33_2.0 \
        !           236:        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
        !           237:        | c4x | clipper \
        !           238:        | d10v | d30v | dlx | dsp16xx \
        !           239:        | fr30 | frv \
        !           240:        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
        !           241:        | i370 | i860 | i960 | ia64 \
        !           242:        | ip2k | iq2000 \
        !           243:        | m32r | m32rle | m68000 | m68k | m88k | mcore \
        !           244:        | mips | mipsbe | mipseb | mipsel | mipsle \
        !           245:        | mips16 \
        !           246:        | mips64 | mips64el \
        !           247:        | mips64vr | mips64vrel \
        !           248:        | mips64orion | mips64orionel \
        !           249:        | mips64vr4100 | mips64vr4100el \
        !           250:        | mips64vr4300 | mips64vr4300el \
        !           251:        | mips64vr5000 | mips64vr5000el \
        !           252:        | mipsisa32 | mipsisa32el \
        !           253:        | mipsisa32r2 | mipsisa32r2el \
        !           254:        | mipsisa64 | mipsisa64el \
        !           255:        | mipsisa64r2 | mipsisa64r2el \
        !           256:        | mipsisa64sb1 | mipsisa64sb1el \
        !           257:        | mipsisa64sr71k | mipsisa64sr71kel \
        !           258:        | mipstx39 | mipstx39el \
        !           259:        | mn10200 | mn10300 \
        !           260:        | msp430 \
        !           261:        | ns16k | ns32k \
        !           262:        | openrisc | or32 \
        !           263:        | pdp10 | pdp11 | pj | pjl \
        !           264:        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
        !           265:        | pyramid \
        !           266:        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
        !           267:        | sh64 | sh64le \
        !           268:        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
        !           269:        | strongarm \
        !           270:        | tahoe | thumb | tic4x | tic80 | tron \
        !           271:        | v850 | v850e \
        !           272:        | we32k \
        !           273:        | x86 | xscale | xstormy16 | xtensa \
        !           274:        | z8k)
        !           275:                basic_machine=$basic_machine-unknown
        !           276:                ;;
        !           277:        m6811 | m68hc11 | m6812 | m68hc12)
        !           278:                # Motorola 68HC11/12.
        !           279:                basic_machine=$basic_machine-unknown
        !           280:                os=-none
        !           281:                ;;
        !           282:        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
        !           283:                ;;
        !           284:
        !           285:        # We use `pc' rather than `unknown'
        !           286:        # because (1) that's what they normally are, and
        !           287:        # (2) the word "unknown" tends to confuse beginning users.
        !           288:        i*86 | x86_64)
        !           289:          basic_machine=$basic_machine-pc
        !           290:          ;;
        !           291:        # Object if more than one company name word.
        !           292:        *-*-*)
        !           293:                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
        !           294:                exit 1
        !           295:                ;;
        !           296:        # Recognize the basic CPU types with company name.
        !           297:        580-* \
        !           298:        | a29k-* \
        !           299:        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
        !           300:        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
        !           301:        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
        !           302:        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
        !           303:        | avr-* \
        !           304:        | bs2000-* \
        !           305:        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
        !           306:        | clipper-* | cydra-* \
        !           307:        | d10v-* | d30v-* | dlx-* \
        !           308:        | elxsi-* \
        !           309:        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
        !           310:        | h8300-* | h8500-* \
        !           311:        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
        !           312:        | i*86-* | i860-* | i960-* | ia64-* \
        !           313:        | ip2k-* | iq2000-* \
        !           314:        | m32r-* | m32rle-* \
        !           315:        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
        !           316:        | m88110-* | m88k-* | mcore-* \
        !           317:        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
        !           318:        | mips16-* \
        !           319:        | mips64-* | mips64el-* \
        !           320:        | mips64vr-* | mips64vrel-* \
        !           321:        | mips64orion-* | mips64orionel-* \
        !           322:        | mips64vr4100-* | mips64vr4100el-* \
        !           323:        | mips64vr4300-* | mips64vr4300el-* \
        !           324:        | mips64vr5000-* | mips64vr5000el-* \
        !           325:        | mipsisa32-* | mipsisa32el-* \
        !           326:        | mipsisa32r2-* | mipsisa32r2el-* \
        !           327:        | mipsisa64-* | mipsisa64el-* \
        !           328:        | mipsisa64r2-* | mipsisa64r2el-* \
        !           329:        | mipsisa64sb1-* | mipsisa64sb1el-* \
        !           330:        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
        !           331:        | mipstx39-* | mipstx39el-* \
        !           332:        | msp430-* \
        !           333:        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
        !           334:        | orion-* \
        !           335:        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
        !           336:        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
        !           337:        | pyramid-* \
        !           338:        | romp-* | rs6000-* \
        !           339:        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
        !           340:        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
        !           341:        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
        !           342:        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
        !           343:        | tahoe-* | thumb-* \
        !           344:        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
        !           345:        | tron-* \
        !           346:        | v850-* | v850e-* | vax-* \
        !           347:        | we32k-* \
        !           348:        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
        !           349:        | xtensa-* \
        !           350:        | ymp-* \
        !           351:        | z8k-*)
        !           352:                ;;
        !           353:        # Recognize the various machine names and aliases which stand
        !           354:        # for a CPU type and a company and sometimes even an OS.
        !           355:        386bsd)
        !           356:                basic_machine=i386-unknown
        !           357:                os=-bsd
        !           358:                ;;
        !           359:        3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
        !           360:                basic_machine=m68000-att
        !           361:                ;;
        !           362:        3b*)
        !           363:                basic_machine=we32k-att
        !           364:                ;;
        !           365:        a29khif)
        !           366:                basic_machine=a29k-amd
        !           367:                os=-udi
        !           368:                ;;
        !           369:        abacus)
        !           370:                basic_machine=abacus-unknown
        !           371:                ;;
        !           372:        adobe68k)
        !           373:                basic_machine=m68010-adobe
        !           374:                os=-scout
        !           375:                ;;
        !           376:        alliant | fx80)
        !           377:                basic_machine=fx80-alliant
        !           378:                ;;
        !           379:        altos | altos3068)
        !           380:                basic_machine=m68k-altos
        !           381:                ;;
        !           382:        am29k)
        !           383:                basic_machine=a29k-none
        !           384:                os=-bsd
        !           385:                ;;
        !           386:        amd64)
        !           387:                basic_machine=x86_64-pc
        !           388:                ;;
        !           389:        amd64-*)
        !           390:                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           391:                ;;
        !           392:        amdahl)
        !           393:                basic_machine=580-amdahl
        !           394:                os=-sysv
        !           395:                ;;
        !           396:        amiga | amiga-*)
        !           397:                basic_machine=m68k-unknown
        !           398:                ;;
        !           399:        amigaos | amigados)
        !           400:                basic_machine=m68k-unknown
        !           401:                os=-amigaos
        !           402:                ;;
        !           403:        amigaunix | amix)
        !           404:                basic_machine=m68k-unknown
        !           405:                os=-sysv4
        !           406:                ;;
        !           407:        apollo68)
        !           408:                basic_machine=m68k-apollo
        !           409:                os=-sysv
        !           410:                ;;
        !           411:        apollo68bsd)
        !           412:                basic_machine=m68k-apollo
        !           413:                os=-bsd
        !           414:                ;;
        !           415:        aux)
        !           416:                basic_machine=m68k-apple
        !           417:                os=-aux
        !           418:                ;;
        !           419:        balance)
        !           420:                basic_machine=ns32k-sequent
        !           421:                os=-dynix
        !           422:                ;;
        !           423:        c90)
        !           424:                basic_machine=c90-cray
        !           425:                os=-unicos
        !           426:                ;;
        !           427:        convex-c1)
        !           428:                basic_machine=c1-convex
        !           429:                os=-bsd
        !           430:                ;;
        !           431:        convex-c2)
        !           432:                basic_machine=c2-convex
        !           433:                os=-bsd
        !           434:                ;;
        !           435:        convex-c32)
        !           436:                basic_machine=c32-convex
        !           437:                os=-bsd
        !           438:                ;;
        !           439:        convex-c34)
        !           440:                basic_machine=c34-convex
        !           441:                os=-bsd
        !           442:                ;;
        !           443:        convex-c38)
        !           444:                basic_machine=c38-convex
        !           445:                os=-bsd
        !           446:                ;;
        !           447:        cray | j90)
        !           448:                basic_machine=j90-cray
        !           449:                os=-unicos
        !           450:                ;;
        !           451:        cr16c)
        !           452:                basic_machine=cr16c-unknown
        !           453:                os=-elf
        !           454:                ;;
        !           455:        crds | unos)
        !           456:                basic_machine=m68k-crds
        !           457:                ;;
        !           458:        cris | cris-* | etrax*)
        !           459:                basic_machine=cris-axis
        !           460:                ;;
        !           461:        crx)
        !           462:                basic_machine=crx-unknown
        !           463:                os=-elf
        !           464:                ;;
        !           465:        da30 | da30-*)
        !           466:                basic_machine=m68k-da30
        !           467:                ;;
        !           468:        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
        !           469:                basic_machine=mips-dec
        !           470:                ;;
        !           471:        decsystem10* | dec10*)
        !           472:                basic_machine=pdp10-dec
        !           473:                os=-tops10
        !           474:                ;;
        !           475:        decsystem20* | dec20*)
        !           476:                basic_machine=pdp10-dec
        !           477:                os=-tops20
        !           478:                ;;
        !           479:        delta | 3300 | motorola-3300 | motorola-delta \
        !           480:              | 3300-motorola | delta-motorola)
        !           481:                basic_machine=m68k-motorola
        !           482:                ;;
        !           483:        delta88)
        !           484:                basic_machine=m88k-motorola
        !           485:                os=-sysv3
        !           486:                ;;
        !           487:        dpx20 | dpx20-*)
        !           488:                basic_machine=rs6000-bull
        !           489:                os=-bosx
        !           490:                ;;
        !           491:        dpx2* | dpx2*-bull)
        !           492:                basic_machine=m68k-bull
        !           493:                os=-sysv3
        !           494:                ;;
        !           495:        ebmon29k)
        !           496:                basic_machine=a29k-amd
        !           497:                os=-ebmon
        !           498:                ;;
        !           499:        elxsi)
        !           500:                basic_machine=elxsi-elxsi
        !           501:                os=-bsd
        !           502:                ;;
        !           503:        encore | umax | mmax)
        !           504:                basic_machine=ns32k-encore
        !           505:                ;;
        !           506:        es1800 | OSE68k | ose68k | ose | OSE)
        !           507:                basic_machine=m68k-ericsson
        !           508:                os=-ose
        !           509:                ;;
        !           510:        fx2800)
        !           511:                basic_machine=i860-alliant
        !           512:                ;;
        !           513:        genix)
        !           514:                basic_machine=ns32k-ns
        !           515:                ;;
        !           516:        gmicro)
        !           517:                basic_machine=tron-gmicro
        !           518:                os=-sysv
        !           519:                ;;
        !           520:        go32)
        !           521:                basic_machine=i386-pc
        !           522:                os=-go32
        !           523:                ;;
        !           524:        h3050r* | hiux*)
        !           525:                basic_machine=hppa1.1-hitachi
        !           526:                os=-hiuxwe2
        !           527:                ;;
        !           528:        h8300hms)
        !           529:                basic_machine=h8300-hitachi
        !           530:                os=-hms
        !           531:                ;;
        !           532:        h8300xray)
        !           533:                basic_machine=h8300-hitachi
        !           534:                os=-xray
        !           535:                ;;
        !           536:        h8500hms)
        !           537:                basic_machine=h8500-hitachi
        !           538:                os=-hms
        !           539:                ;;
        !           540:        harris)
        !           541:                basic_machine=m88k-harris
        !           542:                os=-sysv3
        !           543:                ;;
        !           544:        hp300-*)
        !           545:                basic_machine=m68k-hp
        !           546:                ;;
        !           547:        hp300bsd)
        !           548:                basic_machine=m68k-hp
        !           549:                os=-bsd
        !           550:                ;;
        !           551:        hp300hpux)
        !           552:                basic_machine=m68k-hp
        !           553:                os=-hpux
        !           554:                ;;
        !           555:        hp3k9[0-9][0-9] | hp9[0-9][0-9])
        !           556:                basic_machine=hppa1.0-hp
        !           557:                ;;
        !           558:        hp9k2[0-9][0-9] | hp9k31[0-9])
        !           559:                basic_machine=m68000-hp
        !           560:                ;;
        !           561:        hp9k3[2-9][0-9])
        !           562:                basic_machine=m68k-hp
        !           563:                ;;
        !           564:        hp9k6[0-9][0-9] | hp6[0-9][0-9])
        !           565:                basic_machine=hppa1.0-hp
        !           566:                ;;
        !           567:        hp9k7[0-79][0-9] | hp7[0-79][0-9])
        !           568:                basic_machine=hppa1.1-hp
        !           569:                ;;
        !           570:        hp9k78[0-9] | hp78[0-9])
        !           571:                # FIXME: really hppa2.0-hp
        !           572:                basic_machine=hppa1.1-hp
        !           573:                ;;
        !           574:        hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
        !           575:                # FIXME: really hppa2.0-hp
        !           576:                basic_machine=hppa1.1-hp
        !           577:                ;;
        !           578:        hp9k8[0-9][13679] | hp8[0-9][13679])
        !           579:                basic_machine=hppa1.1-hp
        !           580:                ;;
        !           581:        hp9k8[0-9][0-9] | hp8[0-9][0-9])
        !           582:                basic_machine=hppa1.0-hp
        !           583:                ;;
        !           584:        hppa-next)
        !           585:                os=-nextstep3
        !           586:                ;;
        !           587:        hppaosf)
        !           588:                basic_machine=hppa1.1-hp
        !           589:                os=-osf
        !           590:                ;;
        !           591:        hppro)
        !           592:                basic_machine=hppa1.1-hp
        !           593:                os=-proelf
        !           594:                ;;
        !           595:        i370-ibm* | ibm*)
        !           596:                basic_machine=i370-ibm
        !           597:                ;;
        !           598: # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
        !           599:        i*86v32)
        !           600:                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        !           601:                os=-sysv32
        !           602:                ;;
        !           603:        i*86v4*)
        !           604:                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        !           605:                os=-sysv4
        !           606:                ;;
        !           607:        i*86v)
        !           608:                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        !           609:                os=-sysv
        !           610:                ;;
        !           611:        i*86sol2)
        !           612:                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        !           613:                os=-solaris2
        !           614:                ;;
        !           615:        i386mach)
        !           616:                basic_machine=i386-mach
        !           617:                os=-mach
        !           618:                ;;
        !           619:        i386-vsta | vsta)
        !           620:                basic_machine=i386-unknown
        !           621:                os=-vsta
        !           622:                ;;
        !           623:        iris | iris4d)
        !           624:                basic_machine=mips-sgi
        !           625:                case $os in
        !           626:                    -irix*)
        !           627:                        ;;
        !           628:                    *)
        !           629:                        os=-irix4
        !           630:                        ;;
        !           631:                esac
        !           632:                ;;
        !           633:        isi68 | isi)
        !           634:                basic_machine=m68k-isi
        !           635:                os=-sysv
        !           636:                ;;
        !           637:        m88k-omron*)
        !           638:                basic_machine=m88k-omron
        !           639:                ;;
        !           640:        magnum | m3230)
        !           641:                basic_machine=mips-mips
        !           642:                os=-sysv
        !           643:                ;;
        !           644:        merlin)
        !           645:                basic_machine=ns32k-utek
        !           646:                os=-sysv
        !           647:                ;;
        !           648:        mingw32)
        !           649:                basic_machine=i386-pc
        !           650:                os=-mingw32
        !           651:                ;;
        !           652:        miniframe)
        !           653:                basic_machine=m68000-convergent
        !           654:                ;;
        !           655:        *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
        !           656:                basic_machine=m68k-atari
        !           657:                os=-mint
        !           658:                ;;
        !           659:        mips3*-*)
        !           660:                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
        !           661:                ;;
        !           662:        mips3*)
        !           663:                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
        !           664:                ;;
        !           665:        mmix*)
        !           666:                basic_machine=mmix-knuth
        !           667:                os=-mmixware
        !           668:                ;;
        !           669:        monitor)
        !           670:                basic_machine=m68k-rom68k
        !           671:                os=-coff
        !           672:                ;;
        !           673:        morphos)
        !           674:                basic_machine=powerpc-unknown
        !           675:                os=-morphos
        !           676:                ;;
        !           677:        msdos)
        !           678:                basic_machine=i386-pc
        !           679:                os=-msdos
        !           680:                ;;
        !           681:        mvs)
        !           682:                basic_machine=i370-ibm
        !           683:                os=-mvs
        !           684:                ;;
        !           685:        ncr3000)
        !           686:                basic_machine=i486-ncr
        !           687:                os=-sysv4
        !           688:                ;;
        !           689:        netbsd386)
        !           690:                basic_machine=i386-unknown
        !           691:                os=-netbsd
        !           692:                ;;
        !           693:        netwinder)
        !           694:                basic_machine=armv4l-rebel
        !           695:                os=-linux
        !           696:                ;;
        !           697:        news | news700 | news800 | news900)
        !           698:                basic_machine=m68k-sony
        !           699:                os=-newsos
        !           700:                ;;
        !           701:        news1000)
        !           702:                basic_machine=m68030-sony
        !           703:                os=-newsos
        !           704:                ;;
        !           705:        news-3600 | risc-news)
        !           706:                basic_machine=mips-sony
        !           707:                os=-newsos
        !           708:                ;;
        !           709:        necv70)
        !           710:                basic_machine=v70-nec
        !           711:                os=-sysv
        !           712:                ;;
        !           713:        next | m*-next )
        !           714:                basic_machine=m68k-next
        !           715:                case $os in
        !           716:                    -nextstep* )
        !           717:                        ;;
        !           718:                    -ns2*)
        !           719:                      os=-nextstep2
        !           720:                        ;;
        !           721:                    *)
        !           722:                      os=-nextstep3
        !           723:                        ;;
        !           724:                esac
        !           725:                ;;
        !           726:        nh3000)
        !           727:                basic_machine=m68k-harris
        !           728:                os=-cxux
        !           729:                ;;
        !           730:        nh[45]000)
        !           731:                basic_machine=m88k-harris
        !           732:                os=-cxux
        !           733:                ;;
        !           734:        nindy960)
        !           735:                basic_machine=i960-intel
        !           736:                os=-nindy
        !           737:                ;;
        !           738:        mon960)
        !           739:                basic_machine=i960-intel
        !           740:                os=-mon960
        !           741:                ;;
        !           742:        nonstopux)
        !           743:                basic_machine=mips-compaq
        !           744:                os=-nonstopux
        !           745:                ;;
        !           746:        np1)
        !           747:                basic_machine=np1-gould
        !           748:                ;;
        !           749:        nv1)
        !           750:                basic_machine=nv1-cray
        !           751:                os=-unicosmp
        !           752:                ;;
        !           753:        nsr-tandem)
        !           754:                basic_machine=nsr-tandem
        !           755:                ;;
        !           756:        op50n-* | op60c-*)
        !           757:                basic_machine=hppa1.1-oki
        !           758:                os=-proelf
        !           759:                ;;
        !           760:        or32 | or32-*)
        !           761:                basic_machine=or32-unknown
        !           762:                os=-coff
        !           763:                ;;
        !           764:        os400)
        !           765:                basic_machine=powerpc-ibm
        !           766:                os=-os400
        !           767:                ;;
        !           768:        OSE68000 | ose68000)
        !           769:                basic_machine=m68000-ericsson
        !           770:                os=-ose
        !           771:                ;;
        !           772:        os68k)
        !           773:                basic_machine=m68k-none
        !           774:                os=-os68k
        !           775:                ;;
        !           776:        pa-hitachi)
        !           777:                basic_machine=hppa1.1-hitachi
        !           778:                os=-hiuxwe2
        !           779:                ;;
        !           780:        paragon)
        !           781:                basic_machine=i860-intel
        !           782:                os=-osf
        !           783:                ;;
        !           784:        pbd)
        !           785:                basic_machine=sparc-tti
        !           786:                ;;
        !           787:        pbb)
        !           788:                basic_machine=m68k-tti
        !           789:                ;;
        !           790:        pc532 | pc532-*)
        !           791:                basic_machine=ns32k-pc532
        !           792:                ;;
        !           793:        pentium | p5 | k5 | k6 | nexgen | viac3)
        !           794:                basic_machine=i586-pc
        !           795:                ;;
        !           796:        pentiumpro | p6 | 6x86 | athlon | athlon_*)
        !           797:                basic_machine=i686-pc
        !           798:                ;;
        !           799:        pentiumii | pentium2 | pentiumiii | pentium3)
        !           800:                basic_machine=i686-pc
        !           801:                ;;
        !           802:        pentium4)
        !           803:                basic_machine=i786-pc
        !           804:                ;;
        !           805:        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
        !           806:                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           807:                ;;
        !           808:        pentiumpro-* | p6-* | 6x86-* | athlon-*)
        !           809:                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           810:                ;;
        !           811:        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
        !           812:                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           813:                ;;
        !           814:        pentium4-*)
        !           815:                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           816:                ;;
        !           817:        pn)
        !           818:                basic_machine=pn-gould
        !           819:                ;;
        !           820:        power)  basic_machine=power-ibm
        !           821:                ;;
        !           822:        ppc)    basic_machine=powerpc-unknown
        !           823:                ;;
        !           824:        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           825:                ;;
        !           826:        ppcle | powerpclittle | ppc-le | powerpc-little)
        !           827:                basic_machine=powerpcle-unknown
        !           828:                ;;
        !           829:        ppcle-* | powerpclittle-*)
        !           830:                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           831:                ;;
        !           832:        ppc64)  basic_machine=powerpc64-unknown
        !           833:                ;;
        !           834:        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           835:                ;;
        !           836:        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
        !           837:                basic_machine=powerpc64le-unknown
        !           838:                ;;
        !           839:        ppc64le-* | powerpc64little-*)
        !           840:                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
        !           841:                ;;
        !           842:        ps2)
        !           843:                basic_machine=i386-ibm
        !           844:                ;;
        !           845:        pw32)
        !           846:                basic_machine=i586-unknown
        !           847:                os=-pw32
        !           848:                ;;
        !           849:        rom68k)
        !           850:                basic_machine=m68k-rom68k
        !           851:                os=-coff
        !           852:                ;;
        !           853:        rm[46]00)
        !           854:                basic_machine=mips-siemens
        !           855:                ;;
        !           856:        rtpc | rtpc-*)
        !           857:                basic_machine=romp-ibm
        !           858:                ;;
        !           859:        s390 | s390-*)
        !           860:                basic_machine=s390-ibm
        !           861:                ;;
        !           862:        s390x | s390x-*)
        !           863:                basic_machine=s390x-ibm
        !           864:                ;;
        !           865:        sa29200)
        !           866:                basic_machine=a29k-amd
        !           867:                os=-udi
        !           868:                ;;
        !           869:        sb1)
        !           870:                basic_machine=mipsisa64sb1-unknown
        !           871:                ;;
        !           872:        sb1el)
        !           873:                basic_machine=mipsisa64sb1el-unknown
        !           874:                ;;
        !           875:        sei)
        !           876:                basic_machine=mips-sei
        !           877:                os=-seiux
        !           878:                ;;
        !           879:        sequent)
        !           880:                basic_machine=i386-sequent
        !           881:                ;;
        !           882:        sh)
        !           883:                basic_machine=sh-hitachi
        !           884:                os=-hms
        !           885:                ;;
        !           886:        sh64)
        !           887:                basic_machine=sh64-unknown
        !           888:                ;;
        !           889:        sparclite-wrs | simso-wrs)
        !           890:                basic_machine=sparclite-wrs
        !           891:                os=-vxworks
        !           892:                ;;
        !           893:        sps7)
        !           894:                basic_machine=m68k-bull
        !           895:                os=-sysv2
        !           896:                ;;
        !           897:        spur)
        !           898:                basic_machine=spur-unknown
        !           899:                ;;
        !           900:        st2000)
        !           901:                basic_machine=m68k-tandem
        !           902:                ;;
        !           903:        stratus)
        !           904:                basic_machine=i860-stratus
        !           905:                os=-sysv4
        !           906:                ;;
        !           907:        sun2)
        !           908:                basic_machine=m68000-sun
        !           909:                ;;
        !           910:        sun2os3)
        !           911:                basic_machine=m68000-sun
        !           912:                os=-sunos3
        !           913:                ;;
        !           914:        sun2os4)
        !           915:                basic_machine=m68000-sun
        !           916:                os=-sunos4
        !           917:                ;;
        !           918:        sun3os3)
        !           919:                basic_machine=m68k-sun
        !           920:                os=-sunos3
        !           921:                ;;
        !           922:        sun3os4)
        !           923:                basic_machine=m68k-sun
        !           924:                os=-sunos4
        !           925:                ;;
        !           926:        sun4os3)
        !           927:                basic_machine=sparc-sun
        !           928:                os=-sunos3
        !           929:                ;;
        !           930:        sun4os4)
        !           931:                basic_machine=sparc-sun
        !           932:                os=-sunos4
        !           933:                ;;
        !           934:        sun4sol2)
        !           935:                basic_machine=sparc-sun
        !           936:                os=-solaris2
        !           937:                ;;
        !           938:        sun3 | sun3-*)
        !           939:                basic_machine=m68k-sun
        !           940:                ;;
        !           941:        sun4)
        !           942:                basic_machine=sparc-sun
        !           943:                ;;
        !           944:        sun386 | sun386i | roadrunner)
        !           945:                basic_machine=i386-sun
        !           946:                ;;
        !           947:        sv1)
        !           948:                basic_machine=sv1-cray
        !           949:                os=-unicos
        !           950:                ;;
        !           951:        symmetry)
        !           952:                basic_machine=i386-sequent
        !           953:                os=-dynix
        !           954:                ;;
        !           955:        t3e)
        !           956:                basic_machine=alphaev5-cray
        !           957:                os=-unicos
        !           958:                ;;
        !           959:        t90)
        !           960:                basic_machine=t90-cray
        !           961:                os=-unicos
        !           962:                ;;
        !           963:        tic54x | c54x*)
        !           964:                basic_machine=tic54x-unknown
        !           965:                os=-coff
        !           966:                ;;
        !           967:        tic55x | c55x*)
        !           968:                basic_machine=tic55x-unknown
        !           969:                os=-coff
        !           970:                ;;
        !           971:        tic6x | c6x*)
        !           972:                basic_machine=tic6x-unknown
        !           973:                os=-coff
        !           974:                ;;
        !           975:        tx39)
        !           976:                basic_machine=mipstx39-unknown
        !           977:                ;;
        !           978:        tx39el)
        !           979:                basic_machine=mipstx39el-unknown
        !           980:                ;;
        !           981:        toad1)
        !           982:                basic_machine=pdp10-xkl
        !           983:                os=-tops20
        !           984:                ;;
        !           985:        tower | tower-32)
        !           986:                basic_machine=m68k-ncr
        !           987:                ;;
        !           988:        tpf)
        !           989:                basic_machine=s390x-ibm
        !           990:                os=-tpf
        !           991:                ;;
        !           992:        udi29k)
        !           993:                basic_machine=a29k-amd
        !           994:                os=-udi
        !           995:                ;;
        !           996:        ultra3)
        !           997:                basic_machine=a29k-nyu
        !           998:                os=-sym1
        !           999:                ;;
        !          1000:        v810 | necv810)
        !          1001:                basic_machine=v810-nec
        !          1002:                os=-none
        !          1003:                ;;
        !          1004:        vaxv)
        !          1005:                basic_machine=vax-dec
        !          1006:                os=-sysv
        !          1007:                ;;
        !          1008:        vms)
        !          1009:                basic_machine=vax-dec
        !          1010:                os=-vms
        !          1011:                ;;
        !          1012:        vpp*|vx|vx-*)
        !          1013:                basic_machine=f301-fujitsu
        !          1014:                ;;
        !          1015:        vxworks960)
        !          1016:                basic_machine=i960-wrs
        !          1017:                os=-vxworks
        !          1018:                ;;
        !          1019:        vxworks68)
        !          1020:                basic_machine=m68k-wrs
        !          1021:                os=-vxworks
        !          1022:                ;;
        !          1023:        vxworks29k)
        !          1024:                basic_machine=a29k-wrs
        !          1025:                os=-vxworks
        !          1026:                ;;
        !          1027:        w65*)
        !          1028:                basic_machine=w65-wdc
        !          1029:                os=-none
        !          1030:                ;;
        !          1031:        w89k-*)
        !          1032:                basic_machine=hppa1.1-winbond
        !          1033:                os=-proelf
        !          1034:                ;;
        !          1035:        xps | xps100)
        !          1036:                basic_machine=xps100-honeywell
        !          1037:                ;;
        !          1038:        ymp)
        !          1039:                basic_machine=ymp-cray
        !          1040:                os=-unicos
        !          1041:                ;;
        !          1042:        z8k-*-coff)
        !          1043:                basic_machine=z8k-unknown
        !          1044:                os=-sim
        !          1045:                ;;
        !          1046:        none)
        !          1047:                basic_machine=none-none
        !          1048:                os=-none
        !          1049:                ;;
        !          1050:
        !          1051: # Here we handle the default manufacturer of certain CPU types.  It is in
        !          1052: # some cases the only manufacturer, in others, it is the most popular.
        !          1053:        w89k)
        !          1054:                basic_machine=hppa1.1-winbond
        !          1055:                ;;
        !          1056:        op50n)
        !          1057:                basic_machine=hppa1.1-oki
        !          1058:                ;;
        !          1059:        op60c)
        !          1060:                basic_machine=hppa1.1-oki
        !          1061:                ;;
        !          1062:        romp)
        !          1063:                basic_machine=romp-ibm
        !          1064:                ;;
        !          1065:        rs6000)
        !          1066:                basic_machine=rs6000-ibm
        !          1067:                ;;
        !          1068:        vax)
        !          1069:                basic_machine=vax-dec
        !          1070:                ;;
        !          1071:        pdp10)
        !          1072:                # there are many clones, so DEC is not a safe bet
        !          1073:                basic_machine=pdp10-unknown
        !          1074:                ;;
        !          1075:        pdp11)
        !          1076:                basic_machine=pdp11-dec
        !          1077:                ;;
        !          1078:        we32k)
        !          1079:                basic_machine=we32k-att
        !          1080:                ;;
        !          1081:        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
        !          1082:                basic_machine=sh-unknown
        !          1083:                ;;
        !          1084:        sh5el)
        !          1085:                basic_machine=sh5le-unknown
        !          1086:                ;;
        !          1087:        sh64)
        !          1088:                basic_machine=sh64-unknown
        !          1089:                ;;
        !          1090:        sparc | sparcv8 | sparcv9 | sparcv9b)
        !          1091:                basic_machine=sparc-sun
        !          1092:                ;;
        !          1093:        cydra)
        !          1094:                basic_machine=cydra-cydrome
        !          1095:                ;;
        !          1096:        orion)
        !          1097:                basic_machine=orion-highlevel
        !          1098:                ;;
        !          1099:        orion105)
        !          1100:                basic_machine=clipper-highlevel
        !          1101:                ;;
        !          1102:        mac | mpw | mac-mpw)
        !          1103:                basic_machine=m68k-apple
        !          1104:                ;;
        !          1105:        pmac | pmac-mpw)
        !          1106:                basic_machine=powerpc-apple
        !          1107:                ;;
        !          1108:        *-unknown)
        !          1109:                # Make sure to match an already-canonicalized machine name.
        !          1110:                ;;
        !          1111:        *)
        !          1112:                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
        !          1113:                exit 1
        !          1114:                ;;
        !          1115: esac
        !          1116:
        !          1117: # Here we canonicalize certain aliases for manufacturers.
        !          1118: case $basic_machine in
        !          1119:        *-digital*)
        !          1120:                basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
        !          1121:                ;;
        !          1122:        *-commodore*)
        !          1123:                basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
        !          1124:                ;;
        !          1125:        *)
        !          1126:                ;;
        !          1127: esac
        !          1128:
        !          1129: # Decode manufacturer-specific aliases for certain operating systems.
        !          1130:
        !          1131: if [ x"$os" != x"" ]
        !          1132: then
        !          1133: case $os in
        !          1134:         # First match some system type aliases
        !          1135:         # that might get confused with valid system types.
        !          1136:        # -solaris* is a basic system type, with this one exception.
        !          1137:        -solaris1 | -solaris1.*)
        !          1138:                os=`echo $os | sed -e 's|solaris1|sunos4|'`
        !          1139:                ;;
        !          1140:        -solaris)
        !          1141:                os=-solaris2
        !          1142:                ;;
        !          1143:        -svr4*)
        !          1144:                os=-sysv4
        !          1145:                ;;
        !          1146:        -unixware*)
        !          1147:                os=-sysv4.2uw
        !          1148:                ;;
        !          1149:        -gnu/linux*)
        !          1150:                os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
        !          1151:                ;;
        !          1152:        # First accept the basic system types.
        !          1153:        # The portable systems comes first.
        !          1154:        # Each alternative MUST END IN A *, to match a version number.
        !          1155:        # -sysv* is not here because it comes later, after sysvr4.
        !          1156:        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
        !          1157:              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
        !          1158:              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
        !          1159:              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
        !          1160:              | -aos* \
        !          1161:              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
        !          1162:              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
        !          1163:              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
        !          1164:              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
        !          1165:              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
        !          1166:              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
        !          1167:              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
        !          1168:              | -chorusos* | -chorusrdb* \
        !          1169:              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
        !          1170:              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
        !          1171:              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
        !          1172:              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
        !          1173:              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
        !          1174:              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
        !          1175:              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
        !          1176:              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
        !          1177:        # Remember, each alternative MUST END IN *, to match a version number.
        !          1178:                ;;
        !          1179:        -qnx*)
        !          1180:                case $basic_machine in
        !          1181:                    x86-* | i*86-*)
        !          1182:                        ;;
        !          1183:                    *)
        !          1184:                        os=-nto$os
        !          1185:                        ;;
        !          1186:                esac
        !          1187:                ;;
        !          1188:        -nto-qnx*)
        !          1189:                ;;
        !          1190:        -nto*)
        !          1191:                os=`echo $os | sed -e 's|nto|nto-qnx|'`
        !          1192:                ;;
        !          1193:        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
        !          1194:              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
        !          1195:              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
        !          1196:                ;;
        !          1197:        -mac*)
        !          1198:                os=`echo $os | sed -e 's|mac|macos|'`
        !          1199:                ;;
        !          1200:        -linux-dietlibc)
        !          1201:                os=-linux-dietlibc
        !          1202:                ;;
        !          1203:        -linux*)
        !          1204:                os=`echo $os | sed -e 's|linux|linux-gnu|'`
        !          1205:                ;;
        !          1206:        -sunos5*)
        !          1207:                os=`echo $os | sed -e 's|sunos5|solaris2|'`
        !          1208:                ;;
        !          1209:        -sunos6*)
        !          1210:                os=`echo $os | sed -e 's|sunos6|solaris3|'`
        !          1211:                ;;
        !          1212:        -opened*)
        !          1213:                os=-openedition
        !          1214:                ;;
        !          1215:         -os400*)
        !          1216:                os=-os400
        !          1217:                ;;
        !          1218:        -wince*)
        !          1219:                os=-wince
        !          1220:                ;;
        !          1221:        -osfrose*)
        !          1222:                os=-osfrose
        !          1223:                ;;
        !          1224:        -osf*)
        !          1225:                os=-osf
        !          1226:                ;;
        !          1227:        -utek*)
        !          1228:                os=-bsd
        !          1229:                ;;
        !          1230:        -dynix*)
        !          1231:                os=-bsd
        !          1232:                ;;
        !          1233:        -acis*)
        !          1234:                os=-aos
        !          1235:                ;;
        !          1236:        -atheos*)
        !          1237:                os=-atheos
        !          1238:                ;;
        !          1239:        -syllable*)
        !          1240:                os=-syllable
        !          1241:                ;;
        !          1242:        -386bsd)
        !          1243:                os=-bsd
        !          1244:                ;;
        !          1245:        -ctix* | -uts*)
        !          1246:                os=-sysv
        !          1247:                ;;
        !          1248:        -nova*)
        !          1249:                os=-rtmk-nova
        !          1250:                ;;
        !          1251:        -ns2 )
        !          1252:                os=-nextstep2
        !          1253:                ;;
        !          1254:        -nsk*)
        !          1255:                os=-nsk
        !          1256:                ;;
        !          1257:        # Preserve the version number of sinix5.
        !          1258:        -sinix5.*)
        !          1259:                os=`echo $os | sed -e 's|sinix|sysv|'`
        !          1260:                ;;
        !          1261:        -sinix*)
        !          1262:                os=-sysv4
        !          1263:                ;;
        !          1264:         -tpf*)
        !          1265:                os=-tpf
        !          1266:                ;;
        !          1267:        -triton*)
        !          1268:                os=-sysv3
        !          1269:                ;;
        !          1270:        -oss*)
        !          1271:                os=-sysv3
        !          1272:                ;;
        !          1273:        -svr4)
        !          1274:                os=-sysv4
        !          1275:                ;;
        !          1276:        -svr3)
        !          1277:                os=-sysv3
        !          1278:                ;;
        !          1279:        -sysvr4)
        !          1280:                os=-sysv4
        !          1281:                ;;
        !          1282:        # This must come after -sysvr4.
        !          1283:        -sysv*)
        !          1284:                ;;
        !          1285:        -ose*)
        !          1286:                os=-ose
        !          1287:                ;;
        !          1288:        -es1800*)
        !          1289:                os=-ose
        !          1290:                ;;
        !          1291:        -xenix)
        !          1292:                os=-xenix
        !          1293:                ;;
        !          1294:        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
        !          1295:                os=-mint
        !          1296:                ;;
        !          1297:        -aros*)
        !          1298:                os=-aros
        !          1299:                ;;
        !          1300:        -kaos*)
        !          1301:                os=-kaos
        !          1302:                ;;
        !          1303:        -none)
        !          1304:                ;;
        !          1305:        *)
        !          1306:                # Get rid of the `-' at the beginning of $os.
        !          1307:                os=`echo $os | sed 's/[^-]*-//'`
        !          1308:                echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
        !          1309:                exit 1
        !          1310:                ;;
        !          1311: esac
        !          1312: else
        !          1313:
        !          1314: # Here we handle the default operating systems that come with various machines.
        !          1315: # The value should be what the vendor currently ships out the door with their
        !          1316: # machine or put another way, the most popular os provided with the machine.
        !          1317:
        !          1318: # Note that if you're going to try to match "-MANUFACTURER" here (say,
        !          1319: # "-sun"), then you have to tell the case statement up towards the top
        !          1320: # that MANUFACTURER isn't an operating system.  Otherwise, code above
        !          1321: # will signal an error saying that MANUFACTURER isn't an operating
        !          1322: # system, and we'll never get to this point.
        !          1323:
        !          1324: case $basic_machine in
        !          1325:        *-acorn)
        !          1326:                os=-riscix1.2
        !          1327:                ;;
        !          1328:        arm*-rebel)
        !          1329:                os=-linux
        !          1330:                ;;
        !          1331:        arm*-semi)
        !          1332:                os=-aout
        !          1333:                ;;
        !          1334:     c4x-* | tic4x-*)
        !          1335:         os=-coff
        !          1336:         ;;
        !          1337:        # This must come before the *-dec entry.
        !          1338:        pdp10-*)
        !          1339:                os=-tops20
        !          1340:                ;;
        !          1341:        pdp11-*)
        !          1342:                os=-none
        !          1343:                ;;
        !          1344:        *-dec | vax-*)
        !          1345:                os=-ultrix4.2
        !          1346:                ;;
        !          1347:        m68*-apollo)
        !          1348:                os=-domain
        !          1349:                ;;
        !          1350:        i386-sun)
        !          1351:                os=-sunos4.0.2
        !          1352:                ;;
        !          1353:        m68000-sun)
        !          1354:                os=-sunos3
        !          1355:                # This also exists in the configure program, but was not the
        !          1356:                # default.
        !          1357:                # os=-sunos4
        !          1358:                ;;
        !          1359:        m68*-cisco)
        !          1360:                os=-aout
        !          1361:                ;;
        !          1362:        mips*-cisco)
        !          1363:                os=-elf
        !          1364:                ;;
        !          1365:        mips*-*)
        !          1366:                os=-elf
        !          1367:                ;;
        !          1368:        or32-*)
        !          1369:                os=-coff
        !          1370:                ;;
        !          1371:        *-tti)  # must be before sparc entry or we get the wrong os.
        !          1372:                os=-sysv3
        !          1373:                ;;
        !          1374:        sparc-* | *-sun)
        !          1375:                os=-sunos4.1.1
        !          1376:                ;;
        !          1377:        *-be)
        !          1378:                os=-beos
        !          1379:                ;;
        !          1380:        *-ibm)
        !          1381:                os=-aix
        !          1382:                ;;
        !          1383:        *-wec)
        !          1384:                os=-proelf
        !          1385:                ;;
        !          1386:        *-winbond)
        !          1387:                os=-proelf
        !          1388:                ;;
        !          1389:        *-oki)
        !          1390:                os=-proelf
        !          1391:                ;;
        !          1392:        *-hp)
        !          1393:                os=-hpux
        !          1394:                ;;
        !          1395:        *-hitachi)
        !          1396:                os=-hiux
        !          1397:                ;;
        !          1398:        i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
        !          1399:                os=-sysv
        !          1400:                ;;
        !          1401:        *-cbm)
        !          1402:                os=-amigaos
        !          1403:                ;;
        !          1404:        *-dg)
        !          1405:                os=-dgux
        !          1406:                ;;
        !          1407:        *-dolphin)
        !          1408:                os=-sysv3
        !          1409:                ;;
        !          1410:        m68k-ccur)
        !          1411:                os=-rtu
        !          1412:                ;;
        !          1413:        m88k-omron*)
        !          1414:                os=-luna
        !          1415:                ;;
        !          1416:        *-next )
        !          1417:                os=-nextstep
        !          1418:                ;;
        !          1419:        *-sequent)
        !          1420:                os=-ptx
        !          1421:                ;;
        !          1422:        *-crds)
        !          1423:                os=-unos
        !          1424:                ;;
        !          1425:        *-ns)
        !          1426:                os=-genix
        !          1427:                ;;
        !          1428:        i370-*)
        !          1429:                os=-mvs
        !          1430:                ;;
        !          1431:        *-next)
        !          1432:                os=-nextstep3
        !          1433:                ;;
        !          1434:        *-gould)
        !          1435:                os=-sysv
        !          1436:                ;;
        !          1437:        *-highlevel)
        !          1438:                os=-bsd
        !          1439:                ;;
        !          1440:        *-encore)
        !          1441:                os=-bsd
        !          1442:                ;;
        !          1443:        *-sgi)
        !          1444:                os=-irix
        !          1445:                ;;
        !          1446:        *-siemens)
        !          1447:                os=-sysv4
        !          1448:                ;;
        !          1449:        *-masscomp)
        !          1450:                os=-rtu
        !          1451:                ;;
        !          1452:        f30[01]-fujitsu | f700-fujitsu)
        !          1453:                os=-uxpv
        !          1454:                ;;
        !          1455:        *-rom68k)
        !          1456:                os=-coff
        !          1457:                ;;
        !          1458:        *-*bug)
        !          1459:                os=-coff
        !          1460:                ;;
        !          1461:        *-apple)
        !          1462:                os=-macos
        !          1463:                ;;
        !          1464:        *-atari*)
        !          1465:                os=-mint
        !          1466:                ;;
        !          1467:        *)
        !          1468:                os=-none
        !          1469:                ;;
        !          1470: esac
        !          1471: fi
        !          1472:
        !          1473: # Here we handle the case where we know the os, and the CPU type, but not the
        !          1474: # manufacturer.  We pick the logical manufacturer.
        !          1475: vendor=unknown
        !          1476: case $basic_machine in
        !          1477:        *-unknown)
        !          1478:                case $os in
        !          1479:                        -riscix*)
        !          1480:                                vendor=acorn
        !          1481:                                ;;
        !          1482:                        -sunos*)
        !          1483:                                vendor=sun
        !          1484:                                ;;
        !          1485:                        -aix*)
        !          1486:                                vendor=ibm
        !          1487:                                ;;
        !          1488:                        -beos*)
        !          1489:                                vendor=be
        !          1490:                                ;;
        !          1491:                        -hpux*)
        !          1492:                                vendor=hp
        !          1493:                                ;;
        !          1494:                        -mpeix*)
        !          1495:                                vendor=hp
        !          1496:                                ;;
        !          1497:                        -hiux*)
        !          1498:                                vendor=hitachi
        !          1499:                                ;;
        !          1500:                        -unos*)
        !          1501:                                vendor=crds
        !          1502:                                ;;
        !          1503:                        -dgux*)
        !          1504:                                vendor=dg
        !          1505:                                ;;
        !          1506:                        -luna*)
        !          1507:                                vendor=omron
        !          1508:                                ;;
        !          1509:                        -genix*)
        !          1510:                                vendor=ns
        !          1511:                                ;;
        !          1512:                        -mvs* | -opened*)
        !          1513:                                vendor=ibm
        !          1514:                                ;;
        !          1515:                        -os400*)
        !          1516:                                vendor=ibm
        !          1517:                                ;;
        !          1518:                        -ptx*)
        !          1519:                                vendor=sequent
        !          1520:                                ;;
        !          1521:                        -tpf*)
        !          1522:                                vendor=ibm
        !          1523:                                ;;
        !          1524:                        -vxsim* | -vxworks* | -windiss*)
        !          1525:                                vendor=wrs
        !          1526:                                ;;
        !          1527:                        -aux*)
        !          1528:                                vendor=apple
        !          1529:                                ;;
        !          1530:                        -hms*)
        !          1531:                                vendor=hitachi
        !          1532:                                ;;
        !          1533:                        -mpw* | -macos*)
        !          1534:                                vendor=apple
        !          1535:                                ;;
        !          1536:                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
        !          1537:                                vendor=atari
        !          1538:                                ;;
        !          1539:                        -vos*)
        !          1540:                                vendor=stratus
        !          1541:                                ;;
        !          1542:                esac
        !          1543:                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
        !          1544:                ;;
        !          1545: esac
        !          1546:
        !          1547: echo $basic_machine$os
        !          1548: exit 0
        !          1549:
        !          1550: # Local variables:
        !          1551: # eval: (add-hook 'write-file-hooks 'time-stamp)
        !          1552: # time-stamp-start: "timestamp='"
        !          1553: # time-stamp-format: "%:y-%02m-%02d"
        !          1554: # time-stamp-end: "'"
        !          1555: # End: