~ubuntu-branches/ubuntu/saucy/gconf/saucy

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-11-01 08:48:09 UTC
  • mfrom: (1.2.1) (76.1.1 oneiric-proposed)
  • Revision ID: package-import@ubuntu.com-20111101084809-f6skp1hyp3gni1ru
Tags: 3.2.3-0ubuntu1
* New upstream release.
  - Fixes gconf crasher regression in 3.2.2 (LP: #882525)

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
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='2009-11-20'
 
7
timestamp='2011-03-23'
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
75
75
version="\
76
76
GNU config.sub ($timestamp)
77
77
 
78
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
79
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
78
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
79
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
 
80
Software Foundation, Inc.
80
81
 
81
82
This is free software; see the source for copying conditions.  There is NO
82
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123
124
# Here we must recognize all the valid KERNEL-OS combinations.
124
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125
126
case $maybe_os in
126
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127
 
  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* | \
128
130
  kopensolaris*-gnu* | \
129
131
  storm-chaos* | os2-emx* | rtmk-nova*)
130
132
    os=-$maybe_os
156
158
                os=
157
159
                basic_machine=$1
158
160
                ;;
159
 
        -bluegene*)
160
 
                os=-cnk
 
161
        -bluegene*)
 
162
                os=-cnk
161
163
                ;;
162
164
        -sim | -cisco | -oki | -wec | -winbond)
163
165
                os=
173
175
                os=-chorusos
174
176
                basic_machine=$1
175
177
                ;;
176
 
        -chorusrdb)
177
 
                os=-chorusrdb
 
178
        -chorusrdb)
 
179
                os=-chorusrdb
178
180
                basic_machine=$1
179
 
                ;;
 
181
                ;;
180
182
        -hiux*)
181
183
                os=-hiuxwe2
182
184
                ;;
281
283
        | moxie \
282
284
        | mt \
283
285
        | msp430 \
 
286
        | nds32 | nds32le | nds32be \
284
287
        | nios | nios2 \
285
288
        | ns16k | ns32k \
 
289
        | open8 \
286
290
        | or32 \
287
291
        | pdp10 | pdp11 | pj | pjl \
288
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
292
        | powerpc | powerpc64 | powerpc64le | powerpcle \
289
293
        | pyramid \
290
294
        | rx \
291
295
        | score \
293
297
        | sh64 | sh64le \
294
298
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295
299
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296
 
        | spu | strongarm \
297
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
300
        | spu \
 
301
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298
302
        | ubicom32 \
299
303
        | v850 | v850e \
300
304
        | we32k \
301
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
305
        | x86 | xc16x | xstormy16 | xtensa \
302
306
        | z8k | z80)
303
307
                basic_machine=$basic_machine-unknown
304
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
                ;;
305
318
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306
319
                # Motorola 68HC11/12.
307
320
                basic_machine=$basic_machine-unknown
313
326
                basic_machine=mt-unknown
314
327
                ;;
315
328
 
 
329
        strongarm | thumb | xscale)
 
330
                basic_machine=arm-unknown
 
331
                ;;
 
332
 
 
333
        xscaleeb)
 
334
                basic_machine=armeb-unknown
 
335
                ;;
 
336
 
 
337
        xscaleel)
 
338
                basic_machine=armel-unknown
 
339
                ;;
 
340
 
316
341
        # We use `pc' rather than `unknown'
317
342
        # because (1) that's what they normally are, and
318
343
        # (2) the word "unknown" tends to confuse beginning users.
333
358
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
334
359
        | avr-* | avr32-* \
335
360
        | bfin-* | bs2000-* \
336
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
361
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
337
362
        | clipper-* | craynv-* | cydra-* \
338
363
        | d10v-* | d30v-* | dlx-* \
339
364
        | elxsi-* \
367
392
        | mmix-* \
368
393
        | mt-* \
369
394
        | msp430-* \
 
395
        | nds32-* | nds32le-* | nds32be-* \
370
396
        | nios-* | nios2-* \
371
397
        | none-* | np1-* | ns16k-* | ns32k-* \
 
398
        | open8-* \
372
399
        | orion-* \
373
400
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
401
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
375
402
        | pyramid-* \
376
403
        | romp-* | rs6000-* | rx-* \
377
404
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378
405
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379
406
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380
407
        | sparclite-* \
381
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382
 
        | tahoe-* | thumb-* \
383
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
 
408
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
409
        | tahoe-* \
 
410
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
411
        | tile-* | tilegx-* \
384
412
        | tron-* \
385
413
        | ubicom32-* \
386
414
        | v850-* | v850e-* | vax-* \
387
415
        | we32k-* \
388
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
416
        | x86-* | x86_64-* | xc16x-* | xps100-* \
389
417
        | xstormy16-* | xtensa*-* \
390
418
        | ymp-* \
391
419
        | z8k-* | z80-*)
410
438
                basic_machine=a29k-amd
411
439
                os=-udi
412
440
                ;;
413
 
        abacus)
 
441
        abacus)
414
442
                basic_machine=abacus-unknown
415
443
                ;;
416
444
        adobe68k)
480
508
                basic_machine=powerpc-ibm
481
509
                os=-cnk
482
510
                ;;
 
511
        c54x-*)
 
512
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
513
                ;;
 
514
        c55x-*)
 
515
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
516
                ;;
 
517
        c6x-*)
 
518
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
519
                ;;
483
520
        c90)
484
521
                basic_machine=c90-cray
485
522
                os=-unicos
486
523
                ;;
487
 
        cegcc)
 
524
        cegcc)
488
525
                basic_machine=arm-unknown
489
526
                os=-cegcc
490
527
                ;;
516
553
                basic_machine=craynv-cray
517
554
                os=-unicosmp
518
555
                ;;
519
 
        cr16)
 
556
        cr16 | cr16-*)
520
557
                basic_machine=cr16-unknown
521
558
                os=-elf
522
559
                ;;
732
769
                basic_machine=ns32k-utek
733
770
                os=-sysv
734
771
                ;;
735
 
        microblaze)
 
772
        microblaze)
736
773
                basic_machine=microblaze-xilinx
737
774
                ;;
738
775
        mingw32)
839
876
        np1)
840
877
                basic_machine=np1-gould
841
878
                ;;
 
879
        neo-tandem)
 
880
                basic_machine=neo-tandem
 
881
                ;;
 
882
        nse-tandem)
 
883
                basic_machine=nse-tandem
 
884
                ;;
842
885
        nsr-tandem)
843
886
                basic_machine=nsr-tandem
844
887
                ;;
921
964
                ;;
922
965
        power)  basic_machine=power-ibm
923
966
                ;;
924
 
        ppc)    basic_machine=powerpc-unknown
 
967
        ppc | ppcbe)    basic_machine=powerpc-unknown
925
968
                ;;
926
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
969
        ppc-* | ppcbe-*)
 
970
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
927
971
                ;;
928
972
        ppcle | powerpclittle | ppc-le | powerpc-little)
929
973
                basic_machine=powerpcle-unknown
1017
1061
                basic_machine=i860-stratus
1018
1062
                os=-sysv4
1019
1063
                ;;
 
1064
        strongarm-* | thumb-*)
 
1065
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1066
                ;;
1020
1067
        sun2)
1021
1068
                basic_machine=m68000-sun
1022
1069
                ;;
1073
1120
                basic_machine=t90-cray
1074
1121
                os=-unicos
1075
1122
                ;;
1076
 
        tic54x | c54x*)
1077
 
                basic_machine=tic54x-unknown
1078
 
                os=-coff
1079
 
                ;;
1080
 
        tic55x | c55x*)
1081
 
                basic_machine=tic55x-unknown
1082
 
                os=-coff
1083
 
                ;;
1084
 
        tic6x | c6x*)
1085
 
                basic_machine=tic6x-unknown
1086
 
                os=-coff
 
1123
        # This must be matched before tile*.
 
1124
        tilegx*)
 
1125
                basic_machine=tilegx-unknown
 
1126
                os=-linux-gnu
1087
1127
                ;;
1088
1128
        tile*)
1089
1129
                basic_machine=tile-unknown
1156
1196
        xps | xps100)
1157
1197
                basic_machine=xps100-honeywell
1158
1198
                ;;
 
1199
        xscale-* | xscalee[bl]-*)
 
1200
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1201
                ;;
1159
1202
        ymp)
1160
1203
                basic_machine=ymp-cray
1161
1204
                os=-unicos
1253
1296
if [ x"$os" != x"" ]
1254
1297
then
1255
1298
case $os in
1256
 
        # First match some system type aliases
1257
 
        # that might get confused with valid system types.
 
1299
        # First match some system type aliases
 
1300
        # that might get confused with valid system types.
1258
1301
        # -solaris* is a basic system type, with this one exception.
1259
 
        -auroraux)
1260
 
                os=-auroraux
 
1302
        -auroraux)
 
1303
                os=-auroraux
1261
1304
                ;;
1262
1305
        -solaris1 | -solaris1.*)
1263
1306
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1294
1337
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1295
1338
              | -chorusos* | -chorusrdb* | -cegcc* \
1296
1339
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1297
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1340
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1341
              | -linux-newlib* | -linux-uclibc* \
1298
1342
              | -uxpv* | -beos* | -mpeix* | -udk* \
1299
1343
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1300
1344
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1341
1385
        -opened*)
1342
1386
                os=-openedition
1343
1387
                ;;
1344
 
        -os400*)
 
1388
        -os400*)
1345
1389
                os=-os400
1346
1390
                ;;
1347
1391
        -wince*)
1390
1434
        -sinix*)
1391
1435
                os=-sysv4
1392
1436
                ;;
1393
 
        -tpf*)
 
1437
        -tpf*)
1394
1438
                os=-tpf
1395
1439
                ;;
1396
1440
        -triton*)
1435
1479
        -dicos*)
1436
1480
                os=-dicos
1437
1481
                ;;
 
1482
        -nacl*)
 
1483
                ;;
1438
1484
        -none)
1439
1485
                ;;
1440
1486
        *)
1457
1503
# system, and we'll never get to this point.
1458
1504
 
1459
1505
case $basic_machine in
1460
 
        score-*)
 
1506
        score-*)
1461
1507
                os=-elf
1462
1508
                ;;
1463
 
        spu-*)
 
1509
        spu-*)
1464
1510
                os=-elf
1465
1511
                ;;
1466
1512
        *-acorn)
1472
1518
        arm*-semi)
1473
1519
                os=-aout
1474
1520
                ;;
1475
 
        c4x-* | tic4x-*)
1476
 
                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
1477
1532
                ;;
1478
1533
        # This must come before the *-dec entry.
1479
1534
        pdp10-*)
1500
1555
        m68*-cisco)
1501
1556
                os=-aout
1502
1557
                ;;
1503
 
        mep-*)
 
1558
        mep-*)
1504
1559
                os=-elf
1505
1560
                ;;
1506
1561
        mips*-cisco)
1527
1582
        *-ibm)
1528
1583
                os=-aix
1529
1584
                ;;
1530
 
        *-knuth)
 
1585
        *-knuth)
1531
1586
                os=-mmixware
1532
1587
                ;;
1533
1588
        *-wec)