~ubuntu-branches/ubuntu/lucid/ezstream/lucid

« back to all changes in this revision

Viewing changes to build-aux/config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2009-09-27 16:50:53 UTC
  • mfrom: (1.1.3 upstream) (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090927165053-jkfio6ahwa723q0q
Tags: 0.5.6~dfsg-1
* New upstream release 
* Bumped standards version to 3.8.3

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
5
#   Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2005-07-01'
 
7
timestamp='2008-09-08'
7
8
 
8
9
# This file is (in principle) common to ALL GNU software.
9
10
# The presence of a machine in this file suggests that SOME GNU software
71
72
version="\
72
73
GNU config.sub ($timestamp)
73
74
 
74
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75
 
Free 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.
76
77
 
77
78
This is free software; see the source for copying conditions.  There is NO
78
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
119
120
# Here we must recognize all the valid KERNEL-OS combinations.
120
121
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121
122
case $maybe_os in
122
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
123
 
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
 
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
125
  storm-chaos* | os2-emx* | rtmk-nova*)
124
126
    os=-$maybe_os
125
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126
128
    ;;
171
173
        -hiux*)
172
174
                os=-hiuxwe2
173
175
                ;;
 
176
        -sco6)
 
177
                os=-sco5v6
 
178
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
179
                ;;
174
180
        -sco5)
175
181
                os=-sco3.2v5
176
182
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187
193
                # Don't forget version if it is 3.2v4 or newer.
188
194
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189
195
                ;;
 
196
        -sco5v6*)
 
197
                # Don't forget version if it is 3.2v4 or newer.
 
198
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
199
                ;;
190
200
        -sco*)
191
201
                os=-sco3.2v2
192
202
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
231
241
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
232
242
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233
243
        | am33_2.0 \
234
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
244
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
235
245
        | bfin \
236
246
        | c4x | clipper \
237
247
        | d10v | d30v | dlx | dsp16xx \
238
 
        | fr30 | frv \
 
248
        | fido | fr30 | frv \
239
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240
250
        | i370 | i860 | i960 | ia64 \
241
251
        | ip2k | iq2000 \
242
 
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
 
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
253
        | maxq | mb | microblaze | mcore | mep | metag \
243
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
244
255
        | mips16 \
245
256
        | mips64 | mips64el \
 
257
        | mips64octeon | mips64octeonel \
 
258
        | mips64orion | mips64orionel \
 
259
        | mips64r5900 | mips64r5900el \
246
260
        | mips64vr | mips64vrel \
247
 
        | mips64orion | mips64orionel \
248
261
        | mips64vr4100 | mips64vr4100el \
249
262
        | mips64vr4300 | mips64vr4300el \
250
263
        | mips64vr5000 | mips64vr5000el \
257
270
        | mipsisa64sr71k | mipsisa64sr71kel \
258
271
        | mipstx39 | mipstx39el \
259
272
        | mn10200 | mn10300 \
260
 
        | ms1 \
 
273
        | mt \
261
274
        | msp430 \
 
275
        | nios | nios2 \
262
276
        | ns16k | ns32k \
263
277
        | or32 \
264
278
        | pdp10 | pdp11 | pj | pjl \
265
279
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
266
280
        | pyramid \
267
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
281
        | score \
 
282
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
268
283
        | sh64 | sh64le \
269
 
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
270
 
        | sparcv8 | sparcv9 | sparcv9b \
271
 
        | strongarm \
 
284
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
285
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
286
        | spu | strongarm \
272
287
        | tahoe | thumb | tic4x | tic80 | tron \
273
288
        | v850 | v850e \
274
289
        | we32k \
275
 
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
276
 
        | z8k)
277
 
                basic_machine=$basic_machine-unknown
278
 
                ;;
279
 
        m32c)
 
290
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
291
        | z8k | z80)
280
292
                basic_machine=$basic_machine-unknown
281
293
                ;;
282
294
        m6811 | m68hc11 | m6812 | m68hc12)
286
298
                ;;
287
299
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
288
300
                ;;
 
301
        ms1)
 
302
                basic_machine=mt-unknown
 
303
                ;;
289
304
 
290
305
        # We use `pc' rather than `unknown'
291
306
        # because (1) that's what they normally are, and
305
320
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
306
321
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
307
322
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
308
 
        | avr-* \
 
323
        | avr-* | avr32-* \
309
324
        | bfin-* | bs2000-* \
310
325
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
311
326
        | clipper-* | craynv-* | cydra-* \
312
327
        | d10v-* | d30v-* | dlx-* \
313
328
        | elxsi-* \
314
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
329
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
315
330
        | h8300-* | h8500-* \
316
331
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
317
332
        | i*86-* | i860-* | i960-* | ia64-* \
318
333
        | ip2k-* | iq2000-* \
319
 
        | m32r-* | m32rle-* \
 
334
        | m32c-* | m32r-* | m32rle-* \
320
335
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
321
 
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
336
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
322
337
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
323
338
        | mips16-* \
324
339
        | mips64-* | mips64el-* \
 
340
        | mips64octeon-* | mips64octeonel-* \
 
341
        | mips64orion-* | mips64orionel-* \
 
342
        | mips64r5900-* | mips64r5900el-* \
325
343
        | mips64vr-* | mips64vrel-* \
326
 
        | mips64orion-* | mips64orionel-* \
327
344
        | mips64vr4100-* | mips64vr4100el-* \
328
345
        | mips64vr4300-* | mips64vr4300el-* \
329
346
        | mips64vr5000-* | mips64vr5000el-* \
336
353
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
337
354
        | mipstx39-* | mipstx39el-* \
338
355
        | mmix-* \
339
 
        | ms1-* \
 
356
        | mt-* \
340
357
        | msp430-* \
 
358
        | nios-* | nios2-* \
341
359
        | none-* | np1-* | ns16k-* | ns32k-* \
342
360
        | orion-* \
343
361
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
344
362
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
345
363
        | pyramid-* \
346
364
        | romp-* | rs6000-* \
347
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
365
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
348
366
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
349
 
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
367
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
350
368
        | sparclite-* \
351
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
369
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
352
370
        | tahoe-* | thumb-* \
353
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
371
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
354
372
        | tron-* \
355
373
        | v850-* | v850e-* | vax-* \
356
374
        | we32k-* \
357
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
358
 
        | xstormy16-* | xtensa-* \
 
375
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
376
        | xstormy16-* | xtensa*-* \
359
377
        | ymp-* \
360
 
        | z8k-*)
 
378
        | z8k-* | z80-*)
361
379
                ;;
362
 
        m32c-*)
 
380
        # Recognize the basic CPU types without company name, with glob match.
 
381
        xtensa*)
 
382
                basic_machine=$basic_machine-unknown
363
383
                ;;
364
384
        # Recognize the various machine names and aliases which stand
365
385
        # for a CPU type and a company and sometimes even an OS.
431
451
                basic_machine=ns32k-sequent
432
452
                os=-dynix
433
453
                ;;
 
454
        blackfin)
 
455
                basic_machine=bfin-unknown
 
456
                os=-linux
 
457
                ;;
 
458
        blackfin-*)
 
459
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
460
                os=-linux
 
461
                ;;
434
462
        c90)
435
463
                basic_machine=c90-cray
436
464
                os=-unicos
437
465
                ;;
 
466
        cegcc)
 
467
                basic_machine=arm-unknown
 
468
                os=-cegcc
 
469
                ;;
438
470
        convex-c1)
439
471
                basic_machine=c1-convex
440
472
                os=-bsd
463
495
                basic_machine=craynv-cray
464
496
                os=-unicosmp
465
497
                ;;
466
 
        cr16c)
467
 
                basic_machine=cr16c-unknown
 
498
        cr16)
 
499
                basic_machine=cr16-unknown
468
500
                os=-elf
469
501
                ;;
470
502
        crds | unos)
502
534
                basic_machine=m88k-motorola
503
535
                os=-sysv3
504
536
                ;;
 
537
        dicos)
 
538
                basic_machine=i686-pc
 
539
                os=-dicos
 
540
                ;;
505
541
        djgpp)
506
542
                basic_machine=i586-pc
507
543
                os=-msdosdjgpp
656
692
                basic_machine=m68k-isi
657
693
                os=-sysv
658
694
                ;;
 
695
        m68knommu)
 
696
                basic_machine=m68k-unknown
 
697
                os=-linux
 
698
                ;;
 
699
        m68knommu-*)
 
700
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
701
                os=-linux
 
702
                ;;
659
703
        m88k-omron*)
660
704
                basic_machine=m88k-omron
661
705
                ;;
671
715
                basic_machine=i386-pc
672
716
                os=-mingw32
673
717
                ;;
 
718
        mingw32ce)
 
719
                basic_machine=arm-unknown
 
720
                os=-mingw32ce
 
721
                ;;
674
722
        miniframe)
675
723
                basic_machine=m68000-convergent
676
724
                ;;
696
744
                basic_machine=i386-pc
697
745
                os=-msdos
698
746
                ;;
 
747
        ms1-*)
 
748
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
749
                ;;
699
750
        mvs)
700
751
                basic_machine=i370-ibm
701
752
                os=-mvs
794
845
                basic_machine=i860-intel
795
846
                os=-osf
796
847
                ;;
 
848
        parisc)
 
849
                basic_machine=hppa-unknown
 
850
                os=-linux
 
851
                ;;
 
852
        parisc-*)
 
853
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
854
                os=-linux
 
855
                ;;
797
856
        pbd)
798
857
                basic_machine=sparc-tti
799
858
                ;;
803
862
        pc532 | pc532-*)
804
863
                basic_machine=ns32k-pc532
805
864
                ;;
 
865
        pc98)
 
866
                basic_machine=i386-pc
 
867
                ;;
 
868
        pc98-*)
 
869
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
870
                ;;
806
871
        pentium | p5 | k5 | k6 | nexgen | viac3)
807
872
                basic_machine=i586-pc
808
873
                ;;
859
924
                basic_machine=i586-unknown
860
925
                os=-pw32
861
926
                ;;
 
927
        rdos)
 
928
                basic_machine=i386-pc
 
929
                os=-rdos
 
930
                ;;
862
931
        rom68k)
863
932
                basic_machine=m68k-rom68k
864
933
                os=-coff
885
954
        sb1el)
886
955
                basic_machine=mipsisa64sb1el-unknown
887
956
                ;;
 
957
        sde)
 
958
                basic_machine=mipsisa32-sde
 
959
                os=-elf
 
960
                ;;
888
961
        sei)
889
962
                basic_machine=mips-sei
890
963
                os=-seiux
896
969
                basic_machine=sh-hitachi
897
970
                os=-hms
898
971
                ;;
 
972
        sh5el)
 
973
                basic_machine=sh5le-unknown
 
974
                ;;
899
975
        sh64)
900
976
                basic_machine=sh64-unknown
901
977
                ;;
985
1061
                basic_machine=tic6x-unknown
986
1062
                os=-coff
987
1063
                ;;
 
1064
        tile*)
 
1065
                basic_machine=tile-unknown
 
1066
                os=-linux-gnu
 
1067
                ;;
988
1068
        tx39)
989
1069
                basic_machine=mipstx39-unknown
990
1070
                ;;
1060
1140
                basic_machine=z8k-unknown
1061
1141
                os=-sim
1062
1142
                ;;
 
1143
        z80-*-coff)
 
1144
                basic_machine=z80-unknown
 
1145
                os=-sim
 
1146
                ;;
1063
1147
        none)
1064
1148
                basic_machine=none-none
1065
1149
                os=-none
1098
1182
        we32k)
1099
1183
                basic_machine=we32k-att
1100
1184
                ;;
1101
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1185
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1102
1186
                basic_machine=sh-unknown
1103
1187
                ;;
1104
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1188
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1105
1189
                basic_machine=sparc-sun
1106
1190
                ;;
1107
1191
        cydra)
1174
1258
              | -aos* \
1175
1259
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1176
1260
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1177
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1261
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1262
              | -openbsd* | -solidbsd* \
1178
1263
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1179
1264
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1180
1265
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1181
1266
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1182
 
              | -chorusos* | -chorusrdb* \
 
1267
              | -chorusos* | -chorusrdb* | -cegcc* \
1183
1268
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1184
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1269
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1270
              | -uxpv* | -beos* | -mpeix* | -udk* \
1185
1271
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1186
1272
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1187
1273
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1188
1274
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1189
1275
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1190
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* | -skyos*)
 
1276
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1277
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1191
1278
        # Remember, each alternative MUST END IN *, to match a version number.
1192
1279
                ;;
1193
1280
        -qnx*)
1205
1292
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1206
1293
                ;;
1207
1294
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1208
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1295
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1209
1296
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1210
1297
                ;;
1211
1298
        -mac*)
1317
1404
        -zvmoe)
1318
1405
                os=-zvmoe
1319
1406
                ;;
 
1407
        -dicos*)
 
1408
                os=-dicos
 
1409
                ;;
1320
1410
        -none)
1321
1411
                ;;
1322
1412
        *)
1339
1429
# system, and we'll never get to this point.
1340
1430
 
1341
1431
case $basic_machine in
 
1432
        score-*)
 
1433
                os=-elf
 
1434
                ;;
 
1435
        spu-*)
 
1436
                os=-elf
 
1437
                ;;
1342
1438
        *-acorn)
1343
1439
                os=-riscix1.2
1344
1440
                ;;
1348
1444
        arm*-semi)
1349
1445
                os=-aout
1350
1446
                ;;
1351
 
    c4x-* | tic4x-*)
1352
 
        os=-coff
1353
 
        ;;
 
1447
        c4x-* | tic4x-*)
 
1448
                os=-coff
 
1449
                ;;
1354
1450
        # This must come before the *-dec entry.
1355
1451
        pdp10-*)
1356
1452
                os=-tops20
1376
1472
        m68*-cisco)
1377
1473
                os=-aout
1378
1474
                ;;
 
1475
        mep-*)
 
1476
                os=-elf
 
1477
                ;;
1379
1478
        mips*-cisco)
1380
1479
                os=-elf
1381
1480
                ;;
1394
1493
        *-be)
1395
1494
                os=-beos
1396
1495
                ;;
 
1496
        *-haiku)
 
1497
                os=-haiku
 
1498
                ;;
1397
1499
        *-ibm)
1398
1500
                os=-aix
1399
1501
                ;;