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

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2011-04-05 23:28:42 UTC
  • mfrom: (1.1.13 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110405232842-trr0edunyi1nj290
Upload to unstable.

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
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2010-09-11'
 
7
timestamp='2008-01-16'
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
32
32
 
33
33
 
34
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted GNU ChangeLog entry.
 
35
# diff and a properly formatted ChangeLog entry.
36
36
#
37
37
# Configuration subroutine to validate and canonicalize a configuration type.
38
38
# Supply the specified configuration type as an argument.
39
39
# If it is invalid, we print an error message on stderr and exit with code 1.
40
40
# Otherwise, we print the canonical config type on stdout and succeed.
41
41
 
42
 
# You can get the latest version of this script from:
43
 
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
44
 
 
45
42
# This file is supposed to be the same for all GNU packages
46
43
# and recognize all the CPU types, system types and aliases
47
44
# that are meaningful with *any* GNU software.
75
72
version="\
76
73
GNU config.sub ($timestamp)
77
74
 
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.
 
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
 
76
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
81
77
 
82
78
This is free software; see the source for copying conditions.  There is NO
83
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
124
120
# Here we must recognize all the valid KERNEL-OS combinations.
125
121
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
122
case $maybe_os in
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* | \
130
 
  kopensolaris*-gnu* | \
 
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
131
125
  storm-chaos* | os2-emx* | rtmk-nova*)
132
126
    os=-$maybe_os
133
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
154
148
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
155
149
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
156
150
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
151
        -apple | -axis | -knuth | -cray)
158
152
                os=
159
153
                basic_machine=$1
160
154
                ;;
161
 
        -bluegene*)
162
 
                os=-cnk
163
 
                ;;
164
155
        -sim | -cisco | -oki | -wec | -winbond)
165
156
                os=
166
157
                basic_machine=$1
258
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
259
250
        | i370 | i860 | i960 | ia64 \
260
251
        | ip2k | iq2000 \
261
 
        | lm32 \
262
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
263
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
253
        | maxq | mb | microblaze | mcore | mep \
264
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
265
255
        | mips16 \
266
256
        | mips64 | mips64el \
267
 
        | mips64octeon | mips64octeonel \
 
257
        | mips64vr | mips64vrel \
268
258
        | mips64orion | mips64orionel \
269
 
        | mips64r5900 | mips64r5900el \
270
 
        | mips64vr | mips64vrel \
271
259
        | mips64vr4100 | mips64vr4100el \
272
260
        | mips64vr4300 | mips64vr4300el \
273
261
        | mips64vr5000 | mips64vr5000el \
280
268
        | mipsisa64sr71k | mipsisa64sr71kel \
281
269
        | mipstx39 | mipstx39el \
282
270
        | mn10200 | mn10300 \
283
 
        | moxie \
284
271
        | mt \
285
272
        | msp430 \
286
 
        | nds32 | nds32le | nds32be \
287
273
        | nios | nios2 \
288
274
        | ns16k | ns32k \
289
275
        | or32 \
290
276
        | pdp10 | pdp11 | pj | pjl \
291
277
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
292
278
        | pyramid \
293
 
        | rx \
294
279
        | score \
295
 
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
280
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
296
281
        | sh64 | sh64le \
297
282
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
298
283
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
299
284
        | spu | strongarm \
300
 
        | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
301
 
        | ubicom32 \
 
285
        | tahoe | thumb | tic4x | tic80 | tron \
302
286
        | v850 | v850e \
303
287
        | we32k \
304
288
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
305
 
        | z8k | z80)
 
289
        | z8k)
306
290
                basic_machine=$basic_machine-unknown
307
291
                ;;
308
 
        c54x)
309
 
                basic_machine=tic54x-unknown
310
 
                ;;
311
 
        c55x)
312
 
                basic_machine=tic55x-unknown
313
 
                ;;
314
 
        c6x)
315
 
                basic_machine=tic6x-unknown
316
 
                ;;
317
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
292
        m6811 | m68hc11 | m6812 | m68hc12)
318
293
                # Motorola 68HC11/12.
319
294
                basic_machine=$basic_machine-unknown
320
295
                os=-none
345
320
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
346
321
        | avr-* | avr32-* \
347
322
        | bfin-* | bs2000-* \
348
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
323
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
349
324
        | clipper-* | craynv-* | cydra-* \
350
325
        | d10v-* | d30v-* | dlx-* \
351
326
        | elxsi-* \
354
329
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
355
330
        | i*86-* | i860-* | i960-* | ia64-* \
356
331
        | ip2k-* | iq2000-* \
357
 
        | lm32-* \
358
332
        | m32c-* | m32r-* | m32rle-* \
359
333
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
360
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
334
        | m88110-* | m88k-* | maxq-* | mcore-* \
361
335
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
362
336
        | mips16-* \
363
337
        | mips64-* | mips64el-* \
364
 
        | mips64octeon-* | mips64octeonel-* \
 
338
        | mips64vr-* | mips64vrel-* \
365
339
        | mips64orion-* | mips64orionel-* \
366
 
        | mips64r5900-* | mips64r5900el-* \
367
 
        | mips64vr-* | mips64vrel-* \
368
340
        | mips64vr4100-* | mips64vr4100el-* \
369
341
        | mips64vr4300-* | mips64vr4300el-* \
370
342
        | mips64vr5000-* | mips64vr5000el-* \
379
351
        | mmix-* \
380
352
        | mt-* \
381
353
        | msp430-* \
382
 
        | nds32-* | nds32le-* | nds32be-* \
383
354
        | nios-* | nios2-* \
384
355
        | none-* | np1-* | ns16k-* | ns32k-* \
385
356
        | orion-* \
386
357
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
387
358
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
388
359
        | pyramid-* \
389
 
        | romp-* | rs6000-* | rx-* \
390
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
360
        | romp-* | rs6000-* \
 
361
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
391
362
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
392
363
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
393
364
        | sparclite-* \
394
365
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
395
366
        | tahoe-* | thumb-* \
396
367
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
397
 
        | tile-* | tilegx-* \
398
368
        | tron-* \
399
 
        | ubicom32-* \
400
369
        | v850-* | v850e-* | vax-* \
401
370
        | we32k-* \
402
371
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
403
372
        | xstormy16-* | xtensa*-* \
404
373
        | ymp-* \
405
 
        | z8k-* | z80-*)
 
374
        | z8k-*)
406
375
                ;;
407
376
        # Recognize the basic CPU types without company name, with glob match.
408
377
        xtensa*)
470
439
                basic_machine=m68k-apollo
471
440
                os=-bsd
472
441
                ;;
473
 
        aros)
474
 
                basic_machine=i386-pc
475
 
                os=-aros
476
 
                ;;
477
442
        aux)
478
443
                basic_machine=m68k-apple
479
444
                os=-aux
490
455
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
491
456
                os=-linux
492
457
                ;;
493
 
        bluegene*)
494
 
                basic_machine=powerpc-ibm
495
 
                os=-cnk
496
 
                ;;
497
 
        c54x-*)
498
 
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
499
 
                ;;
500
 
        c55x-*)
501
 
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
502
 
                ;;
503
 
        c6x-*)
504
 
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
505
 
                ;;
506
458
        c90)
507
459
                basic_machine=c90-cray
508
460
                os=-unicos
509
461
                ;;
510
 
        cegcc)
511
 
                basic_machine=arm-unknown
512
 
                os=-cegcc
513
 
                ;;
514
462
        convex-c1)
515
463
                basic_machine=c1-convex
516
464
                os=-bsd
578
526
                basic_machine=m88k-motorola
579
527
                os=-sysv3
580
528
                ;;
581
 
        dicos)
582
 
                basic_machine=i686-pc
583
 
                os=-dicos
584
 
                ;;
585
529
        djgpp)
586
530
                basic_machine=i586-pc
587
531
                os=-msdosdjgpp
755
699
                basic_machine=ns32k-utek
756
700
                os=-sysv
757
701
                ;;
758
 
        microblaze)
759
 
                basic_machine=microblaze-xilinx
760
 
                ;;
761
702
        mingw32)
762
703
                basic_machine=i386-pc
763
704
                os=-mingw32
862
803
        np1)
863
804
                basic_machine=np1-gould
864
805
                ;;
865
 
        neo-tandem)
866
 
                basic_machine=neo-tandem
867
 
                ;;
868
 
        nse-tandem)
869
 
                basic_machine=nse-tandem
870
 
                ;;
871
806
        nsr-tandem)
872
807
                basic_machine=nsr-tandem
873
808
                ;;
1102
1037
                basic_machine=t90-cray
1103
1038
                os=-unicos
1104
1039
                ;;
1105
 
        # This must be matched before tile*.
1106
 
        tilegx*)
1107
 
                basic_machine=tilegx-unknown
1108
 
                os=-linux-gnu
 
1040
        tic54x | c54x*)
 
1041
                basic_machine=tic54x-unknown
 
1042
                os=-coff
 
1043
                ;;
 
1044
        tic55x | c55x*)
 
1045
                basic_machine=tic55x-unknown
 
1046
                os=-coff
 
1047
                ;;
 
1048
        tic6x | c6x*)
 
1049
                basic_machine=tic6x-unknown
 
1050
                os=-coff
1109
1051
                ;;
1110
1052
        tile*)
1111
1053
                basic_machine=tile-unknown
1186
1128
                basic_machine=z8k-unknown
1187
1129
                os=-sim
1188
1130
                ;;
1189
 
        z80-*-coff)
1190
 
                basic_machine=z80-unknown
1191
 
                os=-sim
1192
 
                ;;
1193
1131
        none)
1194
1132
                basic_machine=none-none
1195
1133
                os=-none
1228
1166
        we32k)
1229
1167
                basic_machine=we32k-att
1230
1168
                ;;
1231
 
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
 
1169
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1232
1170
                basic_machine=sh-unknown
1233
1171
                ;;
1234
1172
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1278
1216
        # First match some system type aliases
1279
1217
        # that might get confused with valid system types.
1280
1218
        # -solaris* is a basic system type, with this one exception.
1281
 
        -auroraux)
1282
 
                os=-auroraux
1283
 
                ;;
1284
1219
        -solaris1 | -solaris1.*)
1285
1220
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1286
1221
                ;;
1301
1236
        # Each alternative MUST END IN A *, to match a version number.
1302
1237
        # -sysv* is not here because it comes later, after sysvr4.
1303
1238
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1304
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1305
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1306
 
              | -sym* | -kopensolaris* \
 
1239
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
 
1240
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1307
1241
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1308
 
              | -aos* | -aros* \
 
1242
              | -aos* \
1309
1243
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1310
1244
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1311
1245
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1314
1248
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1315
1249
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1316
1250
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1317
 
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1251
              | -chorusos* | -chorusrdb* \
1318
1252
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1319
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1320
 
              | -linux-newlib* | -linux-uclibc* \
 
1253
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1321
1254
              | -uxpv* | -beos* | -mpeix* | -udk* \
1322
1255
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1323
1256
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1325
1258
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1326
1259
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1327
1260
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1328
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1261
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1329
1262
        # Remember, each alternative MUST END IN *, to match a version number.
1330
1263
                ;;
1331
1264
        -qnx*)
1455
1388
        -zvmoe)
1456
1389
                os=-zvmoe
1457
1390
                ;;
1458
 
        -dicos*)
1459
 
                os=-dicos
1460
 
                ;;
1461
 
        -nacl*)
1462
 
                ;;
1463
1391
        -none)
1464
1392
                ;;
1465
1393
        *)
1500
1428
        c4x-* | tic4x-*)
1501
1429
                os=-coff
1502
1430
                ;;
1503
 
        tic54x-*)
1504
 
                os=-coff
1505
 
                ;;
1506
 
        tic55x-*)
1507
 
                os=-coff
1508
 
                ;;
1509
 
        tic6x-*)
1510
 
                os=-coff
1511
 
                ;;
1512
1431
        # This must come before the *-dec entry.
1513
1432
        pdp10-*)
1514
1433
                os=-tops20
1666
1585
                        -sunos*)
1667
1586
                                vendor=sun
1668
1587
                                ;;
1669
 
                        -cnk*|-aix*)
 
1588
                        -aix*)
1670
1589
                                vendor=ibm
1671
1590
                                ;;
1672
1591
                        -beos*)