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