~ubuntu-branches/ubuntu/hoary/pcre3/hoary-security

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2004-03-12 13:23:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040312132302-id6ksx1l8dwssbw9
Tags: 4.5-1.1
* NMU to fix rc-bugs.
* Update libtool related files to fix build-error on mips, keep original
  config.in, as it is no generated file. (Closes: #237265)
* pcregrep replaces pgrep. (Closes: #237564)
* Bump shlibs, pcre 4.5 includes two new functions.
* Let pgrep's /usr/share/doc symlink point to the package it depends on,
  pcregrep.

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, 2003 Free Software Foundation, Inc.
 
5
 
 
6
timestamp='2004-01-05'
 
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* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
 
122
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
72
123
    os=-$maybe_os
73
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
74
125
    ;;
94
145
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
95
146
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
96
147
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
97
 
        -apple)
 
148
        -apple | -axis)
98
149
                os=
99
150
                basic_machine=$1
100
151
                ;;
108
159
                os=-vxworks
109
160
                basic_machine=$1
110
161
                ;;
 
162
        -chorusos*)
 
163
                os=-chorusos
 
164
                basic_machine=$1
 
165
                ;;
 
166
        -chorusrdb)
 
167
                os=-chorusrdb
 
168
                basic_machine=$1
 
169
                ;;
111
170
        -hiux*)
112
171
                os=-hiuxwe2
113
172
                ;;
166
225
case $basic_machine in
167
226
        # Recognize the basic CPU types without company name.
168
227
        # Some are omitted here because they have special meanings below.
169
 
        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
170
 
                | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
171
 
                | 580 | i960 | h8300 \
172
 
                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
173
 
                | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
174
 
                | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
175
 
                | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
176
 
                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
177
 
                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
178
 
                | mips64vr5000 | miprs64vr5000el | mcore \
179
 
                | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
180
 
                | thumb | d10v | fr30)
181
 
                basic_machine=$basic_machine-unknown
182
 
                ;;
183
 
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
 
228
        1750a | 580 \
 
229
        | a29k \
 
230
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 
231
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
232
        | am33_2.0 \
 
233
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
234
        | c4x | clipper \
 
235
        | d10v | d30v | dlx | dsp16xx \
 
236
        | fr30 | frv \
 
237
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
238
        | i370 | i860 | i960 | ia64 \
 
239
        | ip2k | iq2000 \
 
240
        | m32r | m68000 | m68k | m88k | mcore \
 
241
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
242
        | mips16 \
 
243
        | mips64 | mips64el \
 
244
        | mips64vr | mips64vrel \
 
245
        | mips64orion | mips64orionel \
 
246
        | mips64vr4100 | mips64vr4100el \
 
247
        | mips64vr4300 | mips64vr4300el \
 
248
        | mips64vr5000 | mips64vr5000el \
 
249
        | mipsisa32 | mipsisa32el \
 
250
        | mipsisa32r2 | mipsisa32r2el \
 
251
        | mipsisa64 | mipsisa64el \
 
252
        | mipsisa64r2 | mipsisa64r2el \
 
253
        | mipsisa64sb1 | mipsisa64sb1el \
 
254
        | mipsisa64sr71k | mipsisa64sr71kel \
 
255
        | mipstx39 | mipstx39el \
 
256
        | mn10200 | mn10300 \
 
257
        | msp430 \
 
258
        | ns16k | ns32k \
 
259
        | openrisc | or32 \
 
260
        | pdp10 | pdp11 | pj | pjl \
 
261
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
262
        | pyramid \
 
263
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
264
        | sh64 | sh64le \
 
265
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
 
266
        | strongarm \
 
267
        | tahoe | thumb | tic4x | tic80 | tron \
 
268
        | v850 | v850e \
 
269
        | we32k \
 
270
        | x86 | xscale | xstormy16 | xtensa \
 
271
        | z8k)
 
272
                basic_machine=$basic_machine-unknown
 
273
                ;;
 
274
        m6811 | m68hc11 | m6812 | m68hc12)
 
275
                # Motorola 68HC11/12.
 
276
                basic_machine=$basic_machine-unknown
 
277
                os=-none
 
278
                ;;
 
279
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
184
280
                ;;
185
281
 
186
282
        # We use `pc' rather than `unknown'
187
283
        # because (1) that's what they normally are, and
188
284
        # (2) the word "unknown" tends to confuse beginning users.
189
 
        i[34567]86)
 
285
        i*86 | x86_64)
190
286
          basic_machine=$basic_machine-pc
191
287
          ;;
192
288
        # Object if more than one company name word.
195
291
                exit 1
196
292
                ;;
197
293
        # Recognize the basic CPU types with company name.
198
 
        # FIXME: clean up the formatting here.
199
 
        vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
200
 
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
201
 
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
202
 
              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
203
 
              | xmp-* | ymp-* \
204
 
              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
205
 
              | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
206
 
              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
207
 
              | clipper-* | orion-* \
208
 
              | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
209
 
              | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
210
 
              | mips64el-* | mips64orion-* | mips64orionel-* \
211
 
              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
212
 
              | mipstx39-* | mipstx39el-* | mcore-* \
213
 
              | f301-* | armv*-* | t3e-* \
214
 
              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
215
 
              | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
 
294
        580-* \
 
295
        | a29k-* \
 
296
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
 
297
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 
298
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
299
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
 
300
        | avr-* \
 
301
        | bs2000-* \
 
302
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
303
        | clipper-* | cydra-* \
 
304
        | d10v-* | d30v-* | dlx-* \
 
305
        | elxsi-* \
 
306
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
307
        | h8300-* | h8500-* \
 
308
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
309
        | i*86-* | i860-* | i960-* | ia64-* \
 
310
        | ip2k-* | iq2000-* \
 
311
        | m32r-* \
 
312
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 
313
        | m88110-* | m88k-* | mcore-* \
 
314
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
315
        | mips16-* \
 
316
        | mips64-* | mips64el-* \
 
317
        | mips64vr-* | mips64vrel-* \
 
318
        | mips64orion-* | mips64orionel-* \
 
319
        | mips64vr4100-* | mips64vr4100el-* \
 
320
        | mips64vr4300-* | mips64vr4300el-* \
 
321
        | mips64vr5000-* | mips64vr5000el-* \
 
322
        | mipsisa32-* | mipsisa32el-* \
 
323
        | mipsisa32r2-* | mipsisa32r2el-* \
 
324
        | mipsisa64-* | mipsisa64el-* \
 
325
        | mipsisa64r2-* | mipsisa64r2el-* \
 
326
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
327
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
328
        | mipstx39-* | mipstx39el-* \
 
329
        | msp430-* \
 
330
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
331
        | orion-* \
 
332
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
 
333
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
334
        | pyramid-* \
 
335
        | romp-* | rs6000-* \
 
336
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
337
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
338
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
 
339
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
340
        | tahoe-* | thumb-* \
 
341
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
342
        | tron-* \
 
343
        | v850-* | v850e-* | vax-* \
 
344
        | we32k-* \
 
345
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
 
346
        | xtensa-* \
 
347
        | ymp-* \
 
348
        | z8k-*)
216
349
                ;;
217
350
        # Recognize the various machine names and aliases which stand
218
351
        # for a CPU type and a company and sometimes even an OS.
244
377
                basic_machine=a29k-none
245
378
                os=-bsd
246
379
                ;;
 
380
        amd64)
 
381
                basic_machine=x86_64-pc
 
382
                ;;
 
383
        amd64-*)
 
384
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
385
                ;;
247
386
        amdahl)
248
387
                basic_machine=580-amdahl
249
388
                os=-sysv
250
389
                ;;
251
390
        amiga | amiga-*)
252
 
                basic_machine=m68k-cbm
 
391
                basic_machine=m68k-unknown
253
392
                ;;
254
393
        amigaos | amigados)
255
 
                basic_machine=m68k-cbm
 
394
                basic_machine=m68k-unknown
256
395
                os=-amigaos
257
396
                ;;
258
397
        amigaunix | amix)
259
 
                basic_machine=m68k-cbm
 
398
                basic_machine=m68k-unknown
260
399
                os=-sysv4
261
400
                ;;
262
401
        apollo68)
275
414
                basic_machine=ns32k-sequent
276
415
                os=-dynix
277
416
                ;;
 
417
        c90)
 
418
                basic_machine=c90-cray
 
419
                os=-unicos
 
420
                ;;
278
421
        convex-c1)
279
422
                basic_machine=c1-convex
280
423
                os=-bsd
295
438
                basic_machine=c38-convex
296
439
                os=-bsd
297
440
                ;;
298
 
        cray | ymp)
299
 
                basic_machine=ymp-cray
300
 
                os=-unicos
301
 
                ;;
302
 
        cray2)
303
 
                basic_machine=cray2-cray
304
 
                os=-unicos
305
 
                ;;
306
 
        [ctj]90-cray)
307
 
                basic_machine=c90-cray
 
441
        cray | j90)
 
442
                basic_machine=j90-cray
308
443
                os=-unicos
309
444
                ;;
310
445
        crds | unos)
311
446
                basic_machine=m68k-crds
312
447
                ;;
 
448
        cris | cris-* | etrax*)
 
449
                basic_machine=cris-axis
 
450
                ;;
313
451
        da30 | da30-*)
314
452
                basic_machine=m68k-da30
315
453
                ;;
316
454
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
317
455
                basic_machine=mips-dec
318
456
                ;;
 
457
        decsystem10* | dec10*)
 
458
                basic_machine=pdp10-dec
 
459
                os=-tops10
 
460
                ;;
 
461
        decsystem20* | dec20*)
 
462
                basic_machine=pdp10-dec
 
463
                os=-tops20
 
464
                ;;
319
465
        delta | 3300 | motorola-3300 | motorola-delta \
320
466
              | 3300-motorola | delta-motorola)
321
467
                basic_machine=m68k-motorola
357
503
                basic_machine=tron-gmicro
358
504
                os=-sysv
359
505
                ;;
 
506
        go32)
 
507
                basic_machine=i386-pc
 
508
                os=-go32
 
509
                ;;
360
510
        h3050r* | hiux*)
361
511
                basic_machine=hppa1.1-hitachi
362
512
                os=-hiuxwe2
432
582
                basic_machine=i370-ibm
433
583
                ;;
434
584
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
435
 
        i[34567]86v32)
 
585
        i*86v32)
436
586
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
437
587
                os=-sysv32
438
588
                ;;
439
 
        i[34567]86v4*)
 
589
        i*86v4*)
440
590
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
441
591
                os=-sysv4
442
592
                ;;
443
 
        i[34567]86v)
 
593
        i*86v)
444
594
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
445
595
                os=-sysv
446
596
                ;;
447
 
        i[34567]86sol2)
 
597
        i*86sol2)
448
598
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
449
599
                os=-solaris2
450
600
                ;;
456
606
                basic_machine=i386-unknown
457
607
                os=-vsta
458
608
                ;;
459
 
        i386-go32 | go32)
460
 
                basic_machine=i386-unknown
461
 
                os=-go32
462
 
                ;;
463
 
        i386-mingw32 | mingw32)
464
 
                basic_machine=i386-unknown
465
 
                os=-mingw32
466
 
                ;;
467
 
        i386-qnx | qnx)
468
 
                basic_machine=i386-qnx
469
 
                ;;
470
609
        iris | iris4d)
471
610
                basic_machine=mips-sgi
472
611
                case $os in
492
631
                basic_machine=ns32k-utek
493
632
                os=-sysv
494
633
                ;;
 
634
        mingw32)
 
635
                basic_machine=i386-pc
 
636
                os=-mingw32
 
637
                ;;
495
638
        miniframe)
496
639
                basic_machine=m68000-convergent
497
640
                ;;
499
642
                basic_machine=m68k-atari
500
643
                os=-mint
501
644
                ;;
502
 
        mipsel*-linux*)
503
 
                basic_machine=mipsel-unknown
504
 
                os=-linux-gnu
505
 
                ;;
506
 
        mips*-linux*)
507
 
                basic_machine=mips-unknown
508
 
                os=-linux-gnu
509
 
                ;;
510
645
        mips3*-*)
511
646
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
512
647
                ;;
513
648
        mips3*)
514
649
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
515
650
                ;;
 
651
        mmix*)
 
652
                basic_machine=mmix-knuth
 
653
                os=-mmixware
 
654
                ;;
516
655
        monitor)
517
656
                basic_machine=m68k-rom68k
518
657
                os=-coff
519
658
                ;;
 
659
        morphos)
 
660
                basic_machine=powerpc-unknown
 
661
                os=-morphos
 
662
                ;;
520
663
        msdos)
521
 
                basic_machine=i386-unknown
 
664
                basic_machine=i386-pc
522
665
                os=-msdos
523
666
                ;;
524
667
        mvs)
582
725
                basic_machine=i960-intel
583
726
                os=-mon960
584
727
                ;;
 
728
        nonstopux)
 
729
                basic_machine=mips-compaq
 
730
                os=-nonstopux
 
731
                ;;
585
732
        np1)
586
733
                basic_machine=np1-gould
587
734
                ;;
 
735
        nv1)
 
736
                basic_machine=nv1-cray
 
737
                os=-unicosmp
 
738
                ;;
 
739
        nsr-tandem)
 
740
                basic_machine=nsr-tandem
 
741
                ;;
588
742
        op50n-* | op60c-*)
589
743
                basic_machine=hppa1.1-oki
590
744
                os=-proelf
591
745
                ;;
 
746
        or32 | or32-*)
 
747
                basic_machine=or32-unknown
 
748
                os=-coff
 
749
                ;;
 
750
        os400)
 
751
                basic_machine=powerpc-ibm
 
752
                os=-os400
 
753
                ;;
592
754
        OSE68000 | ose68000)
593
755
                basic_machine=m68000-ericsson
594
756
                os=-ose
611
773
        pbb)
612
774
                basic_machine=m68k-tti
613
775
                ;;
614
 
        pc532 | pc532-*)
 
776
        pc532 | pc532-*)
615
777
                basic_machine=ns32k-pc532
616
778
                ;;
617
 
        pentium | p5 | k5 | k6 | nexen)
 
779
        pentium | p5 | k5 | k6 | nexgen | viac3)
618
780
                basic_machine=i586-pc
619
781
                ;;
620
 
        pentiumpro | p6 | 6x86)
621
 
                basic_machine=i686-pc
622
 
                ;;
623
 
        pentiumii | pentium2)
 
782
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
783
                basic_machine=i686-pc
 
784
                ;;
 
785
        pentiumii | pentium2 | pentiumiii | pentium3)
 
786
                basic_machine=i686-pc
 
787
                ;;
 
788
        pentium4)
624
789
                basic_machine=i786-pc
625
790
                ;;
626
 
        pentium-* | p5-* | k5-* | k6-* | nexen-*)
 
791
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
627
792
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
628
793
                ;;
629
 
        pentiumpro-* | p6-* | 6x86-*)
630
 
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
631
 
                ;;
632
 
        pentiumii-* | pentium2-*)
 
794
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
 
795
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
 
796
                ;;
 
797
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
 
798
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
 
799
                ;;
 
800
        pentium4-*)
633
801
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
634
802
                ;;
635
803
        pn)
636
804
                basic_machine=pn-gould
637
805
                ;;
638
 
        power)  basic_machine=rs6000-ibm
 
806
        power)  basic_machine=power-ibm
639
807
                ;;
640
808
        ppc)    basic_machine=powerpc-unknown
641
 
                ;;
 
809
                ;;
642
810
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
643
811
                ;;
644
812
        ppcle | powerpclittle | ppc-le | powerpc-little)
645
813
                basic_machine=powerpcle-unknown
646
 
                ;;
 
814
                ;;
647
815
        ppcle-* | powerpclittle-*)
648
816
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
649
817
                ;;
 
818
        ppc64)  basic_machine=powerpc64-unknown
 
819
                ;;
 
820
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
821
                ;;
 
822
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
 
823
                basic_machine=powerpc64le-unknown
 
824
                ;;
 
825
        ppc64le-* | powerpc64little-*)
 
826
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
 
827
                ;;
650
828
        ps2)
651
829
                basic_machine=i386-ibm
652
830
                ;;
 
831
        pw32)
 
832
                basic_machine=i586-unknown
 
833
                os=-pw32
 
834
                ;;
653
835
        rom68k)
654
836
                basic_machine=m68k-rom68k
655
837
                os=-coff
660
842
        rtpc | rtpc-*)
661
843
                basic_machine=romp-ibm
662
844
                ;;
 
845
        s390 | s390-*)
 
846
                basic_machine=s390-ibm
 
847
                ;;
 
848
        s390x | s390x-*)
 
849
                basic_machine=s390x-ibm
 
850
                ;;
663
851
        sa29200)
664
852
                basic_machine=a29k-amd
665
853
                os=-udi
666
854
                ;;
 
855
        sb1)
 
856
                basic_machine=mipsisa64sb1-unknown
 
857
                ;;
 
858
        sb1el)
 
859
                basic_machine=mipsisa64sb1el-unknown
 
860
                ;;
 
861
        sei)
 
862
                basic_machine=mips-sei
 
863
                os=-seiux
 
864
                ;;
667
865
        sequent)
668
866
                basic_machine=i386-sequent
669
867
                ;;
671
869
                basic_machine=sh-hitachi
672
870
                os=-hms
673
871
                ;;
674
 
        sparclite-wrs)
 
872
        sh64)
 
873
                basic_machine=sh64-unknown
 
874
                ;;
 
875
        sparclite-wrs | simso-wrs)
675
876
                basic_machine=sparclite-wrs
676
877
                os=-vxworks
677
878
                ;;
729
930
        sun386 | sun386i | roadrunner)
730
931
                basic_machine=i386-sun
731
932
                ;;
 
933
        sv1)
 
934
                basic_machine=sv1-cray
 
935
                os=-unicos
 
936
                ;;
732
937
        symmetry)
733
938
                basic_machine=i386-sequent
734
939
                os=-dynix
735
940
                ;;
736
941
        t3e)
737
 
                basic_machine=t3e-cray
738
 
                os=-unicos
 
942
                basic_machine=alphaev5-cray
 
943
                os=-unicos
 
944
                ;;
 
945
        t90)
 
946
                basic_machine=t90-cray
 
947
                os=-unicos
 
948
                ;;
 
949
        tic54x | c54x*)
 
950
                basic_machine=tic54x-unknown
 
951
                os=-coff
 
952
                ;;
 
953
        tic55x | c55x*)
 
954
                basic_machine=tic55x-unknown
 
955
                os=-coff
 
956
                ;;
 
957
        tic6x | c6x*)
 
958
                basic_machine=tic6x-unknown
 
959
                os=-coff
739
960
                ;;
740
961
        tx39)
741
962
                basic_machine=mipstx39-unknown
743
964
        tx39el)
744
965
                basic_machine=mipstx39el-unknown
745
966
                ;;
 
967
        toad1)
 
968
                basic_machine=pdp10-xkl
 
969
                os=-tops20
 
970
                ;;
746
971
        tower | tower-32)
747
972
                basic_machine=m68k-ncr
748
973
                ;;
 
974
        tpf)
 
975
                basic_machine=s390x-ibm
 
976
                os=-tpf
 
977
                ;;
749
978
        udi29k)
750
979
                basic_machine=a29k-amd
751
980
                os=-udi
767
996
                os=-vms
768
997
                ;;
769
998
        vpp*|vx|vx-*)
770
 
               basic_machine=f301-fujitsu
771
 
               ;;
 
999
                basic_machine=f301-fujitsu
 
1000
                ;;
772
1001
        vxworks960)
773
1002
                basic_machine=i960-wrs
774
1003
                os=-vxworks
789
1018
                basic_machine=hppa1.1-winbond
790
1019
                os=-proelf
791
1020
                ;;
792
 
        xmp)
793
 
                basic_machine=xmp-cray
794
 
                os=-unicos
795
 
                ;;
796
 
        xps | xps100)
 
1021
        xps | xps100)
797
1022
                basic_machine=xps100-honeywell
798
1023
                ;;
 
1024
        ymp)
 
1025
                basic_machine=ymp-cray
 
1026
                os=-unicos
 
1027
                ;;
799
1028
        z8k-*-coff)
800
1029
                basic_machine=z8k-unknown
801
1030
                os=-sim
816
1045
        op60c)
817
1046
                basic_machine=hppa1.1-oki
818
1047
                ;;
819
 
        mips)
820
 
                if [ x$os = x-linux-gnu ]; then
821
 
                        basic_machine=mips-unknown
822
 
                else
823
 
                        basic_machine=mips-mips
824
 
                fi
825
 
                ;;
826
1048
        romp)
827
1049
                basic_machine=romp-ibm
828
1050
                ;;
832
1054
        vax)
833
1055
                basic_machine=vax-dec
834
1056
                ;;
 
1057
        pdp10)
 
1058
                # there are many clones, so DEC is not a safe bet
 
1059
                basic_machine=pdp10-unknown
 
1060
                ;;
835
1061
        pdp11)
836
1062
                basic_machine=pdp11-dec
837
1063
                ;;
838
1064
        we32k)
839
1065
                basic_machine=we32k-att
840
1066
                ;;
841
 
        sparc | sparcv9)
 
1067
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1068
                basic_machine=sh-unknown
 
1069
                ;;
 
1070
        sh64)
 
1071
                basic_machine=sh64-unknown
 
1072
                ;;
 
1073
        sparc | sparcv9 | sparcv9b)
842
1074
                basic_machine=sparc-sun
843
1075
                ;;
844
 
        cydra)
 
1076
        cydra)
845
1077
                basic_machine=cydra-cydrome
846
1078
                ;;
847
1079
        orion)
856
1088
        pmac | pmac-mpw)
857
1089
                basic_machine=powerpc-apple
858
1090
                ;;
859
 
        c4x*)
860
 
                basic_machine=c4x-none
861
 
                os=-coff
 
1091
        *-unknown)
 
1092
                # Make sure to match an already-canonicalized machine name.
862
1093
                ;;
863
1094
        *)
864
1095
                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
912
1143
              | -aos* \
913
1144
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
914
1145
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
915
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
 
1146
              | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
916
1147
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
917
1148
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
918
1149
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 
1150
              | -chorusos* | -chorusrdb* \
919
1151
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
920
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
921
 
              | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
 
1152
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1153
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
 
1154
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
 
1155
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
1156
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
1157
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1158
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
922
1159
        # Remember, each alternative MUST END IN *, to match a version number.
923
1160
                ;;
 
1161
        -qnx*)
 
1162
                case $basic_machine in
 
1163
                    x86-* | i*86-*)
 
1164
                        ;;
 
1165
                    *)
 
1166
                        os=-nto$os
 
1167
                        ;;
 
1168
                esac
 
1169
                ;;
 
1170
        -nto-qnx*)
 
1171
                ;;
 
1172
        -nto*)
 
1173
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
 
1174
                ;;
924
1175
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
925
1176
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
926
 
              | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
 
1177
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
927
1178
                ;;
928
1179
        -mac*)
929
1180
                os=`echo $os | sed -e 's|mac|macos|'`
930
1181
                ;;
 
1182
        -linux-dietlibc)
 
1183
                os=-linux-dietlibc
 
1184
                ;;
931
1185
        -linux*)
932
1186
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
933
1187
                ;;
940
1194
        -opened*)
941
1195
                os=-openedition
942
1196
                ;;
 
1197
        -os400*)
 
1198
                os=-os400
 
1199
                ;;
 
1200
        -wince*)
 
1201
                os=-wince
 
1202
                ;;
943
1203
        -osfrose*)
944
1204
                os=-osfrose
945
1205
                ;;
955
1215
        -acis*)
956
1216
                os=-aos
957
1217
                ;;
 
1218
        -atheos*)
 
1219
                os=-atheos
 
1220
                ;;
 
1221
        -syllable*)
 
1222
                os=-syllable
 
1223
                ;;
958
1224
        -386bsd)
959
1225
                os=-bsd
960
1226
                ;;
961
1227
        -ctix* | -uts*)
962
1228
                os=-sysv
963
1229
                ;;
 
1230
        -nova*)
 
1231
                os=-rtmk-nova
 
1232
                ;;
964
1233
        -ns2 )
965
 
                os=-nextstep2
 
1234
                os=-nextstep2
 
1235
                ;;
 
1236
        -nsk*)
 
1237
                os=-nsk
966
1238
                ;;
967
1239
        # Preserve the version number of sinix5.
968
1240
        -sinix5.*)
971
1243
        -sinix*)
972
1244
                os=-sysv4
973
1245
                ;;
 
1246
        -tpf*)
 
1247
                os=-tpf
 
1248
                ;;
974
1249
        -triton*)
975
1250
                os=-sysv3
976
1251
                ;;
977
1252
        -oss*)
978
1253
                os=-sysv3
979
1254
                ;;
980
 
        -qnx)
981
 
                os=-qnx4
982
 
                ;;
983
1255
        -svr4)
984
1256
                os=-sysv4
985
1257
                ;;
1001
1273
        -xenix)
1002
1274
                os=-xenix
1003
1275
                ;;
1004
 
        -*mint | -*MiNT)
1005
 
                os=-mint
 
1276
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1277
                os=-mint
 
1278
                ;;
 
1279
        -aros*)
 
1280
                os=-aros
 
1281
                ;;
 
1282
        -kaos*)
 
1283
                os=-kaos
1006
1284
                ;;
1007
1285
        -none)
1008
1286
                ;;
1035
1313
        arm*-semi)
1036
1314
                os=-aout
1037
1315
                ;;
1038
 
        pdp11-*)
 
1316
    c4x-* | tic4x-*)
 
1317
        os=-coff
 
1318
        ;;
 
1319
        # This must come before the *-dec entry.
 
1320
        pdp10-*)
 
1321
                os=-tops20
 
1322
                ;;
 
1323
        pdp11-*)
1039
1324
                os=-none
1040
1325
                ;;
1041
1326
        *-dec | vax-*)
1062
1347
        mips*-*)
1063
1348
                os=-elf
1064
1349
                ;;
 
1350
        or32-*)
 
1351
                os=-coff
 
1352
                ;;
1065
1353
        *-tti)  # must be before sparc entry or we get the wrong os.
1066
1354
                os=-sysv3
1067
1355
                ;;
1125
1413
        *-next)
1126
1414
                os=-nextstep3
1127
1415
                ;;
1128
 
        *-gould)
 
1416
        *-gould)
1129
1417
                os=-sysv
1130
1418
                ;;
1131
 
        *-highlevel)
 
1419
        *-highlevel)
1132
1420
                os=-bsd
1133
1421
                ;;
1134
1422
        *-encore)
1135
1423
                os=-bsd
1136
1424
                ;;
1137
 
        *-sgi)
 
1425
        *-sgi)
1138
1426
                os=-irix
1139
1427
                ;;
1140
 
        *-siemens)
 
1428
        *-siemens)
1141
1429
                os=-sysv4
1142
1430
                ;;
1143
1431
        *-masscomp)
1144
1432
                os=-rtu
1145
1433
                ;;
1146
 
        f301-fujitsu)
 
1434
        f30[01]-fujitsu | f700-fujitsu)
1147
1435
                os=-uxpv
1148
1436
                ;;
1149
1437
        *-rom68k)
1206
1494
                        -mvs* | -opened*)
1207
1495
                                vendor=ibm
1208
1496
                                ;;
 
1497
                        -os400*)
 
1498
                                vendor=ibm
 
1499
                                ;;
1209
1500
                        -ptx*)
1210
1501
                                vendor=sequent
1211
1502
                                ;;
1212
 
                        -vxsim* | -vxworks*)
 
1503
                        -tpf*)
 
1504
                                vendor=ibm
 
1505
                                ;;
 
1506
                        -vxsim* | -vxworks* | -windiss*)
1213
1507
                                vendor=wrs
1214
1508
                                ;;
1215
1509
                        -aux*)
1221
1515
                        -mpw* | -macos*)
1222
1516
                                vendor=apple
1223
1517
                                ;;
1224
 
                        -*mint | -*MiNT)
 
1518
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1225
1519
                                vendor=atari
1226
1520
                                ;;
 
1521
                        -vos*)
 
1522
                                vendor=stratus
 
1523
                                ;;
1227
1524
                esac
1228
1525
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1229
1526
                ;;
1230
1527
esac
1231
1528
 
1232
1529
echo $basic_machine$os
 
1530
exit 0
 
1531
 
 
1532
# Local variables:
 
1533
# eval: (add-hook 'write-file-hooks 'time-stamp)
 
1534
# time-stamp-start: "timestamp='"
 
1535
# time-stamp-format: "%:y-%02m-%02d"
 
1536
# time-stamp-end: "'"
 
1537
# End: