~ubuntu-branches/ubuntu/precise/xterm/precise-updates

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-06-17 10:40:36 UTC
  • mfrom: (1.5.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20110617104036-bvog7d89aos7gu5s
Tags: upstream-270
ImportĀ upstreamĀ versionĀ 270

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Configuration validation subroutine script.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
 
#   Free Software Foundation, Inc.
 
5
#   2011 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-12-31'
 
7
timestamp='2011-04-01'
8
8
 
9
9
# This file is (in principle) common to ALL GNU software.
10
10
# The presence of a machine in this file suggests that SOME GNU software
76
76
GNU config.sub ($timestamp)
77
77
 
78
78
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
79
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
80
 
Software Foundation, Inc.
 
79
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
 
80
Free Software Foundation, Inc.
81
81
 
82
82
This is free software; see the source for copying conditions.  There is NO
83
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
124
124
# Here we must recognize all the valid KERNEL-OS combinations.
125
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
126
case $maybe_os in
127
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
128
 
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
127
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
 
128
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
129
  knetbsd*-gnu* | netbsd*-gnu* | \
129
130
  kopensolaris*-gnu* | \
130
131
  storm-chaos* | os2-emx* | rtmk-nova*)
131
132
    os=-$maybe_os
157
158
                os=
158
159
                basic_machine=$1
159
160
                ;;
160
 
        -bluegene*)
161
 
                os=-cnk
 
161
        -bluegene*)
 
162
                os=-cnk
162
163
                ;;
163
164
        -sim | -cisco | -oki | -wec | -winbond)
164
165
                os=
174
175
                os=-chorusos
175
176
                basic_machine=$1
176
177
                ;;
177
 
        -chorusrdb)
178
 
                os=-chorusrdb
 
178
        -chorusrdb)
 
179
                os=-chorusrdb
179
180
                basic_machine=$1
180
 
                ;;
 
181
                ;;
181
182
        -hiux*)
182
183
                os=-hiuxwe2
183
184
                ;;
282
283
        | moxie \
283
284
        | mt \
284
285
        | msp430 \
 
286
        | nds32 | nds32le | nds32be \
285
287
        | nios | nios2 \
286
288
        | ns16k | ns32k \
 
289
        | open8 \
287
290
        | or32 \
288
291
        | pdp10 | pdp11 | pj | pjl \
289
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
292
        | powerpc | powerpc64 | powerpc64le | powerpcle \
290
293
        | pyramid \
291
294
        | rx \
292
295
        | score \
294
297
        | sh64 | sh64le \
295
298
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
296
299
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
297
 
        | spu | strongarm \
298
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
300
        | spu \
 
301
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
299
302
        | ubicom32 \
300
303
        | v850 | v850e \
301
304
        | we32k \
302
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
305
        | x86 | xc16x | xstormy16 | xtensa \
303
306
        | z8k | z80)
304
307
                basic_machine=$basic_machine-unknown
305
308
                ;;
 
309
        c54x)
 
310
                basic_machine=tic54x-unknown
 
311
                ;;
 
312
        c55x)
 
313
                basic_machine=tic55x-unknown
 
314
                ;;
 
315
        c6x)
 
316
                basic_machine=tic6x-unknown
 
317
                ;;
306
318
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
307
319
                # Motorola 68HC11/12.
308
320
                basic_machine=$basic_machine-unknown
313
325
        ms1)
314
326
                basic_machine=mt-unknown
315
327
                ;;
316
 
 
 
328
        strongarm | thumb | xscale)
 
329
                basic_machine=arm-unknown
 
330
                ;;
 
331
        xscaleeb)
 
332
                basic_machine=armeb-unknown
 
333
                ;;
 
334
        xscaleel)
 
335
                basic_machine=armel-unknown
 
336
                ;;
317
337
        # We use `pc' rather than `unknown'
318
338
        # because (1) that's what they normally are, and
319
339
        # (2) the word "unknown" tends to confuse beginning users.
320
340
        i*86 | x86_64)
321
 
          basic_machine=$basic_machine-pc
322
 
          ;;
 
341
                basic_machine=$basic_machine-pc
 
342
                ;;
323
343
        # Object if more than one company name word.
324
344
        *-*-*)
325
345
                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
334
354
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
335
355
        | avr-* | avr32-* \
336
356
        | bfin-* | bs2000-* \
337
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
357
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
338
358
        | clipper-* | craynv-* | cydra-* \
339
359
        | d10v-* | d30v-* | dlx-* \
340
360
        | elxsi-* \
368
388
        | mmix-* \
369
389
        | mt-* \
370
390
        | msp430-* \
 
391
        | nds32-* | nds32le-* | nds32be-* \
371
392
        | nios-* | nios2-* \
372
393
        | none-* | np1-* | ns16k-* | ns32k-* \
 
394
        | open8-* \
373
395
        | orion-* \
374
396
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
375
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
397
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
376
398
        | pyramid-* \
377
399
        | romp-* | rs6000-* | rx-* \
378
400
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
379
401
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
380
402
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
381
403
        | sparclite-* \
382
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
383
 
        | tahoe-* | thumb-* \
384
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
 
404
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
405
        | tahoe-* \
 
406
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
407
        | tile-* | tilegx-* \
385
408
        | tron-* \
386
409
        | ubicom32-* \
387
410
        | v850-* | v850e-* | vax-* \
388
411
        | we32k-* \
389
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
412
        | x86-* | x86_64-* | xc16x-* | xps100-* \
390
413
        | xstormy16-* | xtensa*-* \
391
414
        | ymp-* \
392
415
        | z8k-* | z80-*)
411
434
                basic_machine=a29k-amd
412
435
                os=-udi
413
436
                ;;
414
 
        abacus)
 
437
        abacus)
415
438
                basic_machine=abacus-unknown
416
439
                ;;
417
440
        adobe68k)
481
504
                basic_machine=powerpc-ibm
482
505
                os=-cnk
483
506
                ;;
 
507
        c54x-*)
 
508
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
509
                ;;
 
510
        c55x-*)
 
511
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
512
                ;;
 
513
        c6x-*)
 
514
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
515
                ;;
484
516
        c90)
485
517
                basic_machine=c90-cray
486
518
                os=-unicos
487
519
                ;;
488
 
        cegcc)
 
520
        cegcc)
489
521
                basic_machine=arm-unknown
490
522
                os=-cegcc
491
523
                ;;
517
549
                basic_machine=craynv-cray
518
550
                os=-unicosmp
519
551
                ;;
520
 
        cr16)
 
552
        cr16 | cr16-*)
521
553
                basic_machine=cr16-unknown
522
554
                os=-elf
523
555
                ;;
733
765
                basic_machine=ns32k-utek
734
766
                os=-sysv
735
767
                ;;
736
 
        microblaze)
 
768
        microblaze)
737
769
                basic_machine=microblaze-xilinx
738
770
                ;;
739
771
        mingw32)
804
836
                basic_machine=v70-nec
805
837
                os=-sysv
806
838
                ;;
807
 
        next | m*-next )
 
839
        next | m*-next)
808
840
                basic_machine=m68k-next
809
841
                case $os in
810
 
                    -nextstep* )
 
842
                    -nextstep*)
811
843
                        ;;
812
844
                    -ns2*)
813
845
                      os=-nextstep2
840
872
        np1)
841
873
                basic_machine=np1-gould
842
874
                ;;
 
875
        neo-tandem)
 
876
                basic_machine=neo-tandem
 
877
                ;;
 
878
        nse-tandem)
 
879
                basic_machine=nse-tandem
 
880
                ;;
843
881
        nsr-tandem)
844
882
                basic_machine=nsr-tandem
845
883
                ;;
920
958
        pn)
921
959
                basic_machine=pn-gould
922
960
                ;;
923
 
        power)  basic_machine=power-ibm
924
 
                ;;
925
 
        ppc)    basic_machine=powerpc-unknown
926
 
                ;;
927
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
961
        power)
 
962
                basic_machine=power-ibm
 
963
                ;;
 
964
        ppc | ppcbe)
 
965
                basic_machine=powerpc-unknown
 
966
                ;;
 
967
        ppc-* | ppcbe-*)
 
968
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
928
969
                ;;
929
970
        ppcle | powerpclittle | ppc-le | powerpc-little)
930
971
                basic_machine=powerpcle-unknown
932
973
        ppcle-* | powerpclittle-*)
933
974
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
934
975
                ;;
935
 
        ppc64)  basic_machine=powerpc64-unknown
 
976
        ppc64)
 
977
                basic_machine=powerpc64-unknown
936
978
                ;;
937
 
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
979
        ppc64-*)
 
980
                basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
938
981
                ;;
939
982
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
940
983
                basic_machine=powerpc64le-unknown
1018
1061
                basic_machine=i860-stratus
1019
1062
                os=-sysv4
1020
1063
                ;;
 
1064
        strongarm-* | thumb-*)
 
1065
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1066
                ;;
1021
1067
        sun2)
1022
1068
                basic_machine=m68000-sun
1023
1069
                ;;
1074
1120
                basic_machine=t90-cray
1075
1121
                os=-unicos
1076
1122
                ;;
1077
 
        tic54x | c54x*)
1078
 
                basic_machine=tic54x-unknown
1079
 
                os=-coff
1080
 
                ;;
1081
 
        tic55x | c55x*)
1082
 
                basic_machine=tic55x-unknown
1083
 
                os=-coff
1084
 
                ;;
1085
 
        tic6x | c6x*)
1086
 
                basic_machine=tic6x-unknown
1087
 
                os=-coff
 
1123
        # This must be matched before tile*.
 
1124
        tilegx*)
 
1125
                basic_machine=tilegx-unknown
 
1126
                os=-linux-gnu
1088
1127
                ;;
1089
1128
        tile*)
1090
1129
                basic_machine=tile-unknown
1157
1196
        xps | xps100)
1158
1197
                basic_machine=xps100-honeywell
1159
1198
                ;;
 
1199
        xscale-* | xscalee[bl]-*)
 
1200
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1201
                ;;
1160
1202
        ymp)
1161
1203
                basic_machine=ymp-cray
1162
1204
                os=-unicos
1254
1296
if [ x"$os" != x"" ]
1255
1297
then
1256
1298
case $os in
1257
 
        # First match some system type aliases
1258
 
        # that might get confused with valid system types.
 
1299
        # First match some system type aliases
 
1300
        # that might get confused with valid system types.
1259
1301
        # -solaris* is a basic system type, with this one exception.
1260
 
        -auroraux)
1261
 
                os=-auroraux
 
1302
        -auroraux)
 
1303
                os=-auroraux
1262
1304
                ;;
1263
1305
        -solaris1 | -solaris1.*)
1264
1306
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1295
1337
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1296
1338
              | -chorusos* | -chorusrdb* | -cegcc* \
1297
1339
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1298
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1340
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1341
              | -linux-newlib* | -linux-uclibc* \
1299
1342
              | -uxpv* | -beos* | -mpeix* | -udk* \
1300
1343
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1301
1344
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1342
1385
        -opened*)
1343
1386
                os=-openedition
1344
1387
                ;;
1345
 
        -os400*)
 
1388
        -os400*)
1346
1389
                os=-os400
1347
1390
                ;;
1348
1391
        -wince*)
1378
1421
        -nova*)
1379
1422
                os=-rtmk-nova
1380
1423
                ;;
1381
 
        -ns2 )
 
1424
        -ns2)
1382
1425
                os=-nextstep2
1383
1426
                ;;
1384
1427
        -nsk*)
1391
1434
        -sinix*)
1392
1435
                os=-sysv4
1393
1436
                ;;
1394
 
        -tpf*)
 
1437
        -tpf*)
1395
1438
                os=-tpf
1396
1439
                ;;
1397
1440
        -triton*)
1436
1479
        -dicos*)
1437
1480
                os=-dicos
1438
1481
                ;;
1439
 
        -nacl*)
1440
 
                ;;
 
1482
        -nacl*)
 
1483
                ;;
1441
1484
        -none)
1442
1485
                ;;
1443
1486
        *)
1460
1503
# system, and we'll never get to this point.
1461
1504
 
1462
1505
case $basic_machine in
1463
 
        score-*)
 
1506
        score-*)
1464
1507
                os=-elf
1465
1508
                ;;
1466
 
        spu-*)
 
1509
        spu-*)
1467
1510
                os=-elf
1468
1511
                ;;
1469
1512
        *-acorn)
1475
1518
        arm*-semi)
1476
1519
                os=-aout
1477
1520
                ;;
1478
 
        c4x-* | tic4x-*)
1479
 
                os=-coff
 
1521
        c4x-* | tic4x-*)
 
1522
                os=-coff
 
1523
                ;;
 
1524
        tic54x-*)
 
1525
                os=-coff
 
1526
                ;;
 
1527
        tic55x-*)
 
1528
                os=-coff
 
1529
                ;;
 
1530
        tic6x-*)
 
1531
                os=-coff
1480
1532
                ;;
1481
1533
        # This must come before the *-dec entry.
1482
1534
        pdp10-*)
1503
1555
        m68*-cisco)
1504
1556
                os=-aout
1505
1557
                ;;
1506
 
        mep-*)
 
1558
        mep-*)
1507
1559
                os=-elf
1508
1560
                ;;
1509
1561
        mips*-cisco)
1530
1582
        *-ibm)
1531
1583
                os=-aix
1532
1584
                ;;
1533
 
        *-knuth)
 
1585
        *-knuth)
1534
1586
                os=-mmixware
1535
1587
                ;;
1536
1588
        *-wec)
1566
1618
        m88k-omron*)
1567
1619
                os=-luna
1568
1620
                ;;
1569
 
        *-next )
 
1621
        *-next)
1570
1622
                os=-nextstep
1571
1623
                ;;
1572
1624
        *-sequent)