~ubuntu-branches/ubuntu/edgy/e2fsprogs/edgy-security

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-09-19 09:43:14 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040919094314-ypmsn0h1ke583yda
Tags: 1.35-6ubuntu1
Remove ext3-add-journal.sh script.  It overcomplicates the initrd setup,
and the only problem it solves is to prevent a visible /.journal

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 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2001-04-20'
 
6
timestamp='2004-01-05'
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.
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*)
 
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
    ;;
157
159
                os=-vxworks
158
160
                basic_machine=$1
159
161
                ;;
 
162
        -chorusos*)
 
163
                os=-chorusos
 
164
                basic_machine=$1
 
165
                ;;
 
166
        -chorusrdb)
 
167
                os=-chorusrdb
 
168
                basic_machine=$1
 
169
                ;;
160
170
        -hiux*)
161
171
                os=-hiuxwe2
162
172
                ;;
215
225
case $basic_machine in
216
226
        # Recognize the basic CPU types without company name.
217
227
        # Some are omitted here because they have special meanings below.
218
 
        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
219
 
                | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
220
 
                | pyramid | mn10200 | mn10300 | tron | a29k \
221
 
                | 580 | i960 | h8300 \
222
 
                | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
223
 
                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
224
 
                | hppa64 \
225
 
                | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
226
 
                | alphaev6[78] \
227
 
                | we32k | ns16k | clipper | i370 | sh | sh[34] \
228
 
                | powerpc | powerpcle \
229
 
                | 1750a | dsp16xx | pdp10 | pdp11 \
230
 
                | mips16 | mips64 | mipsel | mips64el \
231
 
                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
232
 
                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
233
 
                | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
234
 
                | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
235
 
                | v850 | c4x \
236
 
                | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
237
 
                | pj | pjl | h8500)
 
228
        1750a | 580 \
 
229
        | a29k \
 
230
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 
231
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
232
        | am33_2.0 \
 
233
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
234
        | c4x | clipper \
 
235
        | d10v | d30v | dlx | dsp16xx \
 
236
        | fr30 | frv \
 
237
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
238
        | i370 | i860 | i960 | ia64 \
 
239
        | ip2k | iq2000 \
 
240
        | m32r | m68000 | m68k | m88k | mcore \
 
241
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
242
        | mips16 \
 
243
        | mips64 | mips64el \
 
244
        | mips64vr | mips64vrel \
 
245
        | mips64orion | mips64orionel \
 
246
        | mips64vr4100 | mips64vr4100el \
 
247
        | mips64vr4300 | mips64vr4300el \
 
248
        | mips64vr5000 | mips64vr5000el \
 
249
        | mipsisa32 | mipsisa32el \
 
250
        | mipsisa32r2 | mipsisa32r2el \
 
251
        | mipsisa64 | mipsisa64el \
 
252
        | mipsisa64r2 | mipsisa64r2el \
 
253
        | mipsisa64sb1 | mipsisa64sb1el \
 
254
        | mipsisa64sr71k | mipsisa64sr71kel \
 
255
        | mipstx39 | mipstx39el \
 
256
        | mn10200 | mn10300 \
 
257
        | msp430 \
 
258
        | ns16k | ns32k \
 
259
        | openrisc | or32 \
 
260
        | pdp10 | pdp11 | pj | pjl \
 
261
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
262
        | pyramid \
 
263
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
264
        | sh64 | sh64le \
 
265
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
 
266
        | strongarm \
 
267
        | tahoe | thumb | tic4x | tic80 | tron \
 
268
        | v850 | v850e \
 
269
        | we32k \
 
270
        | x86 | xscale | xstormy16 | xtensa \
 
271
        | z8k)
238
272
                basic_machine=$basic_machine-unknown
239
273
                ;;
240
274
        m6811 | m68hc11 | m6812 | m68hc12)
242
276
                basic_machine=$basic_machine-unknown
243
277
                os=-none
244
278
                ;;
245
 
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
 
279
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
246
280
                ;;
247
281
 
248
282
        # We use `pc' rather than `unknown'
257
291
                exit 1
258
292
                ;;
259
293
        # Recognize the basic CPU types with company name.
260
 
        # FIXME: clean up the formatting here.
261
 
        vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
262
 
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
263
 
              | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
264
 
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
265
 
              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
266
 
              | xmp-* | ymp-* \
267
 
              | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
268
 
              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
269
 
              | hppa2.0n-* | hppa64-* \
270
 
              | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
271
 
              | alphaev6[78]-* \
272
 
              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
273
 
              | clipper-* | orion-* \
274
 
              | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
275
 
              | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
276
 
              | mips16-* | mips64-* | mipsel-* \
277
 
              | mips64el-* | mips64orion-* | mips64orionel-* \
278
 
              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
279
 
              | mipstx39-* | mipstx39el-* | mcore-* \
280
 
              | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
281
 
              | [cjt]90-* \
282
 
              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
283
 
              | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
284
 
              | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
 
294
        580-* \
 
295
        | a29k-* \
 
296
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
 
297
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 
298
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
299
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
 
300
        | avr-* \
 
301
        | bs2000-* \
 
302
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
303
        | clipper-* | cydra-* \
 
304
        | d10v-* | d30v-* | dlx-* \
 
305
        | elxsi-* \
 
306
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
307
        | h8300-* | h8500-* \
 
308
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
309
        | i*86-* | i860-* | i960-* | ia64-* \
 
310
        | ip2k-* | iq2000-* \
 
311
        | m32r-* \
 
312
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 
313
        | m88110-* | m88k-* | mcore-* \
 
314
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
315
        | mips16-* \
 
316
        | mips64-* | mips64el-* \
 
317
        | mips64vr-* | mips64vrel-* \
 
318
        | mips64orion-* | mips64orionel-* \
 
319
        | mips64vr4100-* | mips64vr4100el-* \
 
320
        | mips64vr4300-* | mips64vr4300el-* \
 
321
        | mips64vr5000-* | mips64vr5000el-* \
 
322
        | mipsisa32-* | mipsisa32el-* \
 
323
        | mipsisa32r2-* | mipsisa32r2el-* \
 
324
        | mipsisa64-* | mipsisa64el-* \
 
325
        | mipsisa64r2-* | mipsisa64r2el-* \
 
326
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
327
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
328
        | mipstx39-* | mipstx39el-* \
 
329
        | msp430-* \
 
330
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
331
        | orion-* \
 
332
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
 
333
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
334
        | pyramid-* \
 
335
        | romp-* | rs6000-* \
 
336
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
337
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
338
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
 
339
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
340
        | tahoe-* | thumb-* \
 
341
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
342
        | tron-* \
 
343
        | v850-* | v850e-* | vax-* \
 
344
        | we32k-* \
 
345
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
 
346
        | xtensa-* \
 
347
        | ymp-* \
 
348
        | z8k-*)
285
349
                ;;
286
350
        # Recognize the various machine names and aliases which stand
287
351
        # for a CPU type and a company and sometimes even an OS.
313
377
                basic_machine=a29k-none
314
378
                os=-bsd
315
379
                ;;
 
380
        amd64)
 
381
                basic_machine=x86_64-pc
 
382
                ;;
 
383
        amd64-*)
 
384
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
385
                ;;
316
386
        amdahl)
317
387
                basic_machine=580-amdahl
318
388
                os=-sysv
344
414
                basic_machine=ns32k-sequent
345
415
                os=-dynix
346
416
                ;;
 
417
        c90)
 
418
                basic_machine=c90-cray
 
419
                os=-unicos
 
420
                ;;
347
421
        convex-c1)
348
422
                basic_machine=c1-convex
349
423
                os=-bsd
364
438
                basic_machine=c38-convex
365
439
                os=-bsd
366
440
                ;;
367
 
        cray | ymp)
368
 
                basic_machine=ymp-cray
369
 
                os=-unicos
370
 
                ;;
371
 
        cray2)
372
 
                basic_machine=cray2-cray
373
 
                os=-unicos
374
 
                ;;
375
 
        [cjt]90)
376
 
                basic_machine=${basic_machine}-cray
 
441
        cray | j90)
 
442
                basic_machine=j90-cray
377
443
                os=-unicos
378
444
                ;;
379
445
        crds | unos)
388
454
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
389
455
                basic_machine=mips-dec
390
456
                ;;
 
457
        decsystem10* | dec10*)
 
458
                basic_machine=pdp10-dec
 
459
                os=-tops10
 
460
                ;;
 
461
        decsystem20* | dec20*)
 
462
                basic_machine=pdp10-dec
 
463
                os=-tops20
 
464
                ;;
391
465
        delta | 3300 | motorola-3300 | motorola-delta \
392
466
              | 3300-motorola | delta-motorola)
393
467
                basic_machine=m68k-motorola
568
642
                basic_machine=m68k-atari
569
643
                os=-mint
570
644
                ;;
571
 
        mipsel*-linux*)
572
 
                basic_machine=mipsel-unknown
573
 
                os=-linux-gnu
574
 
                ;;
575
 
        mips*-linux*)
576
 
                basic_machine=mips-unknown
577
 
                os=-linux-gnu
578
 
                ;;
579
645
        mips3*-*)
580
646
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
581
647
                ;;
590
656
                basic_machine=m68k-rom68k
591
657
                os=-coff
592
658
                ;;
 
659
        morphos)
 
660
                basic_machine=powerpc-unknown
 
661
                os=-morphos
 
662
                ;;
593
663
        msdos)
594
664
                basic_machine=i386-pc
595
665
                os=-msdos
662
732
        np1)
663
733
                basic_machine=np1-gould
664
734
                ;;
 
735
        nv1)
 
736
                basic_machine=nv1-cray
 
737
                os=-unicosmp
 
738
                ;;
665
739
        nsr-tandem)
666
740
                basic_machine=nsr-tandem
667
741
                ;;
669
743
                basic_machine=hppa1.1-oki
670
744
                os=-proelf
671
745
                ;;
 
746
        or32 | or32-*)
 
747
                basic_machine=or32-unknown
 
748
                os=-coff
 
749
                ;;
 
750
        os400)
 
751
                basic_machine=powerpc-ibm
 
752
                os=-os400
 
753
                ;;
672
754
        OSE68000 | ose68000)
673
755
                basic_machine=m68000-ericsson
674
756
                os=-ose
691
773
        pbb)
692
774
                basic_machine=m68k-tti
693
775
                ;;
694
 
        pc532 | pc532-*)
 
776
        pc532 | pc532-*)
695
777
                basic_machine=ns32k-pc532
696
778
                ;;
697
 
        pentium | p5 | k5 | k6 | nexgen)
 
779
        pentium | p5 | k5 | k6 | nexgen | viac3)
698
780
                basic_machine=i586-pc
699
781
                ;;
700
 
        pentiumpro | p6 | 6x86 | athlon)
701
 
                basic_machine=i686-pc
702
 
                ;;
703
 
        pentiumii | pentium2)
704
 
                basic_machine=i686-pc
705
 
                ;;
706
 
        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
 
782
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
783
                basic_machine=i686-pc
 
784
                ;;
 
785
        pentiumii | pentium2 | pentiumiii | pentium3)
 
786
                basic_machine=i686-pc
 
787
                ;;
 
788
        pentium4)
 
789
                basic_machine=i786-pc
 
790
                ;;
 
791
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
707
792
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
708
793
                ;;
709
794
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
710
795
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
711
796
                ;;
712
 
        pentiumii-* | pentium2-*)
 
797
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
713
798
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
714
799
                ;;
 
800
        pentium4-*)
 
801
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
802
                ;;
715
803
        pn)
716
804
                basic_machine=pn-gould
717
805
                ;;
718
806
        power)  basic_machine=power-ibm
719
807
                ;;
720
808
        ppc)    basic_machine=powerpc-unknown
721
 
                ;;
 
809
                ;;
722
810
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
723
811
                ;;
724
812
        ppcle | powerpclittle | ppc-le | powerpc-little)
725
813
                basic_machine=powerpcle-unknown
726
 
                ;;
 
814
                ;;
727
815
        ppcle-* | powerpclittle-*)
728
816
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
729
817
                ;;
 
818
        ppc64)  basic_machine=powerpc64-unknown
 
819
                ;;
 
820
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
821
                ;;
 
822
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
 
823
                basic_machine=powerpc64le-unknown
 
824
                ;;
 
825
        ppc64le-* | powerpc64little-*)
 
826
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
 
827
                ;;
730
828
        ps2)
731
829
                basic_machine=i386-ibm
732
830
                ;;
744
842
        rtpc | rtpc-*)
745
843
                basic_machine=romp-ibm
746
844
                ;;
 
845
        s390 | s390-*)
 
846
                basic_machine=s390-ibm
 
847
                ;;
 
848
        s390x | s390x-*)
 
849
                basic_machine=s390x-ibm
 
850
                ;;
747
851
        sa29200)
748
852
                basic_machine=a29k-amd
749
853
                os=-udi
750
854
                ;;
 
855
        sb1)
 
856
                basic_machine=mipsisa64sb1-unknown
 
857
                ;;
 
858
        sb1el)
 
859
                basic_machine=mipsisa64sb1el-unknown
 
860
                ;;
 
861
        sei)
 
862
                basic_machine=mips-sei
 
863
                os=-seiux
 
864
                ;;
751
865
        sequent)
752
866
                basic_machine=i386-sequent
753
867
                ;;
755
869
                basic_machine=sh-hitachi
756
870
                os=-hms
757
871
                ;;
758
 
        sparclite-wrs)
 
872
        sh64)
 
873
                basic_machine=sh64-unknown
 
874
                ;;
 
875
        sparclite-wrs | simso-wrs)
759
876
                basic_machine=sparclite-wrs
760
877
                os=-vxworks
761
878
                ;;
822
939
                os=-dynix
823
940
                ;;
824
941
        t3e)
825
 
                basic_machine=t3e-cray
 
942
                basic_machine=alphaev5-cray
 
943
                os=-unicos
 
944
                ;;
 
945
        t90)
 
946
                basic_machine=t90-cray
826
947
                os=-unicos
827
948
                ;;
828
949
        tic54x | c54x*)
829
950
                basic_machine=tic54x-unknown
830
951
                os=-coff
831
952
                ;;
 
953
        tic55x | c55x*)
 
954
                basic_machine=tic55x-unknown
 
955
                os=-coff
 
956
                ;;
 
957
        tic6x | c6x*)
 
958
                basic_machine=tic6x-unknown
 
959
                os=-coff
 
960
                ;;
832
961
        tx39)
833
962
                basic_machine=mipstx39-unknown
834
963
                ;;
835
964
        tx39el)
836
965
                basic_machine=mipstx39el-unknown
837
966
                ;;
 
967
        toad1)
 
968
                basic_machine=pdp10-xkl
 
969
                os=-tops20
 
970
                ;;
838
971
        tower | tower-32)
839
972
                basic_machine=m68k-ncr
840
973
                ;;
 
974
        tpf)
 
975
                basic_machine=s390x-ibm
 
976
                os=-tpf
 
977
                ;;
841
978
        udi29k)
842
979
                basic_machine=a29k-amd
843
980
                os=-udi
859
996
                os=-vms
860
997
                ;;
861
998
        vpp*|vx|vx-*)
862
 
               basic_machine=f301-fujitsu
863
 
               ;;
 
999
                basic_machine=f301-fujitsu
 
1000
                ;;
864
1001
        vxworks960)
865
1002
                basic_machine=i960-wrs
866
1003
                os=-vxworks
881
1018
                basic_machine=hppa1.1-winbond
882
1019
                os=-proelf
883
1020
                ;;
884
 
        xmp)
885
 
                basic_machine=xmp-cray
886
 
                os=-unicos
887
 
                ;;
888
 
        xps | xps100)
 
1021
        xps | xps100)
889
1022
                basic_machine=xps100-honeywell
890
1023
                ;;
 
1024
        ymp)
 
1025
                basic_machine=ymp-cray
 
1026
                os=-unicos
 
1027
                ;;
891
1028
        z8k-*-coff)
892
1029
                basic_machine=z8k-unknown
893
1030
                os=-sim
908
1045
        op60c)
909
1046
                basic_machine=hppa1.1-oki
910
1047
                ;;
911
 
        mips)
912
 
                if [ x$os = x-linux-gnu ]; then
913
 
                        basic_machine=mips-unknown
914
 
                else
915
 
                        basic_machine=mips-mips
916
 
                fi
917
 
                ;;
918
1048
        romp)
919
1049
                basic_machine=romp-ibm
920
1050
                ;;
934
1064
        we32k)
935
1065
                basic_machine=we32k-att
936
1066
                ;;
937
 
        sh3 | sh4)
 
1067
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
938
1068
                basic_machine=sh-unknown
939
1069
                ;;
 
1070
        sh64)
 
1071
                basic_machine=sh64-unknown
 
1072
                ;;
940
1073
        sparc | sparcv9 | sparcv9b)
941
1074
                basic_machine=sparc-sun
942
1075
                ;;
943
 
        cydra)
 
1076
        cydra)
944
1077
                basic_machine=cydra-cydrome
945
1078
                ;;
946
1079
        orion)
955
1088
        pmac | pmac-mpw)
956
1089
                basic_machine=powerpc-apple
957
1090
                ;;
958
 
        c4x*)
959
 
                basic_machine=c4x-none
960
 
                os=-coff
961
 
                ;;
962
1091
        *-unknown)
963
1092
                # Make sure to match an already-canonicalized machine name.
964
1093
                ;;
1014
1143
              | -aos* \
1015
1144
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1016
1145
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1017
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
 
1146
              | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
1018
1147
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1019
1148
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1020
1149
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 
1150
              | -chorusos* | -chorusrdb* \
1021
1151
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1022
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1023
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1152
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1153
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1024
1154
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1025
 
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
 
1155
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
1156
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
1157
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1158
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1026
1159
        # Remember, each alternative MUST END IN *, to match a version number.
1027
1160
                ;;
1028
1161
        -qnx*)
1034
1167
                        ;;
1035
1168
                esac
1036
1169
                ;;
 
1170
        -nto-qnx*)
 
1171
                ;;
1037
1172
        -nto*)
1038
 
                os=-nto-qnx
 
1173
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1039
1174
                ;;
1040
1175
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1041
1176
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1044
1179
        -mac*)
1045
1180
                os=`echo $os | sed -e 's|mac|macos|'`
1046
1181
                ;;
 
1182
        -linux-dietlibc)
 
1183
                os=-linux-dietlibc
 
1184
                ;;
1047
1185
        -linux*)
1048
1186
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1049
1187
                ;;
1056
1194
        -opened*)
1057
1195
                os=-openedition
1058
1196
                ;;
 
1197
        -os400*)
 
1198
                os=-os400
 
1199
                ;;
1059
1200
        -wince*)
1060
1201
                os=-wince
1061
1202
                ;;
1074
1215
        -acis*)
1075
1216
                os=-aos
1076
1217
                ;;
 
1218
        -atheos*)
 
1219
                os=-atheos
 
1220
                ;;
 
1221
        -syllable*)
 
1222
                os=-syllable
 
1223
                ;;
1077
1224
        -386bsd)
1078
1225
                os=-bsd
1079
1226
                ;;
1080
1227
        -ctix* | -uts*)
1081
1228
                os=-sysv
1082
1229
                ;;
 
1230
        -nova*)
 
1231
                os=-rtmk-nova
 
1232
                ;;
1083
1233
        -ns2 )
1084
 
                os=-nextstep2
 
1234
                os=-nextstep2
1085
1235
                ;;
1086
1236
        -nsk*)
1087
1237
                os=-nsk
1093
1243
        -sinix*)
1094
1244
                os=-sysv4
1095
1245
                ;;
 
1246
        -tpf*)
 
1247
                os=-tpf
 
1248
                ;;
1096
1249
        -triton*)
1097
1250
                os=-sysv3
1098
1251
                ;;
1120
1273
        -xenix)
1121
1274
                os=-xenix
1122
1275
                ;;
1123
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1124
 
                os=-mint
 
1276
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1277
                os=-mint
 
1278
                ;;
 
1279
        -aros*)
 
1280
                os=-aros
 
1281
                ;;
 
1282
        -kaos*)
 
1283
                os=-kaos
1125
1284
                ;;
1126
1285
        -none)
1127
1286
                ;;
1154
1313
        arm*-semi)
1155
1314
                os=-aout
1156
1315
                ;;
 
1316
    c4x-* | tic4x-*)
 
1317
        os=-coff
 
1318
        ;;
 
1319
        # This must come before the *-dec entry.
1157
1320
        pdp10-*)
1158
1321
                os=-tops20
1159
1322
                ;;
1160
 
        pdp11-*)
 
1323
        pdp11-*)
1161
1324
                os=-none
1162
1325
                ;;
1163
1326
        *-dec | vax-*)
1184
1347
        mips*-*)
1185
1348
                os=-elf
1186
1349
                ;;
 
1350
        or32-*)
 
1351
                os=-coff
 
1352
                ;;
1187
1353
        *-tti)  # must be before sparc entry or we get the wrong os.
1188
1354
                os=-sysv3
1189
1355
                ;;
1247
1413
        *-next)
1248
1414
                os=-nextstep3
1249
1415
                ;;
1250
 
        *-gould)
 
1416
        *-gould)
1251
1417
                os=-sysv
1252
1418
                ;;
1253
 
        *-highlevel)
 
1419
        *-highlevel)
1254
1420
                os=-bsd
1255
1421
                ;;
1256
1422
        *-encore)
1257
1423
                os=-bsd
1258
1424
                ;;
1259
 
        *-sgi)
 
1425
        *-sgi)
1260
1426
                os=-irix
1261
1427
                ;;
1262
 
        *-siemens)
 
1428
        *-siemens)
1263
1429
                os=-sysv4
1264
1430
                ;;
1265
1431
        *-masscomp)
1328
1494
                        -mvs* | -opened*)
1329
1495
                                vendor=ibm
1330
1496
                                ;;
 
1497
                        -os400*)
 
1498
                                vendor=ibm
 
1499
                                ;;
1331
1500
                        -ptx*)
1332
1501
                                vendor=sequent
1333
1502
                                ;;
1334
 
                        -vxsim* | -vxworks*)
 
1503
                        -tpf*)
 
1504
                                vendor=ibm
 
1505
                                ;;
 
1506
                        -vxsim* | -vxworks* | -windiss*)
1335
1507
                                vendor=wrs
1336
1508
                                ;;
1337
1509
                        -aux*)
1346
1518
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1347
1519
                                vendor=atari
1348
1520
                                ;;
 
1521
                        -vos*)
 
1522
                                vendor=stratus
 
1523
                                ;;
1349
1524
                esac
1350
1525
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1351
1526
                ;;