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