~ubuntu-branches/ubuntu/lucid/tuxtype/lucid-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2005-06-16 20:21:49 UTC
  • Revision ID: james.westby@ubuntu.com-20050616202149-bbcb0jk335x6a8lb
Tags: 1.0-5ubuntu1
* added .desktop file and icon (from tuxtype2)
* added copying of config.{sub,guess} to the clean target
* bumped standards version to 3.6.1
* fixed 2 unquoted strings in the menu file
* changed descrption synopsis to lowercase to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
 
#   Free Software Foundation, Inc.
 
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2001-08-02'
 
6
timestamp='2005-04-22'
7
7
 
8
8
# This file is (in principle) common to ALL GNU software.
9
9
# The presence of a machine in this file suggests that SOME GNU software
29
29
# configuration script generated by Autoconf, you may include it under
30
30
# the same distribution terms that you use for the rest of that program.
31
31
 
32
 
# Please send patches to <config-patches@gnu.org>.
 
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
 
33
# diff and a properly formatted ChangeLog entry.
33
34
#
34
35
# Configuration subroutine to validate and canonicalize a configuration type.
35
36
# Supply the specified configuration type as an argument.
69
70
version="\
70
71
GNU config.sub ($timestamp)
71
72
 
72
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
73
74
Free Software Foundation, Inc.
74
75
 
75
76
This is free software; see the source for copying conditions.  There is NO
117
118
# Here we must recognize all the valid KERNEL-OS combinations.
118
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119
120
case $maybe_os in
120
 
  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
 
121
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
 
122
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
121
123
    os=-$maybe_os
122
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123
125
    ;;
143
145
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
144
146
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
145
147
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
146
 
        -apple | -axis)
 
148
        -apple | -axis | -knuth | -cray)
147
149
                os=
148
150
                basic_machine=$1
149
151
                ;;
226
228
        1750a | 580 \
227
229
        | a29k \
228
230
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 
231
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
232
        | am33_2.0 \
229
233
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
234
        | bfin \
230
235
        | c4x | clipper \
231
 
        | d10v | d30v | dsp16xx \
232
 
        | fr30 \
 
236
        | d10v | d30v | dlx | dsp16xx \
 
237
        | fr30 | frv \
233
238
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
234
239
        | i370 | i860 | i960 | ia64 \
235
 
        | m32r | m68000 | m68k | m88k | mcore \
236
 
        | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
237
 
        | mips64vr4100 | mips64vr4100el | mips64vr4300 \
238
 
        | mips64vr4300el | mips64vr5000 | mips64vr5000el \
239
 
        | mipsbe | mipsel | mipsle | mipstx39 | mipstx39el \
 
240
        | ip2k | iq2000 \
 
241
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
 
242
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
243
        | mips16 \
 
244
        | mips64 | mips64el \
 
245
        | mips64vr | mips64vrel \
 
246
        | mips64orion | mips64orionel \
 
247
        | mips64vr4100 | mips64vr4100el \
 
248
        | mips64vr4300 | mips64vr4300el \
 
249
        | mips64vr5000 | mips64vr5000el \
 
250
        | mipsisa32 | mipsisa32el \
 
251
        | mipsisa32r2 | mipsisa32r2el \
 
252
        | mipsisa64 | mipsisa64el \
 
253
        | mipsisa64r2 | mipsisa64r2el \
 
254
        | mipsisa64sb1 | mipsisa64sb1el \
 
255
        | mipsisa64sr71k | mipsisa64sr71kel \
 
256
        | mipstx39 | mipstx39el \
240
257
        | mn10200 | mn10300 \
 
258
        | msp430 \
241
259
        | ns16k | ns32k \
242
 
        | openrisc \
 
260
        | openrisc | or32 \
243
261
        | pdp10 | pdp11 | pj | pjl \
244
262
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
245
263
        | pyramid \
246
 
        | s390 | s390x \
247
 
        | sh | sh[34] | sh[34]eb | shbe | shle \
248
 
        | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
 
264
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
265
        | sh64 | sh64le \
 
266
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
 
267
        | sparcv8 | sparcv9 | sparcv9b \
249
268
        | strongarm \
250
 
        | tahoe | thumb | tic80 | tron \
251
 
        | v850 \
 
269
        | tahoe | thumb | tic4x | tic80 | tron \
 
270
        | v850 | v850e \
252
271
        | we32k \
253
 
        | x86 | xscale \
 
272
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
254
273
        | z8k)
255
274
                basic_machine=$basic_machine-unknown
256
275
                ;;
277
296
        580-* \
278
297
        | a29k-* \
279
298
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
280
 
        | alphapca5[67]-* | arc-* \
281
 
        | arm-*  | armbe-* | armle-* | armv*-* \
282
 
        | bs2000-* \
283
 
        | c[123]* | c30-* | [cjt]90-* | c54x-* \
284
 
        | clipper-* | cray2-* | cydra-* \
285
 
        | d10v-* | d30v-* \
286
 
        | f30[01]-* | f700-* | fr30-* | fx80-* \
 
299
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 
300
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
301
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
 
302
        | avr-* \
 
303
        | bfin-* | bs2000-* \
 
304
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
305
        | clipper-* | craynv-* | cydra-* \
 
306
        | d10v-* | d30v-* | dlx-* \
 
307
        | elxsi-* \
 
308
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
287
309
        | h8300-* | h8500-* \
288
310
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
289
311
        | i*86-* | i860-* | i960-* | ia64-* \
290
 
        | m32r-* \
291
 
        | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
292
 
        | m88110-* | m88k-* | mcore-* \
293
 
        | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
294
 
        | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
295
 
        | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipsel-* \
296
 
        | mipsle-* | mipstx39-* | mipstx39el-* \
 
312
        | ip2k-* | iq2000-* \
 
313
        | m32r-* | m32rle-* \
 
314
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 
315
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
316
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
317
        | mips16-* \
 
318
        | mips64-* | mips64el-* \
 
319
        | mips64vr-* | mips64vrel-* \
 
320
        | mips64orion-* | mips64orionel-* \
 
321
        | mips64vr4100-* | mips64vr4100el-* \
 
322
        | mips64vr4300-* | mips64vr4300el-* \
 
323
        | mips64vr5000-* | mips64vr5000el-* \
 
324
        | mipsisa32-* | mipsisa32el-* \
 
325
        | mipsisa32r2-* | mipsisa32r2el-* \
 
326
        | mipsisa64-* | mipsisa64el-* \
 
327
        | mipsisa64r2-* | mipsisa64r2el-* \
 
328
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
329
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
330
        | mipstx39-* | mipstx39el-* \
 
331
        | mmix-* \
 
332
        | msp430-* \
297
333
        | none-* | np1-* | ns16k-* | ns32k-* \
298
334
        | orion-* \
299
335
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
300
336
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
301
337
        | pyramid-* \
302
338
        | romp-* | rs6000-* \
303
 
        | s390-* | s390x-* \
304
 
        | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
305
 
        | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
306
 
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
307
 
        | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
308
 
        | v850-* | vax-* \
 
339
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
340
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
341
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
342
        | sparclite-* \
 
343
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
344
        | tahoe-* | thumb-* \
 
345
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
346
        | tron-* \
 
347
        | v850-* | v850e-* | vax-* \
309
348
        | we32k-* \
310
 
        | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
 
349
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
 
350
        | xstormy16-* | xtensa-* \
311
351
        | ymp-* \
312
352
        | z8k-*)
313
353
                ;;
327
367
                basic_machine=a29k-amd
328
368
                os=-udi
329
369
                ;;
 
370
        abacus)
 
371
                basic_machine=abacus-unknown
 
372
                ;;
330
373
        adobe68k)
331
374
                basic_machine=m68010-adobe
332
375
                os=-scout
341
384
                basic_machine=a29k-none
342
385
                os=-bsd
343
386
                ;;
 
387
        amd64)
 
388
                basic_machine=x86_64-pc
 
389
                ;;
 
390
        amd64-*)
 
391
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
392
                ;;
344
393
        amdahl)
345
394
                basic_machine=580-amdahl
346
395
                os=-sysv
372
421
                basic_machine=ns32k-sequent
373
422
                os=-dynix
374
423
                ;;
 
424
        c90)
 
425
                basic_machine=c90-cray
 
426
                os=-unicos
 
427
                ;;
375
428
        convex-c1)
376
429
                basic_machine=c1-convex
377
430
                os=-bsd
392
445
                basic_machine=c38-convex
393
446
                os=-bsd
394
447
                ;;
395
 
        cray | ymp)
396
 
                basic_machine=ymp-cray
397
 
                os=-unicos
398
 
                ;;
399
 
        cray2)
400
 
                basic_machine=cray2-cray
401
 
                os=-unicos
402
 
                ;;
403
 
        [cjt]90)
404
 
                basic_machine=${basic_machine}-cray
405
 
                os=-unicos
 
448
        cray | j90)
 
449
                basic_machine=j90-cray
 
450
                os=-unicos
 
451
                ;;
 
452
        craynv)
 
453
                basic_machine=craynv-cray
 
454
                os=-unicosmp
 
455
                ;;
 
456
        cr16c)
 
457
                basic_machine=cr16c-unknown
 
458
                os=-elf
406
459
                ;;
407
460
        crds | unos)
408
461
                basic_machine=m68k-crds
409
462
                ;;
 
463
        crisv32 | crisv32-* | etraxfs*)
 
464
                basic_machine=crisv32-axis
 
465
                ;;
410
466
        cris | cris-* | etrax*)
411
467
                basic_machine=cris-axis
412
468
                ;;
 
469
        crx)
 
470
                basic_machine=crx-unknown
 
471
                os=-elf
 
472
                ;;
413
473
        da30 | da30-*)
414
474
                basic_machine=m68k-da30
415
475
                ;;
416
476
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
417
477
                basic_machine=mips-dec
418
478
                ;;
 
479
        decsystem10* | dec10*)
 
480
                basic_machine=pdp10-dec
 
481
                os=-tops10
 
482
                ;;
 
483
        decsystem20* | dec20*)
 
484
                basic_machine=pdp10-dec
 
485
                os=-tops20
 
486
                ;;
419
487
        delta | 3300 | motorola-3300 | motorola-delta \
420
488
              | 3300-motorola | delta-motorola)
421
489
                basic_machine=m68k-motorola
424
492
                basic_machine=m88k-motorola
425
493
                os=-sysv3
426
494
                ;;
 
495
        djgpp)
 
496
                basic_machine=i586-pc
 
497
                os=-msdosdjgpp
 
498
                ;;
427
499
        dpx20 | dpx20-*)
428
500
                basic_machine=rs6000-bull
429
501
                os=-bosx
596
668
                basic_machine=m68k-atari
597
669
                os=-mint
598
670
                ;;
599
 
        mipsel*-linux*)
600
 
                basic_machine=mipsel-unknown
601
 
                os=-linux-gnu
602
 
                ;;
603
 
        mips*-linux*)
604
 
                basic_machine=mips-unknown
605
 
                os=-linux-gnu
606
 
                ;;
607
671
        mips3*-*)
608
672
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
609
673
                ;;
610
674
        mips3*)
611
675
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
612
676
                ;;
613
 
        mmix*)
614
 
                basic_machine=mmix-knuth
615
 
                os=-mmixware
616
 
                ;;
617
677
        monitor)
618
678
                basic_machine=m68k-rom68k
619
679
                os=-coff
620
680
                ;;
 
681
        morphos)
 
682
                basic_machine=powerpc-unknown
 
683
                os=-morphos
 
684
                ;;
621
685
        msdos)
622
686
                basic_machine=i386-pc
623
687
                os=-msdos
697
761
                basic_machine=hppa1.1-oki
698
762
                os=-proelf
699
763
                ;;
 
764
        or32 | or32-*)
 
765
                basic_machine=or32-unknown
 
766
                os=-coff
 
767
                ;;
 
768
        os400)
 
769
                basic_machine=powerpc-ibm
 
770
                os=-os400
 
771
                ;;
700
772
        OSE68000 | ose68000)
701
773
                basic_machine=m68000-ericsson
702
774
                os=-ose
719
791
        pbb)
720
792
                basic_machine=m68k-tti
721
793
                ;;
722
 
        pc532 | pc532-*)
 
794
        pc532 | pc532-*)
723
795
                basic_machine=ns32k-pc532
724
796
                ;;
725
 
        pentium | p5 | k5 | k6 | nexgen)
 
797
        pentium | p5 | k5 | k6 | nexgen | viac3)
726
798
                basic_machine=i586-pc
727
799
                ;;
728
 
        pentiumpro | p6 | 6x86 | athlon)
729
 
                basic_machine=i686-pc
730
 
                ;;
731
 
        pentiumii | pentium2)
732
 
                basic_machine=i686-pc
733
 
                ;;
734
 
        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
 
800
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
801
                basic_machine=i686-pc
 
802
                ;;
 
803
        pentiumii | pentium2 | pentiumiii | pentium3)
 
804
                basic_machine=i686-pc
 
805
                ;;
 
806
        pentium4)
 
807
                basic_machine=i786-pc
 
808
                ;;
 
809
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
735
810
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
736
811
                ;;
737
812
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
738
813
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
739
814
                ;;
740
 
        pentiumii-* | pentium2-*)
 
815
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
741
816
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
742
817
                ;;
 
818
        pentium4-*)
 
819
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
820
                ;;
743
821
        pn)
744
822
                basic_machine=pn-gould
745
823
                ;;
746
824
        power)  basic_machine=power-ibm
747
825
                ;;
748
826
        ppc)    basic_machine=powerpc-unknown
749
 
                ;;
 
827
                ;;
750
828
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
751
829
                ;;
752
830
        ppcle | powerpclittle | ppc-le | powerpc-little)
753
831
                basic_machine=powerpcle-unknown
754
 
                ;;
 
832
                ;;
755
833
        ppcle-* | powerpclittle-*)
756
834
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
757
835
                ;;
758
836
        ppc64)  basic_machine=powerpc64-unknown
759
 
                ;;
 
837
                ;;
760
838
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
761
839
                ;;
762
840
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
763
841
                basic_machine=powerpc64le-unknown
764
 
                ;;
 
842
                ;;
765
843
        ppc64le-* | powerpc64little-*)
766
844
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
767
845
                ;;
782
860
        rtpc | rtpc-*)
783
861
                basic_machine=romp-ibm
784
862
                ;;
 
863
        s390 | s390-*)
 
864
                basic_machine=s390-ibm
 
865
                ;;
 
866
        s390x | s390x-*)
 
867
                basic_machine=s390x-ibm
 
868
                ;;
785
869
        sa29200)
786
870
                basic_machine=a29k-amd
787
871
                os=-udi
788
872
                ;;
 
873
        sb1)
 
874
                basic_machine=mipsisa64sb1-unknown
 
875
                ;;
 
876
        sb1el)
 
877
                basic_machine=mipsisa64sb1el-unknown
 
878
                ;;
 
879
        sei)
 
880
                basic_machine=mips-sei
 
881
                os=-seiux
 
882
                ;;
789
883
        sequent)
790
884
                basic_machine=i386-sequent
791
885
                ;;
793
887
                basic_machine=sh-hitachi
794
888
                os=-hms
795
889
                ;;
796
 
        sparclite-wrs)
 
890
        sh64)
 
891
                basic_machine=sh64-unknown
 
892
                ;;
 
893
        sparclite-wrs | simso-wrs)
797
894
                basic_machine=sparclite-wrs
798
895
                os=-vxworks
799
896
                ;;
860
957
                os=-dynix
861
958
                ;;
862
959
        t3e)
863
 
                basic_machine=t3e-cray
 
960
                basic_machine=alphaev5-cray
 
961
                os=-unicos
 
962
                ;;
 
963
        t90)
 
964
                basic_machine=t90-cray
864
965
                os=-unicos
865
966
                ;;
866
967
        tic54x | c54x*)
867
968
                basic_machine=tic54x-unknown
868
969
                os=-coff
869
970
                ;;
 
971
        tic55x | c55x*)
 
972
                basic_machine=tic55x-unknown
 
973
                os=-coff
 
974
                ;;
 
975
        tic6x | c6x*)
 
976
                basic_machine=tic6x-unknown
 
977
                os=-coff
 
978
                ;;
870
979
        tx39)
871
980
                basic_machine=mipstx39-unknown
872
981
                ;;
873
982
        tx39el)
874
983
                basic_machine=mipstx39el-unknown
875
984
                ;;
 
985
        toad1)
 
986
                basic_machine=pdp10-xkl
 
987
                os=-tops20
 
988
                ;;
876
989
        tower | tower-32)
877
990
                basic_machine=m68k-ncr
878
991
                ;;
 
992
        tpf)
 
993
                basic_machine=s390x-ibm
 
994
                os=-tpf
 
995
                ;;
879
996
        udi29k)
880
997
                basic_machine=a29k-amd
881
998
                os=-udi
897
1014
                os=-vms
898
1015
                ;;
899
1016
        vpp*|vx|vx-*)
900
 
               basic_machine=f301-fujitsu
901
 
               ;;
 
1017
                basic_machine=f301-fujitsu
 
1018
                ;;
902
1019
        vxworks960)
903
1020
                basic_machine=i960-wrs
904
1021
                os=-vxworks
919
1036
                basic_machine=hppa1.1-winbond
920
1037
                os=-proelf
921
1038
                ;;
922
 
        windows32)
923
 
                basic_machine=i386-pc
924
 
                os=-windows32-msvcrt
925
 
                ;;
926
 
        xmp)
927
 
                basic_machine=xmp-cray
928
 
                os=-unicos
929
 
                ;;
930
 
        xps | xps100)
 
1039
        xbox)
 
1040
                basic_machine=i686-pc
 
1041
                os=-mingw32
 
1042
                ;;
 
1043
        xps | xps100)
931
1044
                basic_machine=xps100-honeywell
932
1045
                ;;
 
1046
        ymp)
 
1047
                basic_machine=ymp-cray
 
1048
                os=-unicos
 
1049
                ;;
933
1050
        z8k-*-coff)
934
1051
                basic_machine=z8k-unknown
935
1052
                os=-sim
950
1067
        op60c)
951
1068
                basic_machine=hppa1.1-oki
952
1069
                ;;
953
 
        mips)
954
 
                if [ x$os = x-linux-gnu ]; then
955
 
                        basic_machine=mips-unknown
956
 
                else
957
 
                        basic_machine=mips-mips
958
 
                fi
959
 
                ;;
960
1070
        romp)
961
1071
                basic_machine=romp-ibm
962
1072
                ;;
 
1073
        mmix)
 
1074
                basic_machine=mmix-knuth
 
1075
                ;;
963
1076
        rs6000)
964
1077
                basic_machine=rs6000-ibm
965
1078
                ;;
976
1089
        we32k)
977
1090
                basic_machine=we32k-att
978
1091
                ;;
979
 
        sh3 | sh4 | sh3eb | sh4eb)
 
1092
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
980
1093
                basic_machine=sh-unknown
981
1094
                ;;
982
 
        sparc | sparcv9 | sparcv9b)
 
1095
        sh64)
 
1096
                basic_machine=sh64-unknown
 
1097
                ;;
 
1098
        sparc | sparcv8 | sparcv9 | sparcv9b)
983
1099
                basic_machine=sparc-sun
984
1100
                ;;
985
 
        cydra)
 
1101
        cydra)
986
1102
                basic_machine=cydra-cydrome
987
1103
                ;;
988
1104
        orion)
997
1113
        pmac | pmac-mpw)
998
1114
                basic_machine=powerpc-apple
999
1115
                ;;
1000
 
        c4x*)
1001
 
                basic_machine=c4x-none
1002
 
                os=-coff
1003
 
                ;;
1004
1116
        *-unknown)
1005
1117
                # Make sure to match an already-canonicalized machine name.
1006
1118
                ;;
1056
1168
              | -aos* \
1057
1169
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1058
1170
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1059
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1060
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1171
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1172
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1173
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1061
1174
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1062
1175
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1063
1176
              | -chorusos* | -chorusrdb* \
1064
1177
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1065
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1066
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1178
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1179
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1067
1180
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1068
1181
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1069
 
              | -os2* | -vos*)
 
1182
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
1183
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1184
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1070
1185
        # Remember, each alternative MUST END IN *, to match a version number.
1071
1186
                ;;
1072
1187
        -qnx*)
1078
1193
                        ;;
1079
1194
                esac
1080
1195
                ;;
 
1196
        -nto-qnx*)
 
1197
                ;;
1081
1198
        -nto*)
1082
 
                os=-nto-qnx
 
1199
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1083
1200
                ;;
1084
1201
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1085
1202
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1088
1205
        -mac*)
1089
1206
                os=`echo $os | sed -e 's|mac|macos|'`
1090
1207
                ;;
 
1208
        -linux-dietlibc)
 
1209
                os=-linux-dietlibc
 
1210
                ;;
1091
1211
        -linux*)
1092
1212
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1093
1213
                ;;
1100
1220
        -opened*)
1101
1221
                os=-openedition
1102
1222
                ;;
 
1223
        -os400*)
 
1224
                os=-os400
 
1225
                ;;
1103
1226
        -wince*)
1104
1227
                os=-wince
1105
1228
                ;;
1118
1241
        -acis*)
1119
1242
                os=-aos
1120
1243
                ;;
 
1244
        -atheos*)
 
1245
                os=-atheos
 
1246
                ;;
 
1247
        -syllable*)
 
1248
                os=-syllable
 
1249
                ;;
1121
1250
        -386bsd)
1122
1251
                os=-bsd
1123
1252
                ;;
1124
1253
        -ctix* | -uts*)
1125
1254
                os=-sysv
1126
1255
                ;;
 
1256
        -nova*)
 
1257
                os=-rtmk-nova
 
1258
                ;;
1127
1259
        -ns2 )
1128
 
                os=-nextstep2
 
1260
                os=-nextstep2
1129
1261
                ;;
1130
1262
        -nsk*)
1131
1263
                os=-nsk
1137
1269
        -sinix*)
1138
1270
                os=-sysv4
1139
1271
                ;;
 
1272
        -tpf*)
 
1273
                os=-tpf
 
1274
                ;;
1140
1275
        -triton*)
1141
1276
                os=-sysv3
1142
1277
                ;;
1164
1299
        -xenix)
1165
1300
                os=-xenix
1166
1301
                ;;
1167
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1168
 
                os=-mint
 
1302
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1303
                os=-mint
 
1304
                ;;
 
1305
        -aros*)
 
1306
                os=-aros
 
1307
                ;;
 
1308
        -kaos*)
 
1309
                os=-kaos
 
1310
                ;;
 
1311
        -zvmoe)
 
1312
                os=-zvmoe
1169
1313
                ;;
1170
1314
        -none)
1171
1315
                ;;
1198
1342
        arm*-semi)
1199
1343
                os=-aout
1200
1344
                ;;
 
1345
    c4x-* | tic4x-*)
 
1346
        os=-coff
 
1347
        ;;
 
1348
        # This must come before the *-dec entry.
1201
1349
        pdp10-*)
1202
1350
                os=-tops20
1203
1351
                ;;
1204
 
        pdp11-*)
 
1352
        pdp11-*)
1205
1353
                os=-none
1206
1354
                ;;
1207
1355
        *-dec | vax-*)
1228
1376
        mips*-*)
1229
1377
                os=-elf
1230
1378
                ;;
 
1379
        or32-*)
 
1380
                os=-coff
 
1381
                ;;
1231
1382
        *-tti)  # must be before sparc entry or we get the wrong os.
1232
1383
                os=-sysv3
1233
1384
                ;;
1240
1391
        *-ibm)
1241
1392
                os=-aix
1242
1393
                ;;
 
1394
        *-knuth)
 
1395
                os=-mmixware
 
1396
                ;;
1243
1397
        *-wec)
1244
1398
                os=-proelf
1245
1399
                ;;
1291
1445
        *-next)
1292
1446
                os=-nextstep3
1293
1447
                ;;
1294
 
        *-gould)
 
1448
        *-gould)
1295
1449
                os=-sysv
1296
1450
                ;;
1297
 
        *-highlevel)
 
1451
        *-highlevel)
1298
1452
                os=-bsd
1299
1453
                ;;
1300
1454
        *-encore)
1301
1455
                os=-bsd
1302
1456
                ;;
1303
 
        *-sgi)
 
1457
        *-sgi)
1304
1458
                os=-irix
1305
1459
                ;;
1306
 
        *-siemens)
 
1460
        *-siemens)
1307
1461
                os=-sysv4
1308
1462
                ;;
1309
1463
        *-masscomp)
1372
1526
                        -mvs* | -opened*)
1373
1527
                                vendor=ibm
1374
1528
                                ;;
 
1529
                        -os400*)
 
1530
                                vendor=ibm
 
1531
                                ;;
1375
1532
                        -ptx*)
1376
1533
                                vendor=sequent
1377
1534
                                ;;
1378
 
                        -vxsim* | -vxworks*)
 
1535
                        -tpf*)
 
1536
                                vendor=ibm
 
1537
                                ;;
 
1538
                        -vxsim* | -vxworks* | -windiss*)
1379
1539
                                vendor=wrs
1380
1540
                                ;;
1381
1541
                        -aux*)