~ubuntu-branches/ubuntu/utopic/tinymux/utopic

« back to all changes in this revision

Viewing changes to src/config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Ervin Hearn III
  • Date: 2008-04-11 23:18:25 UTC
  • mfrom: (1.1.5 upstream) (6.1.1 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080411231825-1pq4trckagyk8roo
Tags: 2.6.5.27-1
New upstream release

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 
5
#   Inc.
5
6
 
6
 
timestamp='2004-06-24'
 
7
timestamp='2006-07-02'
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
21
22
#
22
23
# You should have received a copy of the GNU General Public License
23
24
# along with this program; if not, write to the Free Software
24
 
# Foundation, Inc., 59 Temple Place - Suite 330,
25
 
# Boston, MA 02111-1307, USA.
26
 
 
 
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
26
# 02110-1301, USA.
 
27
#
27
28
# As a special exception to the GNU General Public License, if you
28
29
# distribute this file as part of a program that contains a
29
30
# configuration script generated by Autoconf, you may include it under
30
31
# the same distribution terms that you use for the rest of that program.
31
32
 
 
33
 
32
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
35
# diff and a properly formatted ChangeLog entry.
34
36
#
70
72
version="\
71
73
GNU config.sub ($timestamp)
72
74
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
74
76
Free Software Foundation, Inc.
75
77
 
76
78
This is free software; see the source for copying conditions.  There is NO
83
85
while test $# -gt 0 ; do
84
86
  case $1 in
85
87
    --time-stamp | --time* | -t )
86
 
       echo "$timestamp" ; exit 0 ;;
 
88
       echo "$timestamp" ; exit ;;
87
89
    --version | -v )
88
 
       echo "$version" ; exit 0 ;;
 
90
       echo "$version" ; exit ;;
89
91
    --help | --h* | -h )
90
 
       echo "$usage"; exit 0 ;;
 
92
       echo "$usage"; exit ;;
91
93
    -- )     # Stop option processing
92
94
       shift; break ;;
93
95
    - ) # Use stdin as input.
99
101
    *local*)
100
102
       # First pass through any local machine types.
101
103
       echo $1
102
 
       exit 0;;
 
104
       exit ;;
103
105
 
104
106
    * )
105
107
       break ;;
118
120
# Here we must recognize all the valid KERNEL-OS combinations.
119
121
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
122
case $maybe_os in
121
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
122
 
  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*)
123
126
    os=-$maybe_os
124
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125
128
    ;;
170
173
        -hiux*)
171
174
                os=-hiuxwe2
172
175
                ;;
 
176
        -sco6)
 
177
                os=-sco5v6
 
178
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
179
                ;;
173
180
        -sco5)
174
181
                os=-sco3.2v5
175
182
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186
193
                # Don't forget version if it is 3.2v4 or newer.
187
194
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188
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
                ;;
189
200
        -sco*)
190
201
                os=-sco3.2v2
191
202
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
230
241
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231
242
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
243
        | am33_2.0 \
233
 
        | 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 \
 
245
        | bfin \
234
246
        | c4x | clipper \
235
247
        | d10v | d30v | dlx | dsp16xx \
236
248
        | fr30 | frv \
237
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
250
        | i370 | i860 | i960 | ia64 \
239
251
        | ip2k | iq2000 \
240
 
        | m32r | m32rle | m68000 | m68k | m88k | mcore \
 
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
253
        | maxq | mb | microblaze | mcore \
241
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
242
255
        | mips16 \
243
256
        | mips64 | mips64el \
246
259
        | mips64vr4100 | mips64vr4100el \
247
260
        | mips64vr4300 | mips64vr4300el \
248
261
        | mips64vr5000 | mips64vr5000el \
 
262
        | mips64vr5900 | mips64vr5900el \
249
263
        | mipsisa32 | mipsisa32el \
250
264
        | mipsisa32r2 | mipsisa32r2el \
251
265
        | mipsisa64 | mipsisa64el \
254
268
        | mipsisa64sr71k | mipsisa64sr71kel \
255
269
        | mipstx39 | mipstx39el \
256
270
        | mn10200 | mn10300 \
 
271
        | mt \
257
272
        | msp430 \
 
273
        | nios | nios2 \
258
274
        | ns16k | ns32k \
259
 
        | openrisc | or32 \
 
275
        | or32 \
260
276
        | pdp10 | pdp11 | pj | pjl \
261
277
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262
278
        | pyramid \
263
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
279
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
264
280
        | sh64 | sh64le \
265
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
266
 
        | strongarm \
 
281
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
282
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
283
        | spu | strongarm \
267
284
        | tahoe | thumb | tic4x | tic80 | tron \
268
285
        | v850 | v850e \
269
286
        | we32k \
270
 
        | x86 | xscale | xstormy16 | xtensa \
 
287
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
271
288
        | z8k)
272
289
                basic_machine=$basic_machine-unknown
273
290
                ;;
278
295
                ;;
279
296
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
280
297
                ;;
 
298
        ms1)
 
299
                basic_machine=mt-unknown
 
300
                ;;
281
301
 
282
302
        # We use `pc' rather than `unknown'
283
303
        # because (1) that's what they normally are, and
297
317
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298
318
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299
319
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
300
 
        | avr-* \
301
 
        | bs2000-* \
 
320
        | avr-* | avr32-* \
 
321
        | bfin-* | bs2000-* \
302
322
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
323
        | clipper-* | craynv-* | cydra-* \
304
324
        | d10v-* | d30v-* | dlx-* \
308
328
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
329
        | i*86-* | i860-* | i960-* | ia64-* \
310
330
        | ip2k-* | iq2000-* \
311
 
        | m32r-* | m32rle-* \
 
331
        | m32c-* | m32r-* | m32rle-* \
312
332
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
 
        | m88110-* | m88k-* | mcore-* \
 
333
        | m88110-* | m88k-* | maxq-* | mcore-* \
314
334
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315
335
        | mips16-* \
316
336
        | mips64-* | mips64el-* \
319
339
        | mips64vr4100-* | mips64vr4100el-* \
320
340
        | mips64vr4300-* | mips64vr4300el-* \
321
341
        | mips64vr5000-* | mips64vr5000el-* \
 
342
        | mips64vr5900-* | mips64vr5900el-* \
322
343
        | mipsisa32-* | mipsisa32el-* \
323
344
        | mipsisa32r2-* | mipsisa32r2el-* \
324
345
        | mipsisa64-* | mipsisa64el-* \
327
348
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
349
        | mipstx39-* | mipstx39el-* \
329
350
        | mmix-* \
 
351
        | mt-* \
330
352
        | msp430-* \
 
353
        | nios-* | nios2-* \
331
354
        | none-* | np1-* | ns16k-* | ns32k-* \
332
355
        | orion-* \
333
356
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
334
357
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
335
358
        | pyramid-* \
336
359
        | romp-* | rs6000-* \
337
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
360
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
338
361
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
339
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
340
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
362
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
363
        | sparclite-* \
 
364
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
341
365
        | tahoe-* | thumb-* \
342
366
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
343
367
        | tron-* \
344
368
        | v850-* | v850e-* | vax-* \
345
369
        | we32k-* \
346
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
347
 
        | xtensa-* \
 
370
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
 
371
        | xstormy16-* | xtensa-* \
348
372
        | ymp-* \
349
373
        | z8k-*)
350
374
                ;;
367
391
        abacus)
368
392
                basic_machine=abacus-unknown
369
393
                ;;
 
394
        abacus)
 
395
                basic_machine=abacus-unknown
 
396
                ;;
370
397
        adobe68k)
371
398
                basic_machine=m68010-adobe
372
399
                os=-scout
387
414
        amd64-*)
388
415
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
389
416
                ;;
 
417
        amd64)
 
418
                basic_machine=x86_64-pc
 
419
                ;;
 
420
        amd64-*)
 
421
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
422
                ;;
390
423
        amdahl)
391
424
                basic_machine=580-amdahl
392
425
                os=-sysv
422
455
                basic_machine=c90-cray
423
456
                os=-unicos
424
457
                ;;
 
458
        c90)
 
459
                basic_machine=c90-cray
 
460
                os=-unicos
 
461
                ;;
425
462
        convex-c1)
426
463
                basic_machine=c1-convex
427
464
                os=-bsd
457
494
        crds | unos)
458
495
                basic_machine=m68k-crds
459
496
                ;;
 
497
        crisv32 | crisv32-* | etraxfs*)
 
498
                basic_machine=crisv32-axis
 
499
                ;;
460
500
        cris | cris-* | etrax*)
461
501
                basic_machine=cris-axis
462
502
                ;;
486
526
                basic_machine=m88k-motorola
487
527
                os=-sysv3
488
528
                ;;
 
529
        djgpp)
 
530
                basic_machine=i586-pc
 
531
                os=-msdosdjgpp
 
532
                ;;
489
533
        dpx20 | dpx20-*)
490
534
                basic_machine=rs6000-bull
491
535
                os=-bosx
676
720
                basic_machine=i386-pc
677
721
                os=-msdos
678
722
                ;;
 
723
        ms1-*)
 
724
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
725
                ;;
679
726
        mvs)
680
727
                basic_machine=i370-ibm
681
728
                os=-mvs
751
798
                basic_machine=hppa1.1-oki
752
799
                os=-proelf
753
800
                ;;
 
801
        openrisc | openrisc-*)
 
802
                basic_machine=or32-unknown
 
803
                ;;
 
804
        os400)
 
805
                basic_machine=powerpc-ibm
 
806
                os=-os400
 
807
                ;;
754
808
        or32 | or32-*)
755
809
                basic_machine=or32-unknown
756
810
                os=-coff
784
838
        pc532 | pc532-*)
785
839
                basic_machine=ns32k-pc532
786
840
                ;;
 
841
        pc98)
 
842
                basic_machine=i386-pc
 
843
                ;;
 
844
        pc98-*)
 
845
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
846
                ;;
787
847
        pentium | p5 | k5 | k6 | nexgen | viac3)
788
848
                basic_machine=i586-pc
789
849
                ;;
840
900
                basic_machine=i586-unknown
841
901
                os=-pw32
842
902
                ;;
 
903
        rdos)
 
904
                basic_machine=i386-pc
 
905
                os=-rdos
 
906
                ;;
843
907
        rom68k)
844
908
                basic_machine=m68k-rom68k
845
909
                os=-coff
1026
1090
                basic_machine=hppa1.1-winbond
1027
1091
                os=-proelf
1028
1092
                ;;
 
1093
        xbox)
 
1094
                basic_machine=i686-pc
 
1095
                os=-mingw32
 
1096
                ;;
1029
1097
        xps | xps100)
1030
1098
                basic_machine=xps100-honeywell
1031
1099
                ;;
1075
1143
        we32k)
1076
1144
                basic_machine=we32k-att
1077
1145
                ;;
1078
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1146
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1079
1147
                basic_machine=sh-unknown
1080
1148
                ;;
1081
 
        sh64)
1082
 
                basic_machine=sh64-unknown
1083
 
                ;;
1084
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1149
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1085
1150
                basic_machine=sparc-sun
1086
1151
                ;;
1087
1152
        cydra)
1154
1219
              | -aos* \
1155
1220
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156
1221
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1222
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1223
              | -openbsd* | -solidbsd* \
1158
1224
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
1225
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160
1226
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161
1227
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162
1228
              | -chorusos* | -chorusrdb* \
1163
1229
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1230
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1231
              | -uxpv* | -beos* | -mpeix* | -udk* \
1165
1232
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1166
1233
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167
1234
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
1235
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
1236
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1237
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1238
              | -skyos* | -haiku* | -rdos* | -toppers*)
1171
1239
        # Remember, each alternative MUST END IN *, to match a version number.
1172
1240
                ;;
1173
1241
        -qnx*)
1185
1253
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1186
1254
                ;;
1187
1255
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1256
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1189
1257
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1190
1258
                ;;
1191
1259
        -mac*)
1194
1262
        -linux-dietlibc)
1195
1263
                os=-linux-dietlibc
1196
1264
                ;;
 
1265
        -linux-dietlibc)
 
1266
                os=-linux-dietlibc
 
1267
                ;;
1197
1268
        -linux*)
1198
1269
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1199
1270
                ;;
1209
1280
        -os400*)
1210
1281
                os=-os400
1211
1282
                ;;
 
1283
        -os400*)
 
1284
                os=-os400
 
1285
                ;;
1212
1286
        -wince*)
1213
1287
                os=-wince
1214
1288
                ;;
1258
1332
        -tpf*)
1259
1333
                os=-tpf
1260
1334
                ;;
 
1335
        -tpf*)
 
1336
                os=-tpf
 
1337
                ;;
1261
1338
        -triton*)
1262
1339
                os=-sysv3
1263
1340
                ;;
1294
1371
        -kaos*)
1295
1372
                os=-kaos
1296
1373
                ;;
 
1374
        -zvmoe)
 
1375
                os=-zvmoe
 
1376
                ;;
1297
1377
        -none)
1298
1378
                ;;
1299
1379
        *)
1316
1396
# system, and we'll never get to this point.
1317
1397
 
1318
1398
case $basic_machine in
 
1399
        spu-*)
 
1400
                os=-elf
 
1401
                ;;
1319
1402
        *-acorn)
1320
1403
                os=-riscix1.2
1321
1404
                ;;
1325
1408
        arm*-semi)
1326
1409
                os=-aout
1327
1410
                ;;
1328
 
    c4x-* | tic4x-*)
1329
 
        os=-coff
1330
 
        ;;
 
1411
        c4x-* | tic4x-*)
 
1412
                os=-coff
 
1413
                ;;
1331
1414
        # This must come before the *-dec entry.
1332
1415
        pdp10-*)
1333
1416
                os=-tops20
1362
1445
        or32-*)
1363
1446
                os=-coff
1364
1447
                ;;
 
1448
        or32-*)
 
1449
                os=-coff
 
1450
                ;;
1365
1451
        *-tti)  # must be before sparc entry or we get the wrong os.
1366
1452
                os=-sysv3
1367
1453
                ;;
1371
1457
        *-be)
1372
1458
                os=-beos
1373
1459
                ;;
 
1460
        *-haiku)
 
1461
                os=-haiku
 
1462
                ;;
1374
1463
        *-ibm)
1375
1464
                os=-aix
1376
1465
                ;;
1377
1466
        *-knuth)
1378
1467
                os=-mmixware
1379
1468
                ;;
 
1469
        *-knuth)
 
1470
                os=-mmixware
 
1471
                ;;
1380
1472
        *-wec)
1381
1473
                os=-proelf
1382
1474
                ;;
1542
1634
esac
1543
1635
 
1544
1636
echo $basic_machine$os
1545
 
exit 0
 
1637
exit
1546
1638
 
1547
1639
# Local variables:
1548
1640
# eval: (add-hook 'write-file-hooks 'time-stamp)