~ubuntu-branches/ubuntu/gutsy/trickle/gutsy

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Robert Lemmen
  • Date: 2003-10-23 00:53:35 UTC
  • Revision ID: james.westby@ubuntu.com-20031023005335-madily9tgs8mguai
Tags: 1.06-4
rebuild again since i386 was missed (darn)

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2002-02-22'
 
6
timestamp='2003-07-17'
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
118
118
# Here we must recognize all the valid KERNEL-OS combinations.
119
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
120
case $maybe_os in
121
 
  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
 
121
  nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122
122
    os=-$maybe_os
123
123
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
124
    ;;
228
228
        | a29k \
229
229
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
230
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
231
        | am33_2.0 \
231
232
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
232
233
        | c4x | clipper \
233
 
        | d10v | d30v | dsp16xx \
234
 
        | fr30 \
 
234
        | d10v | d30v | dlx | dsp16xx \
 
235
        | fr30 | frv \
235
236
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
237
        | i370 | i860 | i960 | ia64 \
 
238
        | ip2k | iq2000 \
237
239
        | m32r | m68000 | m68k | m88k | mcore \
238
 
        | mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
239
 
        | mips64vr4100 | mips64vr4100el | mips64vr4300 \
240
 
        | mips64vr4300el | mips64vr5000 | mips64vr5000el \
241
 
        | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
242
 
        | mipsisa32 \
 
240
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
241
        | mips16 \
 
242
        | mips64 | mips64el \
 
243
        | mips64vr | mips64vrel \
 
244
        | mips64orion | mips64orionel \
 
245
        | mips64vr4100 | mips64vr4100el \
 
246
        | mips64vr4300 | mips64vr4300el \
 
247
        | mips64vr5000 | mips64vr5000el \
 
248
        | mipsisa32 | mipsisa32el \
 
249
        | mipsisa32r2 | mipsisa32r2el \
 
250
        | mipsisa64 | mipsisa64el \
 
251
        | mipsisa64sb1 | mipsisa64sb1el \
 
252
        | mipsisa64sr71k | mipsisa64sr71kel \
 
253
        | mipstx39 | mipstx39el \
243
254
        | mn10200 | mn10300 \
 
255
        | msp430 \
244
256
        | ns16k | ns32k \
245
257
        | openrisc | or32 \
246
258
        | pdp10 | pdp11 | pj | pjl \
247
259
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
248
260
        | pyramid \
249
 
        | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
250
 
        | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
 
261
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
262
        | sh64 | sh64le \
 
263
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
251
264
        | strongarm \
252
 
        | tahoe | thumb | tic80 | tron \
 
265
        | tahoe | thumb | tic4x | tic80 | tron \
253
266
        | v850 | v850e \
254
267
        | we32k \
255
268
        | x86 | xscale | xstormy16 | xtensa \
281
294
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
282
295
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
283
296
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
284
 
        | arm-*  | armbe-* | armle-* | armv*-* \
 
297
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
285
298
        | avr-* \
286
299
        | bs2000-* \
287
 
        | c[123]* | c30-* | [cjt]90-* | c54x-* \
 
300
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
288
301
        | clipper-* | cydra-* \
289
 
        | d10v-* | d30v-* \
 
302
        | d10v-* | d30v-* | dlx-* \
290
303
        | elxsi-* \
291
 
        | f30[01]-* | f700-* | fr30-* | fx80-* \
 
304
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
292
305
        | h8300-* | h8500-* \
293
306
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
294
307
        | i*86-* | i860-* | i960-* | ia64-* \
 
308
        | ip2k-* | iq2000-* \
295
309
        | m32r-* \
296
310
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
297
311
        | m88110-* | m88k-* | mcore-* \
298
 
        | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
299
 
        | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
300
 
        | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
301
 
        | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
302
 
        | none-* | np1-* | ns16k-* | ns32k-* \
 
312
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
313
        | mips16-* \
 
314
        | mips64-* | mips64el-* \
 
315
        | mips64vr-* | mips64vrel-* \
 
316
        | mips64orion-* | mips64orionel-* \
 
317
        | mips64vr4100-* | mips64vr4100el-* \
 
318
        | mips64vr4300-* | mips64vr4300el-* \
 
319
        | mips64vr5000-* | mips64vr5000el-* \
 
320
        | mipsisa32-* | mipsisa32el-* \
 
321
        | mipsisa32r2-* | mipsisa32r2el-* \
 
322
        | mipsisa64-* | mipsisa64el-* \
 
323
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
324
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
325
        | mipstx39-* | mipstx39el-* \
 
326
        | msp430-* \
 
327
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
303
328
        | orion-* \
304
329
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
305
330
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
306
331
        | pyramid-* \
307
332
        | romp-* | rs6000-* \
308
 
        | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
309
 
        | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
 
333
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
334
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
335
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
310
336
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
311
 
        | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
 
337
        | tahoe-* | thumb-* \
 
338
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
339
        | tron-* \
312
340
        | v850-* | v850e-* | vax-* \
313
341
        | we32k-* \
314
342
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
346
374
                basic_machine=a29k-none
347
375
                os=-bsd
348
376
                ;;
 
377
        amd64)
 
378
                basic_machine=x86_64-pc
 
379
                ;;
349
380
        amdahl)
350
381
                basic_machine=580-amdahl
351
382
                os=-sysv
695
726
        np1)
696
727
                basic_machine=np1-gould
697
728
                ;;
 
729
        nv1)
 
730
                basic_machine=nv1-cray
 
731
                os=-unicosmp
 
732
                ;;
698
733
        nsr-tandem)
699
734
                basic_machine=nsr-tandem
700
735
                ;;
728
763
        pbb)
729
764
                basic_machine=m68k-tti
730
765
                ;;
731
 
        pc532 | pc532-*)
 
766
        pc532 | pc532-*)
732
767
                basic_machine=ns32k-pc532
733
768
                ;;
734
769
        pentium | p5 | k5 | k6 | nexgen | viac3)
735
770
                basic_machine=i586-pc
736
771
                ;;
737
 
        pentiumpro | p6 | 6x86 | athlon)
738
 
                basic_machine=i686-pc
739
 
                ;;
740
 
        pentiumii | pentium2)
741
 
                basic_machine=i686-pc
 
772
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
773
                basic_machine=i686-pc
 
774
                ;;
 
775
        pentiumii | pentium2 | pentiumiii | pentium3)
 
776
                basic_machine=i686-pc
 
777
                ;;
 
778
        pentium4)
 
779
                basic_machine=i786-pc
742
780
                ;;
743
781
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
744
782
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
746
784
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
747
785
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
748
786
                ;;
749
 
        pentiumii-* | pentium2-*)
 
787
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
750
788
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
751
789
                ;;
 
790
        pentium4-*)
 
791
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
792
                ;;
752
793
        pn)
753
794
                basic_machine=pn-gould
754
795
                ;;
755
796
        power)  basic_machine=power-ibm
756
797
                ;;
757
798
        ppc)    basic_machine=powerpc-unknown
758
 
                ;;
 
799
                ;;
759
800
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
760
801
                ;;
761
802
        ppcle | powerpclittle | ppc-le | powerpc-little)
762
803
                basic_machine=powerpcle-unknown
763
 
                ;;
 
804
                ;;
764
805
        ppcle-* | powerpclittle-*)
765
806
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
766
807
                ;;
767
808
        ppc64)  basic_machine=powerpc64-unknown
768
 
                ;;
 
809
                ;;
769
810
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
770
811
                ;;
771
812
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
772
813
                basic_machine=powerpc64le-unknown
773
 
                ;;
 
814
                ;;
774
815
        ppc64le-* | powerpc64little-*)
775
816
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
776
817
                ;;
801
842
                basic_machine=a29k-amd
802
843
                os=-udi
803
844
                ;;
 
845
        sb1)
 
846
                basic_machine=mipsisa64sb1-unknown
 
847
                ;;
 
848
        sb1el)
 
849
                basic_machine=mipsisa64sb1el-unknown
 
850
                ;;
 
851
        sei)
 
852
                basic_machine=mips-sei
 
853
                os=-seiux
 
854
                ;;
804
855
        sequent)
805
856
                basic_machine=i386-sequent
806
857
                ;;
808
859
                basic_machine=sh-hitachi
809
860
                os=-hms
810
861
                ;;
 
862
        sh64)
 
863
                basic_machine=sh64-unknown
 
864
                ;;
811
865
        sparclite-wrs | simso-wrs)
812
866
                basic_machine=sparclite-wrs
813
867
                os=-vxworks
866
920
        sun386 | sun386i | roadrunner)
867
921
                basic_machine=i386-sun
868
922
                ;;
869
 
        sv1)
 
923
        sv1)
870
924
                basic_machine=sv1-cray
871
925
                os=-unicos
872
926
                ;;
874
928
                basic_machine=i386-sequent
875
929
                os=-dynix
876
930
                ;;
877
 
        t3d)
878
 
                basic_machine=alpha-cray
879
 
                os=-unicos
880
 
                ;;
881
931
        t3e)
882
932
                basic_machine=alphaev5-cray
883
933
                os=-unicos
890
940
                basic_machine=tic54x-unknown
891
941
                os=-coff
892
942
                ;;
 
943
        tic55x | c55x*)
 
944
                basic_machine=tic55x-unknown
 
945
                os=-coff
 
946
                ;;
 
947
        tic6x | c6x*)
 
948
                basic_machine=tic6x-unknown
 
949
                os=-coff
 
950
                ;;
893
951
        tx39)
894
952
                basic_machine=mipstx39-unknown
895
953
                ;;
924
982
                os=-vms
925
983
                ;;
926
984
        vpp*|vx|vx-*)
927
 
               basic_machine=f301-fujitsu
928
 
               ;;
 
985
                basic_machine=f301-fujitsu
 
986
                ;;
929
987
        vxworks960)
930
988
                basic_machine=i960-wrs
931
989
                os=-vxworks
946
1004
                basic_machine=hppa1.1-winbond
947
1005
                os=-proelf
948
1006
                ;;
949
 
        windows32)
950
 
                basic_machine=i386-pc
951
 
                os=-windows32-msvcrt
952
 
                ;;
953
 
        xps | xps100)
 
1007
        xps | xps100)
954
1008
                basic_machine=xps100-honeywell
955
1009
                ;;
956
1010
        ymp)
996
1050
        we32k)
997
1051
                basic_machine=we32k-att
998
1052
                ;;
999
 
        sh3 | sh4 | sh3eb | sh4eb)
 
1053
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1000
1054
                basic_machine=sh-unknown
1001
1055
                ;;
1002
1056
        sh64)
1005
1059
        sparc | sparcv9 | sparcv9b)
1006
1060
                basic_machine=sparc-sun
1007
1061
                ;;
1008
 
        cydra)
 
1062
        cydra)
1009
1063
                basic_machine=cydra-cydrome
1010
1064
                ;;
1011
1065
        orion)
1020
1074
        pmac | pmac-mpw)
1021
1075
                basic_machine=powerpc-apple
1022
1076
                ;;
1023
 
        c4x*)
1024
 
                basic_machine=c4x-none
1025
 
                os=-coff
1026
 
                ;;
1027
1077
        *-unknown)
1028
1078
                # Make sure to match an already-canonicalized machine name.
1029
1079
                ;;
1079
1129
              | -aos* \
1080
1130
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1081
1131
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1082
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
 
1132
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
1083
1133
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1084
1134
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1085
1135
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1086
1136
              | -chorusos* | -chorusrdb* \
1087
1137
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1088
1138
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1089
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1139
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1090
1140
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1091
1141
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1092
1142
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1093
 
              | -morphos* | -superux* | -rtmk* | -rtmk-nova*)
 
1143
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1144
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
1094
1145
        # Remember, each alternative MUST END IN *, to match a version number.
1095
1146
                ;;
1096
1147
        -qnx*)
1102
1153
                        ;;
1103
1154
                esac
1104
1155
                ;;
 
1156
        -nto-qnx*)
 
1157
                ;;
1105
1158
        -nto*)
1106
 
                os=-nto-qnx
 
1159
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1107
1160
                ;;
1108
1161
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1109
1162
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1155
1208
                os=-rtmk-nova
1156
1209
                ;;
1157
1210
        -ns2 )
1158
 
                os=-nextstep2
 
1211
                os=-nextstep2
1159
1212
                ;;
1160
1213
        -nsk*)
1161
1214
                os=-nsk
1194
1247
        -xenix)
1195
1248
                os=-xenix
1196
1249
                ;;
1197
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1198
 
                os=-mint
 
1250
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1251
                os=-mint
 
1252
                ;;
 
1253
        -aros*)
 
1254
                os=-aros
 
1255
                ;;
 
1256
        -kaos*)
 
1257
                os=-kaos
1199
1258
                ;;
1200
1259
        -none)
1201
1260
                ;;
1228
1287
        arm*-semi)
1229
1288
                os=-aout
1230
1289
                ;;
 
1290
    c4x-* | tic4x-*)
 
1291
        os=-coff
 
1292
        ;;
1231
1293
        # This must come before the *-dec entry.
1232
1294
        pdp10-*)
1233
1295
                os=-tops20
1234
1296
                ;;
1235
 
        pdp11-*)
 
1297
        pdp11-*)
1236
1298
                os=-none
1237
1299
                ;;
1238
1300
        *-dec | vax-*)
1325
1387
        *-next)
1326
1388
                os=-nextstep3
1327
1389
                ;;
1328
 
        *-gould)
 
1390
        *-gould)
1329
1391
                os=-sysv
1330
1392
                ;;
1331
 
        *-highlevel)
 
1393
        *-highlevel)
1332
1394
                os=-bsd
1333
1395
                ;;
1334
1396
        *-encore)
1335
1397
                os=-bsd
1336
1398
                ;;
1337
 
        *-sgi)
 
1399
        *-sgi)
1338
1400
                os=-irix
1339
1401
                ;;
1340
 
        *-siemens)
 
1402
        *-siemens)
1341
1403
                os=-sysv4
1342
1404
                ;;
1343
1405
        *-masscomp)
1409
1471
                        -ptx*)
1410
1472
                                vendor=sequent
1411
1473
                                ;;
1412
 
                        -vxsim* | -vxworks*)
 
1474
                        -vxsim* | -vxworks* | -windiss*)
1413
1475
                                vendor=wrs
1414
1476
                                ;;
1415
1477
                        -aux*)