~ubuntu-branches/ubuntu/jaunty/speech-tools/jaunty

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2004-07-16 09:25:39 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040716092539-5p1tzif55b8j924e
Tags: 1:1.2.3-8
Added alaw processing code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# Configuration validation subroutine script, version 1.1.
3
 
#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
 
2
# Configuration validation subroutine script.
 
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
4
#   2000, 2001, 2002 Free Software Foundation, Inc.
 
5
 
 
6
timestamp='2002-02-01'
 
7
 
4
8
# This file is (in principle) common to ALL GNU software.
5
9
# The presence of a machine in this file suggests that SOME GNU software
6
10
# can handle that machine.  It does not imply ALL GNU software can.
25
29
# configuration script generated by Autoconf, you may include it under
26
30
# the same distribution terms that you use for the rest of that program.
27
31
 
 
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
 
33
# diff and a properly formatted ChangeLog entry.
 
34
#
28
35
# Configuration subroutine to validate and canonicalize a configuration type.
29
36
# Supply the specified configuration type as an argument.
30
37
# If it is invalid, we print an error message on stderr and exit with code 1.
45
52
#       CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
46
53
# It is wrong to echo any other type of specification.
47
54
 
48
 
if [ x$1 = x ]
49
 
then
50
 
        echo Configuration name missing. 1>&2
51
 
        echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
52
 
        echo "or     $0 ALIAS" 1>&2
53
 
        echo where ALIAS is a recognized configuration type. 1>&2
54
 
        exit 1
55
 
fi
56
 
 
57
 
# First pass through any local machine types.
58
 
case $1 in
59
 
        *local*)
60
 
                echo $1
61
 
                exit 0
62
 
                ;;
63
 
        *)
64
 
        ;;
 
55
me=`echo "$0" | sed -e 's,.*/,,'`
 
56
 
 
57
usage="\
 
58
Usage: $0 [OPTION] CPU-MFR-OPSYS
 
59
       $0 [OPTION] ALIAS
 
60
 
 
61
Canonicalize a configuration name.
 
62
 
 
63
Operation modes:
 
64
  -h, --help         print this help, then exit
 
65
  -t, --time-stamp   print date of last modification, then exit
 
66
  -v, --version      print version number, then exit
 
67
 
 
68
Report bugs and patches to <config-patches@gnu.org>."
 
69
 
 
70
version="\
 
71
GNU config.sub ($timestamp)
 
72
 
 
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 
74
Free Software Foundation, Inc.
 
75
 
 
76
This is free software; see the source for copying conditions.  There is NO
 
77
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
78
 
 
79
help="
 
80
Try \`$me --help' for more information."
 
81
 
 
82
# Parse command line
 
83
while test $# -gt 0 ; do
 
84
  case $1 in
 
85
    --time-stamp | --time* | -t )
 
86
       echo "$timestamp" ; exit 0 ;;
 
87
    --version | -v )
 
88
       echo "$version" ; exit 0 ;;
 
89
    --help | --h* | -h )
 
90
       echo "$usage"; exit 0 ;;
 
91
    -- )     # Stop option processing
 
92
       shift; break ;;
 
93
    - ) # Use stdin as input.
 
94
       break ;;
 
95
    -* )
 
96
       echo "$me: invalid option $1$help"
 
97
       exit 1 ;;
 
98
 
 
99
    *local*)
 
100
       # First pass through any local machine types.
 
101
       echo $1
 
102
       exit 0;;
 
103
 
 
104
    * )
 
105
       break ;;
 
106
  esac
 
107
done
 
108
 
 
109
case $# in
 
110
 0) echo "$me: missing argument$help" >&2
 
111
    exit 1;;
 
112
 1) ;;
 
113
 *) echo "$me: too many arguments$help" >&2
 
114
    exit 1;;
65
115
esac
66
116
 
67
117
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
68
118
# Here we must recognize all the valid KERNEL-OS combinations.
69
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
70
120
case $maybe_os in
71
 
  linux-gnu*)
 
121
  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
72
122
    os=-$maybe_os
73
123
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
74
124
    ;;
94
144
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
95
145
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
96
146
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
97
 
        -apple)
 
147
        -apple | -axis)
98
148
                os=
99
149
                basic_machine=$1
100
150
                ;;
105
155
        -scout)
106
156
                ;;
107
157
        -wrs)
108
 
                os=vxworks
109
 
                basic_machine=$1
110
 
                ;;
 
158
                os=-vxworks
 
159
                basic_machine=$1
 
160
                ;;
 
161
        -chorusos*)
 
162
                os=-chorusos
 
163
                basic_machine=$1
 
164
                ;;
 
165
        -chorusrdb)
 
166
                os=-chorusrdb
 
167
                basic_machine=$1
 
168
                ;;
111
169
        -hiux*)
112
170
                os=-hiuxwe2
113
171
                ;;
156
214
        -psos*)
157
215
                os=-psos
158
216
                ;;
 
217
        -mint | -mint[0-9]*)
 
218
                basic_machine=m68k-atari
 
219
                os=-mint
 
220
                ;;
159
221
esac
160
222
 
161
223
# Decode aliases for certain CPU-COMPANY combinations.
162
224
case $basic_machine in
163
225
        # Recognize the basic CPU types without company name.
164
226
        # Some are omitted here because they have special meanings below.
165
 
        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
166
 
                | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
167
 
                | 580 | i960 | h8300 \
168
 
                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
169
 
                | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
170
 
                | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
171
 
                | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
172
 
                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
173
 
                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
174
 
                | mips64vr5000 | miprs64vr5000el | mcore \
175
 
                | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
176
 
                | thumb | d10v)
177
 
                basic_machine=$basic_machine-unknown
178
 
                ;;
179
 
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65)
 
227
        1750a | 580 \
 
228
        | a29k \
 
229
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 
230
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
231
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
232
        | c4x | clipper \
 
233
        | d10v | d30v | dsp16xx \
 
234
        | fr30 \
 
235
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
236
        | i370 | i860 | i960 | ia64 \
 
237
        | m32r | m68000 | m68k | m88k | mcore \
 
238
        | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
 
239
        | mips64vr4100 | mips64vr4100el | mips64vr4300 \
 
240
        | mips64vr4300el | mips64vr5000 | mips64vr5000el \
 
241
        | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
 
242
        | mipsisa32 \
 
243
        | mn10200 | mn10300 \
 
244
        | ns16k | ns32k \
 
245
        | openrisc | or32 \
 
246
        | pdp10 | pdp11 | pj | pjl \
 
247
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
248
        | pyramid \
 
249
        | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
 
250
        | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
 
251
        | strongarm \
 
252
        | tahoe | thumb | tic80 | tron \
 
253
        | v850 | v850e \
 
254
        | we32k \
 
255
        | x86 | xscale | xstormy16 | xtensa \
 
256
        | z8k)
 
257
                basic_machine=$basic_machine-unknown
 
258
                ;;
 
259
        m6811 | m68hc11 | m6812 | m68hc12)
 
260
                # Motorola 68HC11/12.
 
261
                basic_machine=$basic_machine-unknown
 
262
                os=-none
 
263
                ;;
 
264
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
180
265
                ;;
181
266
 
182
267
        # We use `pc' rather than `unknown'
183
268
        # because (1) that's what they normally are, and
184
269
        # (2) the word "unknown" tends to confuse beginning users.
185
 
        i[34567]86)
 
270
        i*86 | x86_64)
186
271
          basic_machine=$basic_machine-pc
187
272
          ;;
188
273
        # Object if more than one company name word.
191
276
                exit 1
192
277
                ;;
193
278
        # Recognize the basic CPU types with company name.
194
 
        # FIXME: clean up the formatting here.
195
 
        vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
196
 
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
197
 
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
198
 
              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
199
 
              | xmp-* | ymp-* \
200
 
              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
201
 
              | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
202
 
              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
203
 
              | clipper-* | orion-* \
204
 
              | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
205
 
              | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
206
 
              | mips64el-* | mips64orion-* | mips64orionel-* \
207
 
              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
208
 
              | mipstx39-* | mipstx39el-* | mcore-* \
209
 
              | f301-* | armv*-* | t3e-* \
210
 
              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
211
 
              | thumb-* | v850-* | d30v-* | tic30-* | c30-* )
 
279
        580-* \
 
280
        | a29k-* \
 
281
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
 
282
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 
283
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
284
        | arm-*  | armbe-* | armle-* | armv*-* \
 
285
        | avr-* \
 
286
        | bs2000-* \
 
287
        | c[123]* | c30-* | [cjt]90-* | c54x-* \
 
288
        | clipper-* | cray2-* | cydra-* \
 
289
        | d10v-* | d30v-* \
 
290
        | elxsi-* \
 
291
        | f30[01]-* | f700-* | fr30-* | fx80-* \
 
292
        | h8300-* | h8500-* \
 
293
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
294
        | i*86-* | i860-* | i960-* | ia64-* \
 
295
        | m32r-* \
 
296
        | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
 
297
        | m88110-* | m88k-* | mcore-* \
 
298
        | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
 
299
        | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
 
300
        | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
 
301
        | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
 
302
        | none-* | np1-* | ns16k-* | ns32k-* \
 
303
        | orion-* \
 
304
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
 
305
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
306
        | pyramid-* \
 
307
        | romp-* | rs6000-* \
 
308
        | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
 
309
        | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
 
310
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
 
311
        | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
 
312
        | v850-* | v850e-* | vax-* \
 
313
        | we32k-* \
 
314
        | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
 
315
        | xtensa-* \
 
316
        | ymp-* \
 
317
        | z8k-*)
212
318
                ;;
213
319
        # Recognize the various machine names and aliases which stand
214
320
        # for a CPU type and a company and sometimes even an OS.
245
351
                os=-sysv
246
352
                ;;
247
353
        amiga | amiga-*)
248
 
                basic_machine=m68k-cbm
 
354
                basic_machine=m68k-unknown
249
355
                ;;
250
356
        amigaos | amigados)
251
 
                basic_machine=m68k-cbm
 
357
                basic_machine=m68k-unknown
252
358
                os=-amigaos
253
359
                ;;
254
360
        amigaunix | amix)
255
 
                basic_machine=m68k-cbm
 
361
                basic_machine=m68k-unknown
256
362
                os=-sysv4
257
363
                ;;
258
364
        apollo68)
299
405
                basic_machine=cray2-cray
300
406
                os=-unicos
301
407
                ;;
302
 
        [ctj]90-cray)
303
 
                basic_machine=c90-cray
 
408
        [cjt]90)
 
409
                basic_machine=${basic_machine}-cray
304
410
                os=-unicos
305
411
                ;;
306
412
        crds | unos)
307
413
                basic_machine=m68k-crds
308
414
                ;;
 
415
        cris | cris-* | etrax*)
 
416
                basic_machine=cris-axis
 
417
                ;;
309
418
        da30 | da30-*)
310
419
                basic_machine=m68k-da30
311
420
                ;;
312
421
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
313
422
                basic_machine=mips-dec
314
423
                ;;
 
424
        decsystem10* | dec10*)
 
425
                basic_machine=pdp10-dec
 
426
                os=-tops10
 
427
                ;;
 
428
        decsystem20* | dec20*)
 
429
                basic_machine=pdp10-dec
 
430
                os=-tops20
 
431
                ;;
315
432
        delta | 3300 | motorola-3300 | motorola-delta \
316
433
              | 3300-motorola | delta-motorola)
317
434
                basic_machine=m68k-motorola
353
470
                basic_machine=tron-gmicro
354
471
                os=-sysv
355
472
                ;;
 
473
        go32)
 
474
                basic_machine=i386-pc
 
475
                os=-go32
 
476
                ;;
356
477
        h3050r* | hiux*)
357
478
                basic_machine=hppa1.1-hitachi
358
479
                os=-hiuxwe2
426
547
                ;;
427
548
        i370-ibm* | ibm*)
428
549
                basic_machine=i370-ibm
429
 
                os=-mvs
430
550
                ;;
431
551
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
432
 
        i[34567]86v32)
 
552
        i*86v32)
433
553
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
434
554
                os=-sysv32
435
555
                ;;
436
 
        i[34567]86v4*)
 
556
        i*86v4*)
437
557
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
438
558
                os=-sysv4
439
559
                ;;
440
 
        i[34567]86v)
 
560
        i*86v)
441
561
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
442
562
                os=-sysv
443
563
                ;;
444
 
        i[34567]86sol2)
 
564
        i*86sol2)
445
565
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
446
566
                os=-solaris2
447
567
                ;;
453
573
                basic_machine=i386-unknown
454
574
                os=-vsta
455
575
                ;;
456
 
        i386-go32 | go32)
457
 
                basic_machine=i386-unknown
458
 
                os=-go32
459
 
                ;;
460
 
        i386-mingw32 | mingw32)
461
 
                basic_machine=i386-unknown
462
 
                os=-mingw32
463
 
                ;;
464
576
        iris | iris4d)
465
577
                basic_machine=mips-sgi
466
578
                case $os in
486
598
                basic_machine=ns32k-utek
487
599
                os=-sysv
488
600
                ;;
 
601
        mingw32)
 
602
                basic_machine=i386-pc
 
603
                os=-mingw32
 
604
                ;;
489
605
        miniframe)
490
606
                basic_machine=m68000-convergent
491
607
                ;;
492
 
        *mint | *MiNT)
 
608
        *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
493
609
                basic_machine=m68k-atari
494
610
                os=-mint
495
611
                ;;
507
623
        mips3*)
508
624
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
509
625
                ;;
 
626
        mmix*)
 
627
                basic_machine=mmix-knuth
 
628
                os=-mmixware
 
629
                ;;
510
630
        monitor)
511
631
                basic_machine=m68k-rom68k
512
632
                os=-coff
513
633
                ;;
 
634
        morphos)
 
635
                basic_machine=powerpc-unknown
 
636
                os=-morphos
 
637
                ;;
514
638
        msdos)
515
 
                basic_machine=i386-unknown
 
639
                basic_machine=i386-pc
516
640
                os=-msdos
517
641
                ;;
 
642
        mvs)
 
643
                basic_machine=i370-ibm
 
644
                os=-mvs
 
645
                ;;
518
646
        ncr3000)
519
647
                basic_machine=i486-ncr
520
648
                os=-sysv4
524
652
                os=-netbsd
525
653
                ;;
526
654
        netwinder)
527
 
                basic_machine=armv4l-corel
 
655
                basic_machine=armv4l-rebel
528
656
                os=-linux
529
657
                ;;
530
658
        news | news700 | news800 | news900)
572
700
                basic_machine=i960-intel
573
701
                os=-mon960
574
702
                ;;
 
703
        nonstopux)
 
704
                basic_machine=mips-compaq
 
705
                os=-nonstopux
 
706
                ;;
575
707
        np1)
576
708
                basic_machine=np1-gould
577
709
                ;;
 
710
        nsr-tandem)
 
711
                basic_machine=nsr-tandem
 
712
                ;;
578
713
        op50n-* | op60c-*)
579
714
                basic_machine=hppa1.1-oki
580
715
                os=-proelf
581
716
                ;;
 
717
        or32 | or32-*)
 
718
                basic_machine=or32-unknown
 
719
                os=-coff
 
720
                ;;
582
721
        OSE68000 | ose68000)
583
722
                basic_machine=m68000-ericsson
584
723
                os=-ose
604
743
        pc532 | pc532-*)
605
744
                basic_machine=ns32k-pc532
606
745
                ;;
607
 
        pentium | p5 | k5 | k6 | nexen)
 
746
        pentium | p5 | k5 | k6 | nexgen | viac3)
608
747
                basic_machine=i586-pc
609
748
                ;;
610
 
        pentiumpro | p6 | 6x86)
 
749
        pentiumpro | p6 | 6x86 | athlon)
611
750
                basic_machine=i686-pc
612
751
                ;;
613
752
        pentiumii | pentium2)
614
 
                basic_machine=i786-pc
 
753
                basic_machine=i686-pc
615
754
                ;;
616
 
        pentium-* | p5-* | k5-* | k6-* | nexen-*)
 
755
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
617
756
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
618
757
                ;;
619
 
        pentiumpro-* | p6-* | 6x86-*)
 
758
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
620
759
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
621
760
                ;;
622
761
        pentiumii-* | pentium2-*)
623
 
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
762
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
624
763
                ;;
625
764
        pn)
626
765
                basic_machine=pn-gould
627
766
                ;;
628
 
        power)  basic_machine=rs6000-ibm
 
767
        power)  basic_machine=power-ibm
629
768
                ;;
630
769
        ppc)    basic_machine=powerpc-unknown
631
770
                ;;
637
776
        ppcle-* | powerpclittle-*)
638
777
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
639
778
                ;;
 
779
        ppc64)  basic_machine=powerpc64-unknown
 
780
                ;;
 
781
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
782
                ;;
 
783
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
 
784
                basic_machine=powerpc64le-unknown
 
785
                ;;
 
786
        ppc64le-* | powerpc64little-*)
 
787
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
 
788
                ;;
640
789
        ps2)
641
790
                basic_machine=i386-ibm
642
791
                ;;
 
792
        pw32)
 
793
                basic_machine=i586-unknown
 
794
                os=-pw32
 
795
                ;;
643
796
        rom68k)
644
797
                basic_machine=m68k-rom68k
645
798
                os=-coff
650
803
        rtpc | rtpc-*)
651
804
                basic_machine=romp-ibm
652
805
                ;;
 
806
        s390 | s390-*)
 
807
                basic_machine=s390-ibm
 
808
                ;;
 
809
        s390x | s390x-*)
 
810
                basic_machine=s390x-ibm
 
811
                ;;
653
812
        sa29200)
654
813
                basic_machine=a29k-amd
655
814
                os=-udi
661
820
                basic_machine=sh-hitachi
662
821
                os=-hms
663
822
                ;;
664
 
        sparclite-wrs)
 
823
        sparclite-wrs | simso-wrs)
665
824
                basic_machine=sparclite-wrs
666
825
                os=-vxworks
667
826
                ;;
719
878
        sun386 | sun386i | roadrunner)
720
879
                basic_machine=i386-sun
721
880
                ;;
 
881
        sv1)
 
882
                basic_machine=sv1-cray
 
883
                os=-unicos
 
884
                ;;
722
885
        symmetry)
723
886
                basic_machine=i386-sequent
724
887
                os=-dynix
727
890
                basic_machine=t3e-cray
728
891
                os=-unicos
729
892
                ;;
 
893
        tic54x | c54x*)
 
894
                basic_machine=tic54x-unknown
 
895
                os=-coff
 
896
                ;;
730
897
        tx39)
731
898
                basic_machine=mipstx39-unknown
732
899
                ;;
733
900
        tx39el)
734
901
                basic_machine=mipstx39el-unknown
735
902
                ;;
 
903
        toad1)
 
904
                basic_machine=pdp10-xkl
 
905
                os=-tops20
 
906
                ;;
736
907
        tower | tower-32)
737
908
                basic_machine=m68k-ncr
738
909
                ;;
779
950
                basic_machine=hppa1.1-winbond
780
951
                os=-proelf
781
952
                ;;
 
953
        windows32)
 
954
                basic_machine=i386-pc
 
955
                os=-windows32-msvcrt
 
956
                ;;
782
957
        xmp)
783
958
                basic_machine=xmp-cray
784
959
                os=-unicos
822
997
        vax)
823
998
                basic_machine=vax-dec
824
999
                ;;
 
1000
        pdp10)
 
1001
                # there are many clones, so DEC is not a safe bet
 
1002
                basic_machine=pdp10-unknown
 
1003
                ;;
825
1004
        pdp11)
826
1005
                basic_machine=pdp11-dec
827
1006
                ;;
828
1007
        we32k)
829
1008
                basic_machine=we32k-att
830
1009
                ;;
831
 
        sparc | sparcv9)
 
1010
        sh3 | sh4 | sh3eb | sh4eb)
 
1011
                basic_machine=sh-unknown
 
1012
                ;;
 
1013
        sh64)
 
1014
                basic_machine=sh64-unknown
 
1015
                ;;
 
1016
        sparc | sparcv9 | sparcv9b)
832
1017
                basic_machine=sparc-sun
833
1018
                ;;
834
1019
        cydra)
850
1035
                basic_machine=c4x-none
851
1036
                os=-coff
852
1037
                ;;
 
1038
        *-unknown)
 
1039
                # Make sure to match an already-canonicalized machine name.
 
1040
                ;;
853
1041
        *)
854
1042
                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
855
1043
                exit 1
906
1094
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
907
1095
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
908
1096
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 
1097
              | -chorusos* | -chorusrdb* \
909
1098
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
910
1099
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
911
 
              | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
 
1100
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1101
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
 
1102
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
1103
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
912
1104
        # Remember, each alternative MUST END IN *, to match a version number.
913
1105
                ;;
 
1106
        -qnx*)
 
1107
                case $basic_machine in
 
1108
                    x86-* | i*86-*)
 
1109
                        ;;
 
1110
                    *)
 
1111
                        os=-nto$os
 
1112
                        ;;
 
1113
                esac
 
1114
                ;;
 
1115
        -nto*)
 
1116
                os=-nto-qnx
 
1117
                ;;
914
1118
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
915
1119
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
916
 
              | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
 
1120
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
917
1121
                ;;
918
1122
        -mac*)
919
1123
                os=`echo $os | sed -e 's|mac|macos|'`
927
1131
        -sunos6*)
928
1132
                os=`echo $os | sed -e 's|sunos6|solaris3|'`
929
1133
                ;;
 
1134
        -opened*)
 
1135
                os=-openedition
 
1136
                ;;
 
1137
        -wince*)
 
1138
                os=-wince
 
1139
                ;;
930
1140
        -osfrose*)
931
1141
                os=-osfrose
932
1142
                ;;
942
1152
        -acis*)
943
1153
                os=-aos
944
1154
                ;;
 
1155
        -atheos*)
 
1156
                os=-atheos
 
1157
                ;;
945
1158
        -386bsd)
946
1159
                os=-bsd
947
1160
                ;;
951
1164
        -ns2 )
952
1165
                os=-nextstep2
953
1166
                ;;
 
1167
        -nsk*)
 
1168
                os=-nsk
 
1169
                ;;
954
1170
        # Preserve the version number of sinix5.
955
1171
        -sinix5.*)
956
1172
                os=`echo $os | sed -e 's|sinix|sysv|'`
985
1201
        -xenix)
986
1202
                os=-xenix
987
1203
                ;;
988
 
        -*mint | -*MiNT)
 
1204
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
989
1205
                os=-mint
990
1206
                ;;
991
1207
        -none)
1013
1229
        *-acorn)
1014
1230
                os=-riscix1.2
1015
1231
                ;;
1016
 
        arm*-corel)
 
1232
        arm*-rebel)
1017
1233
                os=-linux
1018
1234
                ;;
1019
1235
        arm*-semi)
1020
1236
                os=-aout
1021
1237
                ;;
 
1238
        # This must come before the *-dec entry.
 
1239
        pdp10-*)
 
1240
                os=-tops20
 
1241
                ;;
1022
1242
        pdp11-*)
1023
1243
                os=-none
1024
1244
                ;;
1046
1266
        mips*-*)
1047
1267
                os=-elf
1048
1268
                ;;
 
1269
        or32-*)
 
1270
                os=-coff
 
1271
                ;;
1049
1272
        *-tti)  # must be before sparc entry or we get the wrong os.
1050
1273
                os=-sysv3
1051
1274
                ;;
1127
1350
        *-masscomp)
1128
1351
                os=-rtu
1129
1352
                ;;
1130
 
        f301-fujitsu)
 
1353
        f30[01]-fujitsu | f700-fujitsu)
1131
1354
                os=-uxpv
1132
1355
                ;;
1133
1356
        *-rom68k)
1187
1410
                        -genix*)
1188
1411
                                vendor=ns
1189
1412
                                ;;
1190
 
                        -mvs*)
 
1413
                        -mvs* | -opened*)
1191
1414
                                vendor=ibm
1192
1415
                                ;;
1193
1416
                        -ptx*)
1205
1428
                        -mpw* | -macos*)
1206
1429
                                vendor=apple
1207
1430
                                ;;
1208
 
                        -*mint | -*MiNT)
 
1431
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1209
1432
                                vendor=atari
1210
1433
                                ;;
 
1434
                        -vos*)
 
1435
                                vendor=stratus
 
1436
                                ;;
1211
1437
                esac
1212
1438
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1213
1439
                ;;
1214
1440
esac
1215
1441
 
1216
1442
echo $basic_machine$os
 
1443
exit 0
 
1444
 
 
1445
# Local variables:
 
1446
# eval: (add-hook 'write-file-hooks 'time-stamp)
 
1447
# time-stamp-start: "timestamp='"
 
1448
# time-stamp-format: "%:y-%02m-%02d"
 
1449
# time-stamp-end: "'"
 
1450
# End: