~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Arnold D. Robbins
  • Date: 2012-11-25 19:54:48 UTC
  • mfrom: (319.1.122)
  • Revision ID: git-v1:9a9ff61bbd952c1263b55f82a269da5b09289a6b
Merge branch 'master' into array-iface

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
 
#   Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-09-20'
 
7
timestamp='2012-08-18'
8
8
 
9
9
# This file is (in principle) common to ALL GNU software.
10
10
# The presence of a machine in this file suggests that SOME GNU software
12
12
#
13
13
# This file is free software; you can redistribute it and/or modify
14
14
# it under the terms of the GNU General Public License as published by
15
 
# the Free Software Foundation; either version 3 of the License, or
 
15
# the Free Software Foundation; either version 2 of the License, or
16
16
# (at your option) any later version.
17
17
#
18
18
# This program is distributed in the hope that it will be useful,
21
21
# GNU General Public License for more details.
22
22
#
23
23
# You should have received a copy of the GNU General Public License
24
 
# along with this program; if not, write to the Free Software
25
 
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
 
# 02110-1301, USA.
 
24
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27
25
#
28
26
# As a special exception to the GNU General Public License, if you
29
27
# distribute this file as part of a program that contains a
32
30
 
33
31
 
34
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted ChangeLog entry.
 
33
# diff and a properly formatted GNU ChangeLog entry.
36
34
#
37
35
# Configuration subroutine to validate and canonicalize a configuration type.
38
36
# Supply the specified configuration type as an argument.
39
37
# If it is invalid, we print an error message on stderr and exit with code 1.
40
38
# Otherwise, we print the canonical config type on stdout and succeed.
41
39
 
 
40
# You can get the latest version of this script from:
 
41
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
42
 
42
43
# This file is supposed to be the same for all GNU packages
43
44
# and recognize all the CPU types, system types and aliases
44
45
# that are meaningful with *any* GNU software.
72
73
version="\
73
74
GNU config.sub ($timestamp)
74
75
 
75
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
76
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
77
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
76
78
Free Software Foundation, Inc.
77
79
 
78
80
This is free software; see the source for copying conditions.  There is NO
120
122
# Here we must recognize all the valid KERNEL-OS combinations.
121
123
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122
124
case $maybe_os in
123
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
 
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
125
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
 
126
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
127
  knetbsd*-gnu* | netbsd*-gnu* | \
 
128
  kopensolaris*-gnu* | \
125
129
  storm-chaos* | os2-emx* | rtmk-nova*)
126
130
    os=-$maybe_os
127
131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128
132
    ;;
 
133
  android-linux)
 
134
    os=-linux-android
 
135
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
136
    ;;
129
137
  *)
130
138
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131
139
    if [ $basic_machine != $1 ]
148
156
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149
157
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150
158
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
 
        -apple | -axis | -knuth | -cray)
 
159
        -apple | -axis | -knuth | -cray | -microblaze)
152
160
                os=
153
161
                basic_machine=$1
154
162
                ;;
 
163
        -bluegene*)
 
164
                os=-cnk
 
165
                ;;
155
166
        -sim | -cisco | -oki | -wec | -winbond)
156
167
                os=
157
168
                basic_machine=$1
166
177
                os=-chorusos
167
178
                basic_machine=$1
168
179
                ;;
169
 
        -chorusrdb)
170
 
                os=-chorusrdb
 
180
        -chorusrdb)
 
181
                os=-chorusrdb
171
182
                basic_machine=$1
172
 
                ;;
 
183
                ;;
173
184
        -hiux*)
174
185
                os=-hiuxwe2
175
186
                ;;
214
225
        -isc*)
215
226
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216
227
                ;;
 
228
        -lynx*178)
 
229
                os=-lynxos178
 
230
                ;;
 
231
        -lynx*5)
 
232
                os=-lynxos5
 
233
                ;;
217
234
        -lynx*)
218
235
                os=-lynxos
219
236
                ;;
238
255
        # Some are omitted here because they have special meanings below.
239
256
        1750a | 580 \
240
257
        | a29k \
 
258
        | aarch64 | aarch64_be \
241
259
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242
260
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243
261
        | am33_2.0 \
244
262
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
263
        | be32 | be64 \
245
264
        | bfin \
246
265
        | c4x | clipper \
247
266
        | d10v | d30v | dlx | dsp16xx \
248
 
        | fr30 | frv \
 
267
        | epiphany \
 
268
        | fido | fr30 | frv \
249
269
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
270
        | hexagon \
250
271
        | i370 | i860 | i960 | ia64 \
251
272
        | ip2k | iq2000 \
 
273
        | le32 | le64 \
 
274
        | lm32 \
252
275
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
253
 
        | maxq | mb | microblaze | mcore \
 
276
        | maxq | mb | microblaze | mcore | mep | metag \
254
277
        | mips | mipsbe | mipseb | mipsel | mipsle \
255
278
        | mips16 \
256
279
        | mips64 | mips64el \
 
280
        | mips64octeon | mips64octeonel \
 
281
        | mips64orion | mips64orionel \
 
282
        | mips64r5900 | mips64r5900el \
257
283
        | mips64vr | mips64vrel \
258
 
        | mips64orion | mips64orionel \
259
284
        | mips64vr4100 | mips64vr4100el \
260
285
        | mips64vr4300 | mips64vr4300el \
261
286
        | mips64vr5000 | mips64vr5000el \
268
293
        | mipsisa64sr71k | mipsisa64sr71kel \
269
294
        | mipstx39 | mipstx39el \
270
295
        | mn10200 | mn10300 \
 
296
        | moxie \
271
297
        | mt \
272
298
        | msp430 \
 
299
        | nds32 | nds32le | nds32be \
273
300
        | nios | nios2 \
274
301
        | ns16k | ns32k \
 
302
        | open8 \
275
303
        | or32 \
276
304
        | pdp10 | pdp11 | pj | pjl \
277
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
305
        | powerpc | powerpc64 | powerpc64le | powerpcle \
278
306
        | pyramid \
 
307
        | rl78 | rx \
279
308
        | score \
280
 
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
309
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
281
310
        | sh64 | sh64le \
282
311
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
312
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284
 
        | spu | strongarm \
285
 
        | tahoe | thumb | tic4x | tic80 | tron \
286
 
        | v850 | v850e \
 
313
        | spu \
 
314
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
315
        | ubicom32 \
 
316
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
287
317
        | we32k \
288
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
289
 
        | z8k)
 
318
        | x86 | xc16x | xstormy16 | xtensa \
 
319
        | z8k | z80)
290
320
                basic_machine=$basic_machine-unknown
291
321
                ;;
292
 
        m6811 | m68hc11 | m6812 | m68hc12)
293
 
                # Motorola 68HC11/12.
 
322
        c54x)
 
323
                basic_machine=tic54x-unknown
 
324
                ;;
 
325
        c55x)
 
326
                basic_machine=tic55x-unknown
 
327
                ;;
 
328
        c6x)
 
329
                basic_machine=tic6x-unknown
 
330
                ;;
 
331
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
294
332
                basic_machine=$basic_machine-unknown
295
333
                os=-none
296
334
                ;;
300
338
                basic_machine=mt-unknown
301
339
                ;;
302
340
 
 
341
        strongarm | thumb | xscale)
 
342
                basic_machine=arm-unknown
 
343
                ;;
 
344
        xgate)
 
345
                basic_machine=$basic_machine-unknown
 
346
                os=-none
 
347
                ;;
 
348
        xscaleeb)
 
349
                basic_machine=armeb-unknown
 
350
                ;;
 
351
 
 
352
        xscaleel)
 
353
                basic_machine=armel-unknown
 
354
                ;;
 
355
 
303
356
        # We use `pc' rather than `unknown'
304
357
        # because (1) that's what they normally are, and
305
358
        # (2) the word "unknown" tends to confuse beginning users.
314
367
        # Recognize the basic CPU types with company name.
315
368
        580-* \
316
369
        | a29k-* \
 
370
        | aarch64-* | aarch64_be-* \
317
371
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
318
372
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319
373
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320
374
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
321
375
        | avr-* | avr32-* \
 
376
        | be32-* | be64-* \
322
377
        | bfin-* | bs2000-* \
323
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
378
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
324
379
        | clipper-* | craynv-* | cydra-* \
325
380
        | d10v-* | d30v-* | dlx-* \
326
381
        | elxsi-* \
327
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
382
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
328
383
        | h8300-* | h8500-* \
329
384
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
385
        | hexagon-* \
330
386
        | i*86-* | i860-* | i960-* | ia64-* \
331
387
        | ip2k-* | iq2000-* \
 
388
        | le32-* | le64-* \
 
389
        | lm32-* \
332
390
        | m32c-* | m32r-* | m32rle-* \
333
391
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334
 
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
392
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
335
393
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
336
394
        | mips16-* \
337
395
        | mips64-* | mips64el-* \
 
396
        | mips64octeon-* | mips64octeonel-* \
 
397
        | mips64orion-* | mips64orionel-* \
 
398
        | mips64r5900-* | mips64r5900el-* \
338
399
        | mips64vr-* | mips64vrel-* \
339
 
        | mips64orion-* | mips64orionel-* \
340
400
        | mips64vr4100-* | mips64vr4100el-* \
341
401
        | mips64vr4300-* | mips64vr4300el-* \
342
402
        | mips64vr5000-* | mips64vr5000el-* \
351
411
        | mmix-* \
352
412
        | mt-* \
353
413
        | msp430-* \
 
414
        | nds32-* | nds32le-* | nds32be-* \
354
415
        | nios-* | nios2-* \
355
416
        | none-* | np1-* | ns16k-* | ns32k-* \
 
417
        | open8-* \
356
418
        | orion-* \
357
419
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
420
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
359
421
        | pyramid-* \
360
 
        | romp-* | rs6000-* \
361
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
422
        | rl78-* | romp-* | rs6000-* | rx-* \
 
423
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
362
424
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363
425
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
364
426
        | sparclite-* \
365
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
366
 
        | tahoe-* | thumb-* \
 
427
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
428
        | tahoe-* \
367
429
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
430
        | tile*-* \
368
431
        | tron-* \
369
 
        | v850-* | v850e-* | vax-* \
 
432
        | ubicom32-* \
 
433
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
434
        | vax-* \
370
435
        | we32k-* \
371
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
 
        | xstormy16-* | xtensa-* \
 
436
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
437
        | xstormy16-* | xtensa*-* \
373
438
        | ymp-* \
374
 
        | z8k-*)
 
439
        | z8k-* | z80-*)
 
440
                ;;
 
441
        # Recognize the basic CPU types without company name, with glob match.
 
442
        xtensa*)
 
443
                basic_machine=$basic_machine-unknown
375
444
                ;;
376
445
        # Recognize the various machine names and aliases which stand
377
446
        # for a CPU type and a company and sometimes even an OS.
389
458
                basic_machine=a29k-amd
390
459
                os=-udi
391
460
                ;;
392
 
        abacus)
 
461
        abacus)
393
462
                basic_machine=abacus-unknown
394
463
                ;;
395
464
        adobe68k)
435
504
                basic_machine=m68k-apollo
436
505
                os=-bsd
437
506
                ;;
 
507
        aros)
 
508
                basic_machine=i386-pc
 
509
                os=-aros
 
510
                ;;
438
511
        aux)
439
512
                basic_machine=m68k-apple
440
513
                os=-aux
443
516
                basic_machine=ns32k-sequent
444
517
                os=-dynix
445
518
                ;;
 
519
        blackfin)
 
520
                basic_machine=bfin-unknown
 
521
                os=-linux
 
522
                ;;
 
523
        blackfin-*)
 
524
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
525
                os=-linux
 
526
                ;;
 
527
        bluegene*)
 
528
                basic_machine=powerpc-ibm
 
529
                os=-cnk
 
530
                ;;
 
531
        c54x-*)
 
532
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
533
                ;;
 
534
        c55x-*)
 
535
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
536
                ;;
 
537
        c6x-*)
 
538
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
539
                ;;
446
540
        c90)
447
541
                basic_machine=c90-cray
448
542
                os=-unicos
449
543
                ;;
 
544
        cegcc)
 
545
                basic_machine=arm-unknown
 
546
                os=-cegcc
 
547
                ;;
450
548
        convex-c1)
451
549
                basic_machine=c1-convex
452
550
                os=-bsd
475
573
                basic_machine=craynv-cray
476
574
                os=-unicosmp
477
575
                ;;
478
 
        cr16c)
479
 
                basic_machine=cr16c-unknown
 
576
        cr16 | cr16-*)
 
577
                basic_machine=cr16-unknown
480
578
                os=-elf
481
579
                ;;
482
580
        crds | unos)
514
612
                basic_machine=m88k-motorola
515
613
                os=-sysv3
516
614
                ;;
 
615
        dicos)
 
616
                basic_machine=i686-pc
 
617
                os=-dicos
 
618
                ;;
517
619
        djgpp)
518
620
                basic_machine=i586-pc
519
621
                os=-msdosdjgpp
629
731
        i370-ibm* | ibm*)
630
732
                basic_machine=i370-ibm
631
733
                ;;
632
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
633
734
        i*86v32)
634
735
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
635
736
                os=-sysv32
668
769
                basic_machine=m68k-isi
669
770
                os=-sysv
670
771
                ;;
 
772
        m68knommu)
 
773
                basic_machine=m68k-unknown
 
774
                os=-linux
 
775
                ;;
 
776
        m68knommu-*)
 
777
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
778
                os=-linux
 
779
                ;;
671
780
        m88k-omron*)
672
781
                basic_machine=m88k-omron
673
782
                ;;
679
788
                basic_machine=ns32k-utek
680
789
                os=-sysv
681
790
                ;;
 
791
        microblaze)
 
792
                basic_machine=microblaze-xilinx
 
793
                ;;
 
794
        mingw64)
 
795
                basic_machine=x86_64-pc
 
796
                os=-mingw64
 
797
                ;;
682
798
        mingw32)
683
799
                basic_machine=i386-pc
684
800
                os=-mingw32
685
801
                ;;
 
802
        mingw32ce)
 
803
                basic_machine=arm-unknown
 
804
                os=-mingw32ce
 
805
                ;;
686
806
        miniframe)
687
807
                basic_machine=m68000-convergent
688
808
                ;;
711
831
        ms1-*)
712
832
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
713
833
                ;;
 
834
        msys)
 
835
                basic_machine=i386-pc
 
836
                os=-msys
 
837
                ;;
714
838
        mvs)
715
839
                basic_machine=i370-ibm
716
840
                os=-mvs
717
841
                ;;
 
842
        nacl)
 
843
                basic_machine=le32-unknown
 
844
                os=-nacl
 
845
                ;;
718
846
        ncr3000)
719
847
                basic_machine=i486-ncr
720
848
                os=-sysv4
779
907
        np1)
780
908
                basic_machine=np1-gould
781
909
                ;;
 
910
        neo-tandem)
 
911
                basic_machine=neo-tandem
 
912
                ;;
 
913
        nse-tandem)
 
914
                basic_machine=nse-tandem
 
915
                ;;
782
916
        nsr-tandem)
783
917
                basic_machine=nsr-tandem
784
918
                ;;
809
943
                basic_machine=i860-intel
810
944
                os=-osf
811
945
                ;;
 
946
        parisc)
 
947
                basic_machine=hppa-unknown
 
948
                os=-linux
 
949
                ;;
 
950
        parisc-*)
 
951
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
952
                os=-linux
 
953
                ;;
812
954
        pbd)
813
955
                basic_machine=sparc-tti
814
956
                ;;
853
995
                ;;
854
996
        power)  basic_machine=power-ibm
855
997
                ;;
856
 
        ppc)    basic_machine=powerpc-unknown
 
998
        ppc | ppcbe)    basic_machine=powerpc-unknown
857
999
                ;;
858
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1000
        ppc-* | ppcbe-*)
 
1001
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
859
1002
                ;;
860
1003
        ppcle | powerpclittle | ppc-le | powerpc-little)
861
1004
                basic_machine=powerpcle-unknown
925
1068
                basic_machine=sh-hitachi
926
1069
                os=-hms
927
1070
                ;;
 
1071
        sh5el)
 
1072
                basic_machine=sh5le-unknown
 
1073
                ;;
928
1074
        sh64)
929
1075
                basic_machine=sh64-unknown
930
1076
                ;;
946
1092
                basic_machine=i860-stratus
947
1093
                os=-sysv4
948
1094
                ;;
 
1095
        strongarm-* | thumb-*)
 
1096
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1097
                ;;
949
1098
        sun2)
950
1099
                basic_machine=m68000-sun
951
1100
                ;;
1002
1151
                basic_machine=t90-cray
1003
1152
                os=-unicos
1004
1153
                ;;
1005
 
        tic54x | c54x*)
1006
 
                basic_machine=tic54x-unknown
1007
 
                os=-coff
1008
 
                ;;
1009
 
        tic55x | c55x*)
1010
 
                basic_machine=tic55x-unknown
1011
 
                os=-coff
1012
 
                ;;
1013
 
        tic6x | c6x*)
1014
 
                basic_machine=tic6x-unknown
1015
 
                os=-coff
 
1154
        tile*)
 
1155
                basic_machine=$basic_machine-unknown
 
1156
                os=-linux-gnu
1016
1157
                ;;
1017
1158
        tx39)
1018
1159
                basic_machine=mipstx39-unknown
1081
1222
        xps | xps100)
1082
1223
                basic_machine=xps100-honeywell
1083
1224
                ;;
 
1225
        xscale-* | xscalee[bl]-*)
 
1226
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1227
                ;;
1084
1228
        ymp)
1085
1229
                basic_machine=ymp-cray
1086
1230
                os=-unicos
1089
1233
                basic_machine=z8k-unknown
1090
1234
                os=-sim
1091
1235
                ;;
 
1236
        z80-*-coff)
 
1237
                basic_machine=z80-unknown
 
1238
                os=-sim
 
1239
                ;;
1092
1240
        none)
1093
1241
                basic_machine=none-none
1094
1242
                os=-none
1127
1275
        we32k)
1128
1276
                basic_machine=we32k-att
1129
1277
                ;;
1130
 
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
 
1278
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1131
1279
                basic_machine=sh-unknown
1132
1280
                ;;
1133
1281
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1174
1322
if [ x"$os" != x"" ]
1175
1323
then
1176
1324
case $os in
1177
 
        # First match some system type aliases
1178
 
        # that might get confused with valid system types.
 
1325
        # First match some system type aliases
 
1326
        # that might get confused with valid system types.
1179
1327
        # -solaris* is a basic system type, with this one exception.
 
1328
        -auroraux)
 
1329
                os=-auroraux
 
1330
                ;;
1180
1331
        -solaris1 | -solaris1.*)
1181
1332
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1182
1333
                ;;
1197
1348
        # Each alternative MUST END IN A *, to match a version number.
1198
1349
        # -sysv* is not here because it comes later, after sysvr4.
1199
1350
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1200
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1201
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1351
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1352
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1353
              | -sym* | -kopensolaris* \
1202
1354
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1203
 
              | -aos* \
 
1355
              | -aos* | -aros* \
1204
1356
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1205
1357
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1206
1358
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1207
 
              | -openbsd* | -solidbsd* \
 
1359
              | -bitrig* | -openbsd* | -solidbsd* \
1208
1360
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1209
1361
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1210
1362
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1211
1363
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1212
 
              | -chorusos* | -chorusrdb* \
1213
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1214
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1364
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1365
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1366
              | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
 
1367
              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1215
1368
              | -uxpv* | -beos* | -mpeix* | -udk* \
1216
1369
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1217
1370
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1219
1372
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1220
1373
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1221
1374
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1222
 
              | -skyos* | -haiku* | -rdos* | -toppers*)
 
1375
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1223
1376
        # Remember, each alternative MUST END IN *, to match a version number.
1224
1377
                ;;
1225
1378
        -qnx*)
1258
1411
        -opened*)
1259
1412
                os=-openedition
1260
1413
                ;;
1261
 
        -os400*)
 
1414
        -os400*)
1262
1415
                os=-os400
1263
1416
                ;;
1264
1417
        -wince*)
1307
1460
        -sinix*)
1308
1461
                os=-sysv4
1309
1462
                ;;
1310
 
        -tpf*)
 
1463
        -tpf*)
1311
1464
                os=-tpf
1312
1465
                ;;
1313
1466
        -triton*)
1349
1502
        -zvmoe)
1350
1503
                os=-zvmoe
1351
1504
                ;;
 
1505
        -dicos*)
 
1506
                os=-dicos
 
1507
                ;;
 
1508
        -nacl*)
 
1509
                ;;
1352
1510
        -none)
1353
1511
                ;;
1354
1512
        *)
1371
1529
# system, and we'll never get to this point.
1372
1530
 
1373
1531
case $basic_machine in
1374
 
        score-*)
 
1532
        score-*)
1375
1533
                os=-elf
1376
1534
                ;;
1377
 
        spu-*)
 
1535
        spu-*)
1378
1536
                os=-elf
1379
1537
                ;;
1380
1538
        *-acorn)
1386
1544
        arm*-semi)
1387
1545
                os=-aout
1388
1546
                ;;
1389
 
        c4x-* | tic4x-*)
1390
 
                os=-coff
 
1547
        c4x-* | tic4x-*)
 
1548
                os=-coff
 
1549
                ;;
 
1550
        hexagon-*)
 
1551
                os=-elf
 
1552
                ;;
 
1553
        tic54x-*)
 
1554
                os=-coff
 
1555
                ;;
 
1556
        tic55x-*)
 
1557
                os=-coff
 
1558
                ;;
 
1559
        tic6x-*)
 
1560
                os=-coff
1391
1561
                ;;
1392
1562
        # This must come before the *-dec entry.
1393
1563
        pdp10-*)
1407
1577
                ;;
1408
1578
        m68000-sun)
1409
1579
                os=-sunos3
1410
 
                # This also exists in the configure program, but was not the
1411
 
                # default.
1412
 
                # os=-sunos4
1413
1580
                ;;
1414
1581
        m68*-cisco)
1415
1582
                os=-aout
1416
1583
                ;;
 
1584
        mep-*)
 
1585
                os=-elf
 
1586
                ;;
1417
1587
        mips*-cisco)
1418
1588
                os=-elf
1419
1589
                ;;
1438
1608
        *-ibm)
1439
1609
                os=-aix
1440
1610
                ;;
1441
 
        *-knuth)
 
1611
        *-knuth)
1442
1612
                os=-mmixware
1443
1613
                ;;
1444
1614
        *-wec)
1543
1713
                        -sunos*)
1544
1714
                                vendor=sun
1545
1715
                                ;;
1546
 
                        -aix*)
 
1716
                        -cnk*|-aix*)
1547
1717
                                vendor=ibm
1548
1718
                                ;;
1549
1719
                        -beos*)