~ubuntu-branches/ubuntu/trusty/fl-cow/trusty

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Robert Collins
  • Date: 2005-10-21 10:20:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051021102003-ctyjlxxrxelok5gt
Tags: 0.6-1
New upstream, fixes FTBFS on alpha.

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2003-02-03'
 
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
70
70
version="\
71
71
GNU config.sub ($timestamp)
72
72
 
73
 
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
74
74
Free Software Foundation, Inc.
75
75
 
76
76
This is free software; see the source for copying conditions.  There is NO
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* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
 
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*)
122
123
    os=-$maybe_os
123
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
125
    ;;
144
145
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145
146
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146
147
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147
 
        -apple | -axis)
 
148
        -apple | -axis | -knuth | -cray)
148
149
                os=
149
150
                basic_machine=$1
150
151
                ;;
228
229
        | a29k \
229
230
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
231
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
232
        | am33_2.0 \
231
233
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
232
 
        | clipper \
 
234
        | bfin \
 
235
        | c4x | clipper \
233
236
        | d10v | d30v | dlx | dsp16xx \
234
237
        | fr30 | frv \
235
238
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
239
        | i370 | i860 | i960 | ia64 \
237
 
        | ip2k \
238
 
        | m32r | m68000 | m68k | m88k | mcore \
 
240
        | ip2k | iq2000 \
 
241
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
239
242
        | mips | mipsbe | mipseb | mipsel | mipsle \
240
243
        | mips16 \
241
244
        | mips64 | mips64el \
247
250
        | mipsisa32 | mipsisa32el \
248
251
        | mipsisa32r2 | mipsisa32r2el \
249
252
        | mipsisa64 | mipsisa64el \
 
253
        | mipsisa64r2 | mipsisa64r2el \
250
254
        | mipsisa64sb1 | mipsisa64sb1el \
251
255
        | mipsisa64sr71k | mipsisa64sr71kel \
252
256
        | mipstx39 | mipstx39el \
259
263
        | pyramid \
260
264
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
261
265
        | sh64 | sh64le \
262
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
 
266
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
 
267
        | sparcv8 | sparcv9 | sparcv9b \
263
268
        | strongarm \
264
 
        | tahoe | thumb | tic80 | tron \
 
269
        | tahoe | thumb | tic4x | tic80 | tron \
265
270
        | v850 | v850e \
266
271
        | we32k \
267
 
        | x86 | xscale | xstormy16 | xtensa \
 
272
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
268
273
        | z8k)
269
274
                basic_machine=$basic_machine-unknown
270
275
                ;;
295
300
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
296
301
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
297
302
        | avr-* \
298
 
        | bs2000-* \
 
303
        | bfin-* | bs2000-* \
299
304
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
300
 
        | clipper-* | cydra-* \
 
305
        | clipper-* | craynv-* | cydra-* \
301
306
        | d10v-* | d30v-* | dlx-* \
302
307
        | elxsi-* \
303
308
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
304
309
        | h8300-* | h8500-* \
305
310
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
306
311
        | i*86-* | i860-* | i960-* | ia64-* \
307
 
        | ip2k-* \
308
 
        | m32r-* \
 
312
        | ip2k-* | iq2000-* \
 
313
        | m32r-* | m32rle-* \
309
314
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
310
 
        | m88110-* | m88k-* | mcore-* \
 
315
        | m88110-* | m88k-* | maxq-* | mcore-* \
311
316
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
312
317
        | mips16-* \
313
318
        | mips64-* | mips64el-* \
319
324
        | mipsisa32-* | mipsisa32el-* \
320
325
        | mipsisa32r2-* | mipsisa32r2el-* \
321
326
        | mipsisa64-* | mipsisa64el-* \
 
327
        | mipsisa64r2-* | mipsisa64r2el-* \
322
328
        | mipsisa64sb1-* | mipsisa64sb1el-* \
323
329
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
324
330
        | mipstx39-* | mipstx39el-* \
 
331
        | mmix-* \
325
332
        | msp430-* \
326
 
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
333
        | none-* | np1-* | ns16k-* | ns32k-* \
327
334
        | orion-* \
328
335
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
329
336
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
331
338
        | romp-* | rs6000-* \
332
339
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
333
340
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
334
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
335
 
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
341
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
342
        | sparclite-* \
 
343
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
336
344
        | tahoe-* | thumb-* \
337
345
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
338
346
        | tron-* \
339
347
        | v850-* | v850e-* | vax-* \
340
348
        | we32k-* \
341
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
342
 
        | xtensa-* \
 
349
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
 
350
        | xstormy16-* | xtensa-* \
343
351
        | ymp-* \
344
352
        | z8k-*)
345
353
                ;;
359
367
                basic_machine=a29k-amd
360
368
                os=-udi
361
369
                ;;
 
370
        abacus)
 
371
                basic_machine=abacus-unknown
 
372
                ;;
362
373
        adobe68k)
363
374
                basic_machine=m68010-adobe
364
375
                os=-scout
373
384
                basic_machine=a29k-none
374
385
                os=-bsd
375
386
                ;;
 
387
        amd64)
 
388
                basic_machine=x86_64-pc
 
389
                ;;
 
390
        amd64-*)
 
391
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
392
                ;;
376
393
        amdahl)
377
394
                basic_machine=580-amdahl
378
395
                os=-sysv
432
449
                basic_machine=j90-cray
433
450
                os=-unicos
434
451
                ;;
 
452
        craynv)
 
453
                basic_machine=craynv-cray
 
454
                os=-unicosmp
 
455
                ;;
 
456
        cr16c)
 
457
                basic_machine=cr16c-unknown
 
458
                os=-elf
 
459
                ;;
435
460
        crds | unos)
436
461
                basic_machine=m68k-crds
437
462
                ;;
 
463
        crisv32 | crisv32-* | etraxfs*)
 
464
                basic_machine=crisv32-axis
 
465
                ;;
438
466
        cris | cris-* | etrax*)
439
467
                basic_machine=cris-axis
440
468
                ;;
 
469
        crx)
 
470
                basic_machine=crx-unknown
 
471
                os=-elf
 
472
                ;;
441
473
        da30 | da30-*)
442
474
                basic_machine=m68k-da30
443
475
                ;;
460
492
                basic_machine=m88k-motorola
461
493
                os=-sysv3
462
494
                ;;
 
495
        djgpp)
 
496
                basic_machine=i586-pc
 
497
                os=-msdosdjgpp
 
498
                ;;
463
499
        dpx20 | dpx20-*)
464
500
                basic_machine=rs6000-bull
465
501
                os=-bosx
638
674
        mips3*)
639
675
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
640
676
                ;;
641
 
        mmix*)
642
 
                basic_machine=mmix-knuth
643
 
                os=-mmixware
644
 
                ;;
645
677
        monitor)
646
678
                basic_machine=m68k-rom68k
647
679
                os=-coff
722
754
        np1)
723
755
                basic_machine=np1-gould
724
756
                ;;
725
 
        nv1)
726
 
                basic_machine=nv1-cray
727
 
                os=-unicosmp
728
 
                ;;
729
757
        nsr-tandem)
730
758
                basic_machine=nsr-tandem
731
759
                ;;
737
765
                basic_machine=or32-unknown
738
766
                os=-coff
739
767
                ;;
 
768
        os400)
 
769
                basic_machine=powerpc-ibm
 
770
                os=-os400
 
771
                ;;
740
772
        OSE68000 | ose68000)
741
773
                basic_machine=m68000-ericsson
742
774
                os=-ose
768
800
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
769
801
                basic_machine=i686-pc
770
802
                ;;
771
 
        pentiumii | pentium2)
 
803
        pentiumii | pentium2 | pentiumiii | pentium3)
772
804
                basic_machine=i686-pc
773
805
                ;;
 
806
        pentium4)
 
807
                basic_machine=i786-pc
 
808
                ;;
774
809
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
775
810
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
776
811
                ;;
777
812
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
778
813
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
779
814
                ;;
780
 
        pentiumii-* | pentium2-*)
 
815
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
781
816
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
782
817
                ;;
 
818
        pentium4-*)
 
819
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
820
                ;;
783
821
        pn)
784
822
                basic_machine=pn-gould
785
823
                ;;
838
876
        sb1el)
839
877
                basic_machine=mipsisa64sb1el-unknown
840
878
                ;;
 
879
        sei)
 
880
                basic_machine=mips-sei
 
881
                os=-seiux
 
882
                ;;
841
883
        sequent)
842
884
                basic_machine=i386-sequent
843
885
                ;;
845
887
                basic_machine=sh-hitachi
846
888
                os=-hms
847
889
                ;;
 
890
        sh64)
 
891
                basic_machine=sh64-unknown
 
892
                ;;
848
893
        sparclite-wrs | simso-wrs)
849
894
                basic_machine=sparclite-wrs
850
895
                os=-vxworks
919
964
                basic_machine=t90-cray
920
965
                os=-unicos
921
966
                ;;
922
 
        tic4x | c4x*)
923
 
                basic_machine=tic4x-unknown
924
 
                os=-coff
925
 
                ;;
926
967
        tic54x | c54x*)
927
968
                basic_machine=tic54x-unknown
928
969
                os=-coff
948
989
        tower | tower-32)
949
990
                basic_machine=m68k-ncr
950
991
                ;;
 
992
        tpf)
 
993
                basic_machine=s390x-ibm
 
994
                os=-tpf
 
995
                ;;
951
996
        udi29k)
952
997
                basic_machine=a29k-amd
953
998
                os=-udi
991
1036
                basic_machine=hppa1.1-winbond
992
1037
                os=-proelf
993
1038
                ;;
 
1039
        xbox)
 
1040
                basic_machine=i686-pc
 
1041
                os=-mingw32
 
1042
                ;;
994
1043
        xps | xps100)
995
1044
                basic_machine=xps100-honeywell
996
1045
                ;;
1021
1070
        romp)
1022
1071
                basic_machine=romp-ibm
1023
1072
                ;;
 
1073
        mmix)
 
1074
                basic_machine=mmix-knuth
 
1075
                ;;
1024
1076
        rs6000)
1025
1077
                basic_machine=rs6000-ibm
1026
1078
                ;;
1043
1095
        sh64)
1044
1096
                basic_machine=sh64-unknown
1045
1097
                ;;
1046
 
        sparc | sparcv9 | sparcv9b)
 
1098
        sparc | sparcv8 | sparcv9 | sparcv9b)
1047
1099
                basic_machine=sparc-sun
1048
1100
                ;;
1049
1101
        cydra)
1116
1168
              | -aos* \
1117
1169
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1118
1170
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1119
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1120
 
              | -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* \
1121
1174
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1122
1175
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1123
1176
              | -chorusos* | -chorusrdb* \
1124
1177
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1125
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1178
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1126
1179
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1127
1180
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1128
1181
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1129
1182
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1130
1183
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1131
 
              | -powermax* | -dnix* | -microbsd*)
 
1184
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1132
1185
        # Remember, each alternative MUST END IN *, to match a version number.
1133
1186
                ;;
1134
1187
        -qnx*)
1152
1205
        -mac*)
1153
1206
                os=`echo $os | sed -e 's|mac|macos|'`
1154
1207
                ;;
 
1208
        -linux-dietlibc)
 
1209
                os=-linux-dietlibc
 
1210
                ;;
1155
1211
        -linux*)
1156
1212
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1157
1213
                ;;
1164
1220
        -opened*)
1165
1221
                os=-openedition
1166
1222
                ;;
 
1223
        -os400*)
 
1224
                os=-os400
 
1225
                ;;
1167
1226
        -wince*)
1168
1227
                os=-wince
1169
1228
                ;;
1185
1244
        -atheos*)
1186
1245
                os=-atheos
1187
1246
                ;;
 
1247
        -syllable*)
 
1248
                os=-syllable
 
1249
                ;;
1188
1250
        -386bsd)
1189
1251
                os=-bsd
1190
1252
                ;;
1207
1269
        -sinix*)
1208
1270
                os=-sysv4
1209
1271
                ;;
 
1272
        -tpf*)
 
1273
                os=-tpf
 
1274
                ;;
1210
1275
        -triton*)
1211
1276
                os=-sysv3
1212
1277
                ;;
1243
1308
        -kaos*)
1244
1309
                os=-kaos
1245
1310
                ;;
 
1311
        -zvmoe)
 
1312
                os=-zvmoe
 
1313
                ;;
1246
1314
        -none)
1247
1315
                ;;
1248
1316
        *)
1274
1342
        arm*-semi)
1275
1343
                os=-aout
1276
1344
                ;;
 
1345
    c4x-* | tic4x-*)
 
1346
        os=-coff
 
1347
        ;;
1277
1348
        # This must come before the *-dec entry.
1278
1349
        pdp10-*)
1279
1350
                os=-tops20
1320
1391
        *-ibm)
1321
1392
                os=-aix
1322
1393
                ;;
 
1394
        *-knuth)
 
1395
                os=-mmixware
 
1396
                ;;
1323
1397
        *-wec)
1324
1398
                os=-proelf
1325
1399
                ;;
1452
1526
                        -mvs* | -opened*)
1453
1527
                                vendor=ibm
1454
1528
                                ;;
 
1529
                        -os400*)
 
1530
                                vendor=ibm
 
1531
                                ;;
1455
1532
                        -ptx*)
1456
1533
                                vendor=sequent
1457
1534
                                ;;
 
1535
                        -tpf*)
 
1536
                                vendor=ibm
 
1537
                                ;;
1458
1538
                        -vxsim* | -vxworks* | -windiss*)
1459
1539
                                vendor=wrs
1460
1540
                                ;;