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