~ubuntu-branches/ubuntu/trusty/alsa-plugins/trusty

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2013-07-26 10:57:49 UTC
  • mfrom: (3.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20130726105749-ymn7cpbi75gmgplw
Tags: 1.0.27-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Create libasound2-plugins-extra package which contains plugins that use
    libav.

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-05-13'
 
7
timestamp='2012-04-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
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-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
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
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 \
279
 
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
307
        | rl78 | rx \
 
308
        | score \
 
309
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
280
310
        | sh64 | sh64le \
281
311
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282
312
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
283
 
        | spu | strongarm \
284
 
        | tahoe | thumb | tic4x | tic80 | tron \
285
 
        | v850 | v850e \
 
313
        | spu \
 
314
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
315
        | ubicom32 \
 
316
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
286
317
        | we32k \
287
 
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
288
 
        | z8k)
 
318
        | x86 | xc16x | xstormy16 | xtensa \
 
319
        | z8k | z80)
289
320
                basic_machine=$basic_machine-unknown
290
321
                ;;
291
 
        m6811 | m68hc11 | m6812 | m68hc12)
292
 
                # 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)
293
332
                basic_machine=$basic_machine-unknown
294
333
                os=-none
295
334
                ;;
299
338
                basic_machine=mt-unknown
300
339
                ;;
301
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
 
302
356
        # We use `pc' rather than `unknown'
303
357
        # because (1) that's what they normally are, and
304
358
        # (2) the word "unknown" tends to confuse beginning users.
313
367
        # Recognize the basic CPU types with company name.
314
368
        580-* \
315
369
        | a29k-* \
 
370
        | aarch64-* | aarch64_be-* \
316
371
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
317
372
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
318
373
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
319
374
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
320
 
        | avr-* \
 
375
        | avr-* | avr32-* \
 
376
        | be32-* | be64-* \
321
377
        | bfin-* | bs2000-* \
322
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
378
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
323
379
        | clipper-* | craynv-* | cydra-* \
324
380
        | d10v-* | d30v-* | dlx-* \
325
381
        | elxsi-* \
326
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
382
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
327
383
        | h8300-* | h8500-* \
328
384
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
385
        | hexagon-* \
329
386
        | i*86-* | i860-* | i960-* | ia64-* \
330
387
        | ip2k-* | iq2000-* \
 
388
        | le32-* | le64-* \
 
389
        | lm32-* \
331
390
        | m32c-* | m32r-* | m32rle-* \
332
391
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333
 
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
392
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
334
393
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335
394
        | mips16-* \
336
395
        | mips64-* | mips64el-* \
 
396
        | mips64octeon-* | mips64octeonel-* \
 
397
        | mips64orion-* | mips64orionel-* \
 
398
        | mips64r5900-* | mips64r5900el-* \
337
399
        | mips64vr-* | mips64vrel-* \
338
 
        | mips64orion-* | mips64orionel-* \
339
400
        | mips64vr4100-* | mips64vr4100el-* \
340
401
        | mips64vr4300-* | mips64vr4300el-* \
341
402
        | mips64vr5000-* | mips64vr5000el-* \
350
411
        | mmix-* \
351
412
        | mt-* \
352
413
        | msp430-* \
 
414
        | nds32-* | nds32le-* | nds32be-* \
353
415
        | nios-* | nios2-* \
354
416
        | none-* | np1-* | ns16k-* | ns32k-* \
 
417
        | open8-* \
355
418
        | orion-* \
356
419
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
357
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
420
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
358
421
        | pyramid-* \
359
 
        | romp-* | rs6000-* \
360
 
        | 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-* \
361
424
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
362
425
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363
426
        | sparclite-* \
364
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365
 
        | tahoe-* | thumb-* \
 
427
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
428
        | tahoe-* \
366
429
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
430
        | tile*-* \
367
431
        | tron-* \
368
 
        | v850-* | v850e-* | vax-* \
 
432
        | ubicom32-* \
 
433
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
434
        | vax-* \
369
435
        | we32k-* \
370
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
371
 
        | xstormy16-* | xtensa-* \
 
436
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
437
        | xstormy16-* | xtensa*-* \
372
438
        | ymp-* \
373
 
        | 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
374
444
                ;;
375
445
        # Recognize the various machine names and aliases which stand
376
446
        # for a CPU type and a company and sometimes even an OS.
388
458
                basic_machine=a29k-amd
389
459
                os=-udi
390
460
                ;;
391
 
        abacus)
 
461
        abacus)
392
462
                basic_machine=abacus-unknown
393
463
                ;;
394
464
        adobe68k)
434
504
                basic_machine=m68k-apollo
435
505
                os=-bsd
436
506
                ;;
 
507
        aros)
 
508
                basic_machine=i386-pc
 
509
                os=-aros
 
510
                ;;
437
511
        aux)
438
512
                basic_machine=m68k-apple
439
513
                os=-aux
442
516
                basic_machine=ns32k-sequent
443
517
                os=-dynix
444
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
                ;;
445
540
        c90)
446
541
                basic_machine=c90-cray
447
542
                os=-unicos
448
543
                ;;
 
544
        cegcc)
 
545
                basic_machine=arm-unknown
 
546
                os=-cegcc
 
547
                ;;
449
548
        convex-c1)
450
549
                basic_machine=c1-convex
451
550
                os=-bsd
474
573
                basic_machine=craynv-cray
475
574
                os=-unicosmp
476
575
                ;;
477
 
        cr16c)
478
 
                basic_machine=cr16c-unknown
 
576
        cr16 | cr16-*)
 
577
                basic_machine=cr16-unknown
479
578
                os=-elf
480
579
                ;;
481
580
        crds | unos)
513
612
                basic_machine=m88k-motorola
514
613
                os=-sysv3
515
614
                ;;
 
615
        dicos)
 
616
                basic_machine=i686-pc
 
617
                os=-dicos
 
618
                ;;
516
619
        djgpp)
517
620
                basic_machine=i586-pc
518
621
                os=-msdosdjgpp
628
731
        i370-ibm* | ibm*)
629
732
                basic_machine=i370-ibm
630
733
                ;;
631
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
632
734
        i*86v32)
633
735
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
634
736
                os=-sysv32
667
769
                basic_machine=m68k-isi
668
770
                os=-sysv
669
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
                ;;
670
780
        m88k-omron*)
671
781
                basic_machine=m88k-omron
672
782
                ;;
678
788
                basic_machine=ns32k-utek
679
789
                os=-sysv
680
790
                ;;
 
791
        microblaze)
 
792
                basic_machine=microblaze-xilinx
 
793
                ;;
681
794
        mingw32)
682
795
                basic_machine=i386-pc
683
796
                os=-mingw32
684
797
                ;;
 
798
        mingw32ce)
 
799
                basic_machine=arm-unknown
 
800
                os=-mingw32ce
 
801
                ;;
685
802
        miniframe)
686
803
                basic_machine=m68000-convergent
687
804
                ;;
710
827
        ms1-*)
711
828
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
712
829
                ;;
 
830
        msys)
 
831
                basic_machine=i386-pc
 
832
                os=-msys
 
833
                ;;
713
834
        mvs)
714
835
                basic_machine=i370-ibm
715
836
                os=-mvs
716
837
                ;;
 
838
        nacl)
 
839
                basic_machine=le32-unknown
 
840
                os=-nacl
 
841
                ;;
717
842
        ncr3000)
718
843
                basic_machine=i486-ncr
719
844
                os=-sysv4
778
903
        np1)
779
904
                basic_machine=np1-gould
780
905
                ;;
 
906
        neo-tandem)
 
907
                basic_machine=neo-tandem
 
908
                ;;
 
909
        nse-tandem)
 
910
                basic_machine=nse-tandem
 
911
                ;;
781
912
        nsr-tandem)
782
913
                basic_machine=nsr-tandem
783
914
                ;;
808
939
                basic_machine=i860-intel
809
940
                os=-osf
810
941
                ;;
 
942
        parisc)
 
943
                basic_machine=hppa-unknown
 
944
                os=-linux
 
945
                ;;
 
946
        parisc-*)
 
947
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
948
                os=-linux
 
949
                ;;
811
950
        pbd)
812
951
                basic_machine=sparc-tti
813
952
                ;;
852
991
                ;;
853
992
        power)  basic_machine=power-ibm
854
993
                ;;
855
 
        ppc)    basic_machine=powerpc-unknown
 
994
        ppc | ppcbe)    basic_machine=powerpc-unknown
856
995
                ;;
857
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
996
        ppc-* | ppcbe-*)
 
997
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
858
998
                ;;
859
999
        ppcle | powerpclittle | ppc-le | powerpc-little)
860
1000
                basic_machine=powerpcle-unknown
909
1049
        sb1el)
910
1050
                basic_machine=mipsisa64sb1el-unknown
911
1051
                ;;
 
1052
        sde)
 
1053
                basic_machine=mipsisa32-sde
 
1054
                os=-elf
 
1055
                ;;
912
1056
        sei)
913
1057
                basic_machine=mips-sei
914
1058
                os=-seiux
920
1064
                basic_machine=sh-hitachi
921
1065
                os=-hms
922
1066
                ;;
 
1067
        sh5el)
 
1068
                basic_machine=sh5le-unknown
 
1069
                ;;
923
1070
        sh64)
924
1071
                basic_machine=sh64-unknown
925
1072
                ;;
941
1088
                basic_machine=i860-stratus
942
1089
                os=-sysv4
943
1090
                ;;
 
1091
        strongarm-* | thumb-*)
 
1092
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1093
                ;;
944
1094
        sun2)
945
1095
                basic_machine=m68000-sun
946
1096
                ;;
997
1147
                basic_machine=t90-cray
998
1148
                os=-unicos
999
1149
                ;;
1000
 
        tic54x | c54x*)
1001
 
                basic_machine=tic54x-unknown
1002
 
                os=-coff
1003
 
                ;;
1004
 
        tic55x | c55x*)
1005
 
                basic_machine=tic55x-unknown
1006
 
                os=-coff
1007
 
                ;;
1008
 
        tic6x | c6x*)
1009
 
                basic_machine=tic6x-unknown
1010
 
                os=-coff
 
1150
        tile*)
 
1151
                basic_machine=$basic_machine-unknown
 
1152
                os=-linux-gnu
1011
1153
                ;;
1012
1154
        tx39)
1013
1155
                basic_machine=mipstx39-unknown
1076
1218
        xps | xps100)
1077
1219
                basic_machine=xps100-honeywell
1078
1220
                ;;
 
1221
        xscale-* | xscalee[bl]-*)
 
1222
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1223
                ;;
1079
1224
        ymp)
1080
1225
                basic_machine=ymp-cray
1081
1226
                os=-unicos
1084
1229
                basic_machine=z8k-unknown
1085
1230
                os=-sim
1086
1231
                ;;
 
1232
        z80-*-coff)
 
1233
                basic_machine=z80-unknown
 
1234
                os=-sim
 
1235
                ;;
1087
1236
        none)
1088
1237
                basic_machine=none-none
1089
1238
                os=-none
1122
1271
        we32k)
1123
1272
                basic_machine=we32k-att
1124
1273
                ;;
1125
 
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
 
1274
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1126
1275
                basic_machine=sh-unknown
1127
1276
                ;;
1128
1277
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1169
1318
if [ x"$os" != x"" ]
1170
1319
then
1171
1320
case $os in
1172
 
        # First match some system type aliases
1173
 
        # that might get confused with valid system types.
 
1321
        # First match some system type aliases
 
1322
        # that might get confused with valid system types.
1174
1323
        # -solaris* is a basic system type, with this one exception.
 
1324
        -auroraux)
 
1325
                os=-auroraux
 
1326
                ;;
1175
1327
        -solaris1 | -solaris1.*)
1176
1328
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1177
1329
                ;;
1192
1344
        # Each alternative MUST END IN A *, to match a version number.
1193
1345
        # -sysv* is not here because it comes later, after sysvr4.
1194
1346
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1195
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1196
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1347
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1348
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1349
              | -sym* | -kopensolaris* \
1197
1350
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1198
 
              | -aos* \
 
1351
              | -aos* | -aros* \
1199
1352
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1200
1353
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1201
1354
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1204
1357
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1205
1358
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1206
1359
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1207
 
              | -chorusos* | -chorusrdb* \
1208
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1209
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1360
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1361
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1362
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1363
              | -linux-newlib* | -linux-uclibc* \
1210
1364
              | -uxpv* | -beos* | -mpeix* | -udk* \
1211
1365
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1212
1366
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1214
1368
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1215
1369
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1216
1370
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1217
 
              | -skyos* | -haiku* | -rdos*)
 
1371
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1218
1372
        # Remember, each alternative MUST END IN *, to match a version number.
1219
1373
                ;;
1220
1374
        -qnx*)
1253
1407
        -opened*)
1254
1408
                os=-openedition
1255
1409
                ;;
1256
 
        -os400*)
 
1410
        -os400*)
1257
1411
                os=-os400
1258
1412
                ;;
1259
1413
        -wince*)
1302
1456
        -sinix*)
1303
1457
                os=-sysv4
1304
1458
                ;;
1305
 
        -tpf*)
 
1459
        -tpf*)
1306
1460
                os=-tpf
1307
1461
                ;;
1308
1462
        -triton*)
1344
1498
        -zvmoe)
1345
1499
                os=-zvmoe
1346
1500
                ;;
 
1501
        -dicos*)
 
1502
                os=-dicos
 
1503
                ;;
 
1504
        -nacl*)
 
1505
                ;;
1347
1506
        -none)
1348
1507
                ;;
1349
1508
        *)
1366
1525
# system, and we'll never get to this point.
1367
1526
 
1368
1527
case $basic_machine in
1369
 
        spu-*)
 
1528
        score-*)
 
1529
                os=-elf
 
1530
                ;;
 
1531
        spu-*)
1370
1532
                os=-elf
1371
1533
                ;;
1372
1534
        *-acorn)
1378
1540
        arm*-semi)
1379
1541
                os=-aout
1380
1542
                ;;
1381
 
        c4x-* | tic4x-*)
1382
 
                os=-coff
 
1543
        c4x-* | tic4x-*)
 
1544
                os=-coff
 
1545
                ;;
 
1546
        hexagon-*)
 
1547
                os=-elf
 
1548
                ;;
 
1549
        tic54x-*)
 
1550
                os=-coff
 
1551
                ;;
 
1552
        tic55x-*)
 
1553
                os=-coff
 
1554
                ;;
 
1555
        tic6x-*)
 
1556
                os=-coff
1383
1557
                ;;
1384
1558
        # This must come before the *-dec entry.
1385
1559
        pdp10-*)
1399
1573
                ;;
1400
1574
        m68000-sun)
1401
1575
                os=-sunos3
1402
 
                # This also exists in the configure program, but was not the
1403
 
                # default.
1404
 
                # os=-sunos4
1405
1576
                ;;
1406
1577
        m68*-cisco)
1407
1578
                os=-aout
1408
1579
                ;;
 
1580
        mep-*)
 
1581
                os=-elf
 
1582
                ;;
1409
1583
        mips*-cisco)
1410
1584
                os=-elf
1411
1585
                ;;
1430
1604
        *-ibm)
1431
1605
                os=-aix
1432
1606
                ;;
1433
 
        *-knuth)
 
1607
        *-knuth)
1434
1608
                os=-mmixware
1435
1609
                ;;
1436
1610
        *-wec)
1535
1709
                        -sunos*)
1536
1710
                                vendor=sun
1537
1711
                                ;;
1538
 
                        -aix*)
 
1712
                        -cnk*|-aix*)
1539
1713
                                vendor=ibm
1540
1714
                                ;;
1541
1715
                        -beos*)