~ubuntu-branches/ubuntu/lucid/geda-symbols/lucid

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2006-11-14 23:49:05 UTC
  • mfrom: (1.3.1 upstream) (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061114234905-jbgkr3kh5205x83e
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
                ;;
457
481
        crds | unos)
458
482
                basic_machine=m68k-crds
459
483
                ;;
 
484
        crisv32 | crisv32-* | etraxfs*)
 
485
                basic_machine=crisv32-axis
 
486
                ;;
460
487
        cris | cris-* | etrax*)
461
488
                basic_machine=cris-axis
462
489
                ;;
486
513
                basic_machine=m88k-motorola
487
514
                os=-sysv3
488
515
                ;;
 
516
        djgpp)
 
517
                basic_machine=i586-pc
 
518
                os=-msdosdjgpp
 
519
                ;;
489
520
        dpx20 | dpx20-*)
490
521
                basic_machine=rs6000-bull
491
522
                os=-bosx
676
707
                basic_machine=i386-pc
677
708
                os=-msdos
678
709
                ;;
 
710
        ms1-*)
 
711
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
712
                ;;
679
713
        mvs)
680
714
                basic_machine=i370-ibm
681
715
                os=-mvs
751
785
                basic_machine=hppa1.1-oki
752
786
                os=-proelf
753
787
                ;;
754
 
        or32 | or32-*)
 
788
        openrisc | openrisc-*)
755
789
                basic_machine=or32-unknown
756
 
                os=-coff
757
790
                ;;
758
791
        os400)
759
792
                basic_machine=powerpc-ibm
784
817
        pc532 | pc532-*)
785
818
                basic_machine=ns32k-pc532
786
819
                ;;
 
820
        pc98)
 
821
                basic_machine=i386-pc
 
822
                ;;
 
823
        pc98-*)
 
824
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
825
                ;;
787
826
        pentium | p5 | k5 | k6 | nexgen | viac3)
788
827
                basic_machine=i586-pc
789
828
                ;;
840
879
                basic_machine=i586-unknown
841
880
                os=-pw32
842
881
                ;;
 
882
        rdos)
 
883
                basic_machine=i386-pc
 
884
                os=-rdos
 
885
                ;;
843
886
        rom68k)
844
887
                basic_machine=m68k-rom68k
845
888
                os=-coff
1026
1069
                basic_machine=hppa1.1-winbond
1027
1070
                os=-proelf
1028
1071
                ;;
 
1072
        xbox)
 
1073
                basic_machine=i686-pc
 
1074
                os=-mingw32
 
1075
                ;;
1029
1076
        xps | xps100)
1030
1077
                basic_machine=xps100-honeywell
1031
1078
                ;;
1075
1122
        we32k)
1076
1123
                basic_machine=we32k-att
1077
1124
                ;;
1078
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1125
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1079
1126
                basic_machine=sh-unknown
1080
1127
                ;;
1081
 
        sh64)
1082
 
                basic_machine=sh64-unknown
1083
 
                ;;
1084
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1128
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1085
1129
                basic_machine=sparc-sun
1086
1130
                ;;
1087
1131
        cydra)
1154
1198
              | -aos* \
1155
1199
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156
1200
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1201
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1202
              | -openbsd* | -solidbsd* \
1158
1203
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
1204
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160
1205
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161
1206
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162
1207
              | -chorusos* | -chorusrdb* \
1163
1208
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1209
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1210
              | -uxpv* | -beos* | -mpeix* | -udk* \
1165
1211
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1166
1212
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167
1213
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
1214
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
1215
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1216
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1217
              | -skyos* | -haiku* | -rdos* | -toppers*)
1171
1218
        # Remember, each alternative MUST END IN *, to match a version number.
1172
1219
                ;;
1173
1220
        -qnx*)
1185
1232
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1186
1233
                ;;
1187
1234
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1235
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1189
1236
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1190
1237
                ;;
1191
1238
        -mac*)
1294
1341
        -kaos*)
1295
1342
                os=-kaos
1296
1343
                ;;
 
1344
        -zvmoe)
 
1345
                os=-zvmoe
 
1346
                ;;
1297
1347
        -none)
1298
1348
                ;;
1299
1349
        *)
1316
1366
# system, and we'll never get to this point.
1317
1367
 
1318
1368
case $basic_machine in
 
1369
        spu-*)
 
1370
                os=-elf
 
1371
                ;;
1319
1372
        *-acorn)
1320
1373
                os=-riscix1.2
1321
1374
                ;;
1325
1378
        arm*-semi)
1326
1379
                os=-aout
1327
1380
                ;;
1328
 
    c4x-* | tic4x-*)
1329
 
        os=-coff
1330
 
        ;;
 
1381
        c4x-* | tic4x-*)
 
1382
                os=-coff
 
1383
                ;;
1331
1384
        # This must come before the *-dec entry.
1332
1385
        pdp10-*)
1333
1386
                os=-tops20
1371
1424
        *-be)
1372
1425
                os=-beos
1373
1426
                ;;
 
1427
        *-haiku)
 
1428
                os=-haiku
 
1429
                ;;
1374
1430
        *-ibm)
1375
1431
                os=-aix
1376
1432
                ;;
1542
1598
esac
1543
1599
 
1544
1600
echo $basic_machine$os
1545
 
exit 0
 
1601
exit
1546
1602
 
1547
1603
# Local variables:
1548
1604
# eval: (add-hook 'write-file-hooks 'time-stamp)