~ubuntu-branches/ubuntu/trusty/x11proto-core/trusty-security

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2013-06-09 14:17:07 UTC
  • mfrom: (1.1.16) (18.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20130609141707-iuyzl2j5kf53nvs9
* New upstream release.
  - handles x32 madness (closes: #695535)
  - handles the lack of restrict on g++/solaris (closes: #695589)

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, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2010-09-11'
 
7
timestamp='2011-11-11'
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
 
79
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
80
80
Software Foundation, Inc.
81
81
 
82
82
This is free software; see the source for copying conditions.  There is NO
158
158
                os=
159
159
                basic_machine=$1
160
160
                ;;
161
 
        -bluegene*)
162
 
                os=-cnk
 
161
        -bluegene*)
 
162
                os=-cnk
163
163
                ;;
164
164
        -sim | -cisco | -oki | -wec | -winbond)
165
165
                os=
175
175
                os=-chorusos
176
176
                basic_machine=$1
177
177
                ;;
178
 
        -chorusrdb)
179
 
                os=-chorusrdb
 
178
        -chorusrdb)
 
179
                os=-chorusrdb
180
180
                basic_machine=$1
181
 
                ;;
 
181
                ;;
182
182
        -hiux*)
183
183
                os=-hiuxwe2
184
184
                ;;
251
251
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252
252
        | am33_2.0 \
253
253
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
254
        | be32 | be64 \
254
255
        | bfin \
255
256
        | c4x | clipper \
256
257
        | d10v | d30v | dlx | dsp16xx \
 
258
        | epiphany \
257
259
        | fido | fr30 | frv \
258
260
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
261
        | hexagon \
259
262
        | i370 | i860 | i960 | ia64 \
260
263
        | ip2k | iq2000 \
 
264
        | le32 | le64 \
261
265
        | lm32 \
262
266
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
263
267
        | maxq | mb | microblaze | mcore | mep | metag \
286
290
        | nds32 | nds32le | nds32be \
287
291
        | nios | nios2 \
288
292
        | ns16k | ns32k \
 
293
        | open8 \
289
294
        | or32 \
290
295
        | pdp10 | pdp11 | pj | pjl \
291
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
296
        | powerpc | powerpc64 | powerpc64le | powerpcle \
292
297
        | pyramid \
293
 
        | rx \
 
298
        | rl78 | rx \
294
299
        | score \
295
300
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
296
301
        | sh64 | sh64le \
297
302
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
298
303
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
299
 
        | spu | strongarm \
300
 
        | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
304
        | spu \
 
305
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
301
306
        | ubicom32 \
302
 
        | v850 | v850e \
 
307
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
303
308
        | we32k \
304
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
309
        | x86 | xc16x | xstormy16 | xtensa \
305
310
        | z8k | z80)
306
311
                basic_machine=$basic_machine-unknown
307
312
                ;;
325
330
                basic_machine=mt-unknown
326
331
                ;;
327
332
 
 
333
        strongarm | thumb | xscale)
 
334
                basic_machine=arm-unknown
 
335
                ;;
 
336
 
 
337
        xscaleeb)
 
338
                basic_machine=armeb-unknown
 
339
                ;;
 
340
 
 
341
        xscaleel)
 
342
                basic_machine=armel-unknown
 
343
                ;;
 
344
 
328
345
        # We use `pc' rather than `unknown'
329
346
        # because (1) that's what they normally are, and
330
347
        # (2) the word "unknown" tends to confuse beginning users.
344
361
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
345
362
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
346
363
        | avr-* | avr32-* \
 
364
        | be32-* | be64-* \
347
365
        | bfin-* | bs2000-* \
348
366
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
349
367
        | clipper-* | craynv-* | cydra-* \
352
370
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
353
371
        | h8300-* | h8500-* \
354
372
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
373
        | hexagon-* \
355
374
        | i*86-* | i860-* | i960-* | ia64-* \
356
375
        | ip2k-* | iq2000-* \
 
376
        | le32-* | le64-* \
357
377
        | lm32-* \
358
378
        | m32c-* | m32r-* | m32rle-* \
359
379
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
382
402
        | nds32-* | nds32le-* | nds32be-* \
383
403
        | nios-* | nios2-* \
384
404
        | none-* | np1-* | ns16k-* | ns32k-* \
 
405
        | open8-* \
385
406
        | orion-* \
386
407
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
387
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
408
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
388
409
        | pyramid-* \
389
 
        | romp-* | rs6000-* | rx-* \
 
410
        | rl78-* | romp-* | rs6000-* | rx-* \
390
411
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
391
412
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
392
413
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
393
414
        | sparclite-* \
394
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
395
 
        | tahoe-* | thumb-* \
 
415
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
416
        | tahoe-* \
396
417
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
397
 
        | tile-* | tilegx-* \
 
418
        | tile*-* \
398
419
        | tron-* \
399
420
        | ubicom32-* \
400
 
        | v850-* | v850e-* | vax-* \
 
421
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
422
        | vax-* \
401
423
        | we32k-* \
402
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
424
        | x86-* | x86_64-* | xc16x-* | xps100-* \
403
425
        | xstormy16-* | xtensa*-* \
404
426
        | ymp-* \
405
427
        | z8k-* | z80-*)
424
446
                basic_machine=a29k-amd
425
447
                os=-udi
426
448
                ;;
427
 
        abacus)
 
449
        abacus)
428
450
                basic_machine=abacus-unknown
429
451
                ;;
430
452
        adobe68k)
507
529
                basic_machine=c90-cray
508
530
                os=-unicos
509
531
                ;;
510
 
        cegcc)
 
532
        cegcc)
511
533
                basic_machine=arm-unknown
512
534
                os=-cegcc
513
535
                ;;
539
561
                basic_machine=craynv-cray
540
562
                os=-unicosmp
541
563
                ;;
542
 
        cr16)
 
564
        cr16 | cr16-*)
543
565
                basic_machine=cr16-unknown
544
566
                os=-elf
545
567
                ;;
755
777
                basic_machine=ns32k-utek
756
778
                os=-sysv
757
779
                ;;
758
 
        microblaze)
 
780
        microblaze)
759
781
                basic_machine=microblaze-xilinx
760
782
                ;;
761
783
        mingw32)
794
816
        ms1-*)
795
817
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
796
818
                ;;
 
819
        msys)
 
820
                basic_machine=i386-pc
 
821
                os=-msys
 
822
                ;;
797
823
        mvs)
798
824
                basic_machine=i370-ibm
799
825
                os=-mvs
800
826
                ;;
 
827
        nacl)
 
828
                basic_machine=le32-unknown
 
829
                os=-nacl
 
830
                ;;
801
831
        ncr3000)
802
832
                basic_machine=i486-ncr
803
833
                os=-sysv4
862
892
        np1)
863
893
                basic_machine=np1-gould
864
894
                ;;
865
 
        neo-tandem)
 
895
        neo-tandem)
866
896
                basic_machine=neo-tandem
867
897
                ;;
868
 
        nse-tandem)
 
898
        nse-tandem)
869
899
                basic_machine=nse-tandem
870
900
                ;;
871
901
        nsr-tandem)
950
980
                ;;
951
981
        power)  basic_machine=power-ibm
952
982
                ;;
953
 
        ppc)    basic_machine=powerpc-unknown
 
983
        ppc | ppcbe)    basic_machine=powerpc-unknown
954
984
                ;;
955
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
985
        ppc-* | ppcbe-*)
 
986
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
956
987
                ;;
957
988
        ppcle | powerpclittle | ppc-le | powerpc-little)
958
989
                basic_machine=powerpcle-unknown
1046
1077
                basic_machine=i860-stratus
1047
1078
                os=-sysv4
1048
1079
                ;;
 
1080
        strongarm-* | thumb-*)
 
1081
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1082
                ;;
1049
1083
        sun2)
1050
1084
                basic_machine=m68000-sun
1051
1085
                ;;
1102
1136
                basic_machine=t90-cray
1103
1137
                os=-unicos
1104
1138
                ;;
1105
 
        # This must be matched before tile*.
1106
 
        tilegx*)
1107
 
                basic_machine=tilegx-unknown
1108
 
                os=-linux-gnu
1109
 
                ;;
1110
1139
        tile*)
1111
 
                basic_machine=tile-unknown
 
1140
                basic_machine=$basic_machine-unknown
1112
1141
                os=-linux-gnu
1113
1142
                ;;
1114
1143
        tx39)
1178
1207
        xps | xps100)
1179
1208
                basic_machine=xps100-honeywell
1180
1209
                ;;
 
1210
        xscale-* | xscalee[bl]-*)
 
1211
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1212
                ;;
1181
1213
        ymp)
1182
1214
                basic_machine=ymp-cray
1183
1215
                os=-unicos
1275
1307
if [ x"$os" != x"" ]
1276
1308
then
1277
1309
case $os in
1278
 
        # First match some system type aliases
1279
 
        # that might get confused with valid system types.
 
1310
        # First match some system type aliases
 
1311
        # that might get confused with valid system types.
1280
1312
        # -solaris* is a basic system type, with this one exception.
1281
 
        -auroraux)
1282
 
                os=-auroraux
 
1313
        -auroraux)
 
1314
                os=-auroraux
1283
1315
                ;;
1284
1316
        -solaris1 | -solaris1.*)
1285
1317
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1315
1347
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1316
1348
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1317
1349
              | -chorusos* | -chorusrdb* | -cegcc* \
1318
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1350
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1319
1351
              | -mingw32* | -linux-gnu* | -linux-android* \
1320
1352
              | -linux-newlib* | -linux-uclibc* \
1321
1353
              | -uxpv* | -beos* | -mpeix* | -udk* \
1364
1396
        -opened*)
1365
1397
                os=-openedition
1366
1398
                ;;
1367
 
        -os400*)
 
1399
        -os400*)
1368
1400
                os=-os400
1369
1401
                ;;
1370
1402
        -wince*)
1413
1445
        -sinix*)
1414
1446
                os=-sysv4
1415
1447
                ;;
1416
 
        -tpf*)
 
1448
        -tpf*)
1417
1449
                os=-tpf
1418
1450
                ;;
1419
1451
        -triton*)
1458
1490
        -dicos*)
1459
1491
                os=-dicos
1460
1492
                ;;
1461
 
        -nacl*)
1462
 
                ;;
 
1493
        -nacl*)
 
1494
                ;;
1463
1495
        -none)
1464
1496
                ;;
1465
1497
        *)
1482
1514
# system, and we'll never get to this point.
1483
1515
 
1484
1516
case $basic_machine in
1485
 
        score-*)
 
1517
        score-*)
1486
1518
                os=-elf
1487
1519
                ;;
1488
 
        spu-*)
 
1520
        spu-*)
1489
1521
                os=-elf
1490
1522
                ;;
1491
1523
        *-acorn)
1497
1529
        arm*-semi)
1498
1530
                os=-aout
1499
1531
                ;;
1500
 
        c4x-* | tic4x-*)
1501
 
                os=-coff
 
1532
        c4x-* | tic4x-*)
 
1533
                os=-coff
1502
1534
                ;;
1503
1535
        tic54x-*)
1504
1536
                os=-coff
1534
1566
        m68*-cisco)
1535
1567
                os=-aout
1536
1568
                ;;
1537
 
        mep-*)
 
1569
        mep-*)
1538
1570
                os=-elf
1539
1571
                ;;
1540
1572
        mips*-cisco)
1561
1593
        *-ibm)
1562
1594
                os=-aix
1563
1595
                ;;
1564
 
        *-knuth)
 
1596
        *-knuth)
1565
1597
                os=-mmixware
1566
1598
                ;;
1567
1599
        *-wec)