1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Configuration validation subroutine script, version 1.1. |
2 | # Configuration validation subroutine script. |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
4 | # Free Software Foundation, Inc. |
4 | # Free Software Foundation, Inc. |
5 | # |
5 | |
|
|
6 | timestamp='2001-04-20' |
|
|
7 | |
6 | # This file is (in principle) common to ALL GNU software. |
8 | # This file is (in principle) common to ALL GNU software. |
7 | # The presence of a machine in this file suggests that SOME GNU software |
9 | # The presence of a machine in this file suggests that SOME GNU software |
8 | # can handle that machine. It does not imply ALL GNU software can. |
10 | # can handle that machine. It does not imply ALL GNU software can. |
9 | # |
11 | # |
10 | # This file is free software; you can redistribute it and/or modify |
12 | # This file is free software; you can redistribute it and/or modify |
… | |
… | |
25 | # As a special exception to the GNU General Public License, if you |
27 | # As a special exception to the GNU General Public License, if you |
26 | # distribute this file as part of a program that contains a |
28 | # distribute this file as part of a program that contains a |
27 | # configuration script generated by Autoconf, you may include it under |
29 | # configuration script generated by Autoconf, you may include it under |
28 | # the same distribution terms that you use for the rest of that program. |
30 | # the same distribution terms that you use for the rest of that program. |
29 | |
31 | |
30 | # Written by Per Bothner <bothner@cygnus.com>. |
|
|
31 | # Please send patches to <config-patches@gnu.org>. |
32 | # Please send patches to <config-patches@gnu.org>. |
32 | # |
33 | # |
33 | # Configuration subroutine to validate and canonicalize a configuration type. |
34 | # Configuration subroutine to validate and canonicalize a configuration type. |
34 | # Supply the specified configuration type as an argument. |
35 | # Supply the specified configuration type as an argument. |
35 | # If it is invalid, we print an error message on stderr and exit with code 1. |
36 | # If it is invalid, we print an error message on stderr and exit with code 1. |
… | |
… | |
48 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
49 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
49 | # or in some cases, the newer four-part form: |
50 | # or in some cases, the newer four-part form: |
50 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
51 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
51 | # It is wrong to echo any other type of specification. |
52 | # It is wrong to echo any other type of specification. |
52 | |
53 | |
53 | if [ x$1 = x ] |
54 | me=`echo "$0" | sed -e 's,.*/,,'` |
54 | then |
|
|
55 | echo Configuration name missing. 1>&2 |
|
|
56 | echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 |
|
|
57 | echo "or $0 ALIAS" 1>&2 |
|
|
58 | echo where ALIAS is a recognized configuration type. 1>&2 |
|
|
59 | exit 1 |
|
|
60 | fi |
|
|
61 | |
55 | |
|
|
56 | usage="\ |
|
|
57 | Usage: $0 [OPTION] CPU-MFR-OPSYS |
|
|
58 | $0 [OPTION] ALIAS |
|
|
59 | |
|
|
60 | Canonicalize a configuration name. |
|
|
61 | |
|
|
62 | Operation modes: |
|
|
63 | -h, --help print this help, then exit |
|
|
64 | -t, --time-stamp print date of last modification, then exit |
|
|
65 | -v, --version print version number, then exit |
|
|
66 | |
|
|
67 | Report bugs and patches to <config-patches@gnu.org>." |
|
|
68 | |
|
|
69 | version="\ |
|
|
70 | GNU config.sub ($timestamp) |
|
|
71 | |
|
|
72 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
|
|
73 | Free Software Foundation, Inc. |
|
|
74 | |
|
|
75 | This is free software; see the source for copying conditions. There is NO |
|
|
76 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
|
|
77 | |
|
|
78 | help=" |
|
|
79 | Try \`$me --help' for more information." |
|
|
80 | |
|
|
81 | # Parse command line |
|
|
82 | while test $# -gt 0 ; do |
|
|
83 | case $1 in |
|
|
84 | --time-stamp | --time* | -t ) |
|
|
85 | echo "$timestamp" ; exit 0 ;; |
|
|
86 | --version | -v ) |
|
|
87 | echo "$version" ; exit 0 ;; |
|
|
88 | --help | --h* | -h ) |
|
|
89 | echo "$usage"; exit 0 ;; |
|
|
90 | -- ) # Stop option processing |
|
|
91 | shift; break ;; |
|
|
92 | - ) # Use stdin as input. |
|
|
93 | break ;; |
|
|
94 | -* ) |
|
|
95 | echo "$me: invalid option $1$help" |
|
|
96 | exit 1 ;; |
|
|
97 | |
|
|
98 | *local*) |
62 | # First pass through any local machine types. |
99 | # First pass through any local machine types. |
|
|
100 | echo $1 |
|
|
101 | exit 0;; |
|
|
102 | |
|
|
103 | * ) |
|
|
104 | break ;; |
|
|
105 | esac |
|
|
106 | done |
|
|
107 | |
63 | case $1 in |
108 | case $# in |
64 | *local*) |
109 | 0) echo "$me: missing argument$help" >&2 |
65 | echo $1 |
110 | exit 1;; |
66 | exit 0 |
111 | 1) ;; |
67 | ;; |
112 | *) echo "$me: too many arguments$help" >&2 |
68 | *) |
113 | exit 1;; |
69 | ;; |
|
|
70 | esac |
114 | esac |
71 | |
115 | |
72 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
116 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
73 | # Here we must recognize all the valid KERNEL-OS combinations. |
117 | # Here we must recognize all the valid KERNEL-OS combinations. |
74 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
118 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
75 | case $maybe_os in |
119 | case $maybe_os in |
76 | nto-qnx* | linux-gnu*) |
120 | nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) |
77 | os=-$maybe_os |
121 | os=-$maybe_os |
78 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
122 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
79 | ;; |
123 | ;; |
80 | *) |
124 | *) |
81 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
125 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
… | |
… | |
97 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
141 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
98 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
142 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
99 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
143 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
100 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
144 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
101 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
145 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
102 | -apple) |
146 | -apple | -axis) |
103 | os= |
147 | os= |
104 | basic_machine=$1 |
148 | basic_machine=$1 |
105 | ;; |
149 | ;; |
106 | -sim | -cisco | -oki | -wec | -winbond) |
150 | -sim | -cisco | -oki | -wec | -winbond) |
107 | os= |
151 | os= |
… | |
… | |
169 | |
213 | |
170 | # Decode aliases for certain CPU-COMPANY combinations. |
214 | # Decode aliases for certain CPU-COMPANY combinations. |
171 | case $basic_machine in |
215 | case $basic_machine in |
172 | # Recognize the basic CPU types without company name. |
216 | # Recognize the basic CPU types without company name. |
173 | # Some are omitted here because they have special meanings below. |
217 | # Some are omitted here because they have special meanings below. |
174 | tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
218 | tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ |
|
|
219 | | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ |
175 | | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ |
220 | | pyramid | mn10200 | mn10300 | tron | a29k \ |
176 | | 580 | i960 | h8300 \ |
221 | | 580 | i960 | h8300 \ |
177 | | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ |
222 | | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ |
178 | | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
223 | | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
179 | | hppa64 \ |
224 | | hppa64 \ |
180 | | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
225 | | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
181 | | alphaev6[78] \ |
226 | | alphaev6[78] \ |
182 | | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ |
227 | | we32k | ns16k | clipper | i370 | sh | sh[34] \ |
|
|
228 | | powerpc | powerpcle \ |
|
|
229 | | 1750a | dsp16xx | pdp10 | pdp11 \ |
183 | | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ |
230 | | mips16 | mips64 | mipsel | mips64el \ |
184 | | mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
231 | | mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
185 | | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
232 | | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
186 | | mips64vr5000 | miprs64vr5000el | mcore \ |
233 | | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ |
187 | | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
234 | | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \ |
188 | | thumb | d10v | fr30 | avr) |
235 | | v850 | c4x \ |
|
|
236 | | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ |
|
|
237 | | pj | pjl | h8500) |
189 | basic_machine=$basic_machine-unknown |
238 | basic_machine=$basic_machine-unknown |
190 | ;; |
239 | ;; |
|
|
240 | m6811 | m68hc11 | m6812 | m68hc12) |
|
|
241 | # Motorola 68HC11/12. |
|
|
242 | basic_machine=$basic_machine-unknown |
|
|
243 | os=-none |
|
|
244 | ;; |
191 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) |
245 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65) |
192 | ;; |
246 | ;; |
193 | |
247 | |
194 | # We use `pc' rather than `unknown' |
248 | # We use `pc' rather than `unknown' |
195 | # because (1) that's what they normally are, and |
249 | # because (1) that's what they normally are, and |
196 | # (2) the word "unknown" tends to confuse beginning users. |
250 | # (2) the word "unknown" tends to confuse beginning users. |
197 | i[34567]86) |
251 | i*86 | x86_64) |
198 | basic_machine=$basic_machine-pc |
252 | basic_machine=$basic_machine-pc |
199 | ;; |
253 | ;; |
200 | # Object if more than one company name word. |
254 | # Object if more than one company name word. |
201 | *-*-*) |
255 | *-*-*) |
202 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
256 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
203 | exit 1 |
257 | exit 1 |
204 | ;; |
258 | ;; |
205 | # Recognize the basic CPU types with company name. |
259 | # Recognize the basic CPU types with company name. |
206 | # FIXME: clean up the formatting here. |
260 | # FIXME: clean up the formatting here. |
207 | vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
261 | vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
208 | | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
262 | | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ |
|
|
263 | | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ |
209 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
264 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
210 | | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
265 | | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
211 | | xmp-* | ymp-* \ |
266 | | xmp-* | ymp-* \ |
212 | | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ |
267 | | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ |
213 | | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ |
268 | | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ |
214 | | hppa2.0n-* | hppa64-* \ |
269 | | hppa2.0n-* | hppa64-* \ |
215 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
270 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
216 | | alphaev6[78]-* \ |
271 | | alphaev6[78]-* \ |
217 | | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
272 | | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
218 | | clipper-* | orion-* \ |
273 | | clipper-* | orion-* \ |
219 | | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
274 | | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
220 | | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
275 | | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \ |
|
|
276 | | mips16-* | mips64-* | mipsel-* \ |
221 | | mips64el-* | mips64orion-* | mips64orionel-* \ |
277 | | mips64el-* | mips64orion-* | mips64orionel-* \ |
222 | | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
278 | | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
223 | | mipstx39-* | mipstx39el-* | mcore-* \ |
279 | | mipstx39-* | mipstx39el-* | mcore-* \ |
224 | | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ |
280 | | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ |
|
|
281 | | [cjt]90-* \ |
225 | | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
282 | | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
226 | | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ |
283 | | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ |
227 | | bs2000-*) |
284 | | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) |
228 | ;; |
285 | ;; |
229 | # Recognize the various machine names and aliases which stand |
286 | # Recognize the various machine names and aliases which stand |
230 | # for a CPU type and a company and sometimes even an OS. |
287 | # for a CPU type and a company and sometimes even an OS. |
231 | 386bsd) |
288 | 386bsd) |
232 | basic_machine=i386-unknown |
289 | basic_machine=i386-unknown |
… | |
… | |
259 | amdahl) |
316 | amdahl) |
260 | basic_machine=580-amdahl |
317 | basic_machine=580-amdahl |
261 | os=-sysv |
318 | os=-sysv |
262 | ;; |
319 | ;; |
263 | amiga | amiga-*) |
320 | amiga | amiga-*) |
264 | basic_machine=m68k-cbm |
321 | basic_machine=m68k-unknown |
265 | ;; |
322 | ;; |
266 | amigaos | amigados) |
323 | amigaos | amigados) |
267 | basic_machine=m68k-cbm |
324 | basic_machine=m68k-unknown |
268 | os=-amigaos |
325 | os=-amigaos |
269 | ;; |
326 | ;; |
270 | amigaunix | amix) |
327 | amigaunix | amix) |
271 | basic_machine=m68k-cbm |
328 | basic_machine=m68k-unknown |
272 | os=-sysv4 |
329 | os=-sysv4 |
273 | ;; |
330 | ;; |
274 | apollo68) |
331 | apollo68) |
275 | basic_machine=m68k-apollo |
332 | basic_machine=m68k-apollo |
276 | os=-sysv |
333 | os=-sysv |
… | |
… | |
313 | ;; |
370 | ;; |
314 | cray2) |
371 | cray2) |
315 | basic_machine=cray2-cray |
372 | basic_machine=cray2-cray |
316 | os=-unicos |
373 | os=-unicos |
317 | ;; |
374 | ;; |
318 | [ctj]90-cray) |
375 | [cjt]90) |
319 | basic_machine=c90-cray |
376 | basic_machine=${basic_machine}-cray |
320 | os=-unicos |
377 | os=-unicos |
321 | ;; |
378 | ;; |
322 | crds | unos) |
379 | crds | unos) |
323 | basic_machine=m68k-crds |
380 | basic_machine=m68k-crds |
|
|
381 | ;; |
|
|
382 | cris | cris-* | etrax*) |
|
|
383 | basic_machine=cris-axis |
324 | ;; |
384 | ;; |
325 | da30 | da30-*) |
385 | da30 | da30-*) |
326 | basic_machine=m68k-da30 |
386 | basic_machine=m68k-da30 |
327 | ;; |
387 | ;; |
328 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
388 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
… | |
… | |
367 | ;; |
427 | ;; |
368 | gmicro) |
428 | gmicro) |
369 | basic_machine=tron-gmicro |
429 | basic_machine=tron-gmicro |
370 | os=-sysv |
430 | os=-sysv |
371 | ;; |
431 | ;; |
|
|
432 | go32) |
|
|
433 | basic_machine=i386-pc |
|
|
434 | os=-go32 |
|
|
435 | ;; |
372 | h3050r* | hiux*) |
436 | h3050r* | hiux*) |
373 | basic_machine=hppa1.1-hitachi |
437 | basic_machine=hppa1.1-hitachi |
374 | os=-hiuxwe2 |
438 | os=-hiuxwe2 |
375 | ;; |
439 | ;; |
376 | h8300hms) |
440 | h8300hms) |
… | |
… | |
442 | ;; |
506 | ;; |
443 | i370-ibm* | ibm*) |
507 | i370-ibm* | ibm*) |
444 | basic_machine=i370-ibm |
508 | basic_machine=i370-ibm |
445 | ;; |
509 | ;; |
446 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
510 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
447 | i[34567]86v32) |
511 | i*86v32) |
448 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
512 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
449 | os=-sysv32 |
513 | os=-sysv32 |
450 | ;; |
514 | ;; |
451 | i[34567]86v4*) |
515 | i*86v4*) |
452 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
516 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
453 | os=-sysv4 |
517 | os=-sysv4 |
454 | ;; |
518 | ;; |
455 | i[34567]86v) |
519 | i*86v) |
456 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
520 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
457 | os=-sysv |
521 | os=-sysv |
458 | ;; |
522 | ;; |
459 | i[34567]86sol2) |
523 | i*86sol2) |
460 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
524 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
461 | os=-solaris2 |
525 | os=-solaris2 |
462 | ;; |
526 | ;; |
463 | i386mach) |
527 | i386mach) |
464 | basic_machine=i386-mach |
528 | basic_machine=i386-mach |
465 | os=-mach |
529 | os=-mach |
466 | ;; |
530 | ;; |
467 | i386-vsta | vsta) |
531 | i386-vsta | vsta) |
468 | basic_machine=i386-unknown |
532 | basic_machine=i386-unknown |
469 | os=-vsta |
533 | os=-vsta |
470 | ;; |
|
|
471 | i386-go32 | go32) |
|
|
472 | basic_machine=i386-unknown |
|
|
473 | os=-go32 |
|
|
474 | ;; |
|
|
475 | i386-mingw32 | mingw32) |
|
|
476 | basic_machine=i386-unknown |
|
|
477 | os=-mingw32 |
|
|
478 | ;; |
534 | ;; |
479 | iris | iris4d) |
535 | iris | iris4d) |
480 | basic_machine=mips-sgi |
536 | basic_machine=mips-sgi |
481 | case $os in |
537 | case $os in |
482 | -irix*) |
538 | -irix*) |
… | |
… | |
499 | ;; |
555 | ;; |
500 | merlin) |
556 | merlin) |
501 | basic_machine=ns32k-utek |
557 | basic_machine=ns32k-utek |
502 | os=-sysv |
558 | os=-sysv |
503 | ;; |
559 | ;; |
|
|
560 | mingw32) |
|
|
561 | basic_machine=i386-pc |
|
|
562 | os=-mingw32 |
|
|
563 | ;; |
504 | miniframe) |
564 | miniframe) |
505 | basic_machine=m68000-convergent |
565 | basic_machine=m68000-convergent |
506 | ;; |
566 | ;; |
507 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
567 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
508 | basic_machine=m68k-atari |
568 | basic_machine=m68k-atari |
… | |
… | |
529 | monitor) |
589 | monitor) |
530 | basic_machine=m68k-rom68k |
590 | basic_machine=m68k-rom68k |
531 | os=-coff |
591 | os=-coff |
532 | ;; |
592 | ;; |
533 | msdos) |
593 | msdos) |
534 | basic_machine=i386-unknown |
594 | basic_machine=i386-pc |
535 | os=-msdos |
595 | os=-msdos |
536 | ;; |
596 | ;; |
537 | mvs) |
597 | mvs) |
538 | basic_machine=i370-ibm |
598 | basic_machine=i370-ibm |
539 | os=-mvs |
599 | os=-mvs |
… | |
… | |
593 | ;; |
653 | ;; |
594 | mon960) |
654 | mon960) |
595 | basic_machine=i960-intel |
655 | basic_machine=i960-intel |
596 | os=-mon960 |
656 | os=-mon960 |
597 | ;; |
657 | ;; |
|
|
658 | nonstopux) |
|
|
659 | basic_machine=mips-compaq |
|
|
660 | os=-nonstopux |
|
|
661 | ;; |
598 | np1) |
662 | np1) |
599 | basic_machine=np1-gould |
663 | basic_machine=np1-gould |
600 | ;; |
664 | ;; |
601 | nsr-tandem) |
665 | nsr-tandem) |
602 | basic_machine=nsr-tandem |
666 | basic_machine=nsr-tandem |
… | |
… | |
628 | basic_machine=m68k-tti |
692 | basic_machine=m68k-tti |
629 | ;; |
693 | ;; |
630 | pc532 | pc532-*) |
694 | pc532 | pc532-*) |
631 | basic_machine=ns32k-pc532 |
695 | basic_machine=ns32k-pc532 |
632 | ;; |
696 | ;; |
633 | pentium | p5 | k5 | k6 | nexen) |
697 | pentium | p5 | k5 | k6 | nexgen) |
634 | basic_machine=i586-pc |
698 | basic_machine=i586-pc |
635 | ;; |
699 | ;; |
636 | pentiumpro | p6 | 6x86) |
700 | pentiumpro | p6 | 6x86 | athlon) |
637 | basic_machine=i686-pc |
701 | basic_machine=i686-pc |
638 | ;; |
702 | ;; |
639 | pentiumii | pentium2) |
703 | pentiumii | pentium2) |
640 | basic_machine=i786-pc |
704 | basic_machine=i686-pc |
641 | ;; |
705 | ;; |
642 | pentium-* | p5-* | k5-* | k6-* | nexen-*) |
706 | pentium-* | p5-* | k5-* | k6-* | nexgen-*) |
643 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
707 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
644 | ;; |
708 | ;; |
645 | pentiumpro-* | p6-* | 6x86-*) |
709 | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
646 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
710 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
647 | ;; |
711 | ;; |
648 | pentiumii-* | pentium2-*) |
712 | pentiumii-* | pentium2-*) |
649 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
713 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
650 | ;; |
714 | ;; |
651 | pn) |
715 | pn) |
652 | basic_machine=pn-gould |
716 | basic_machine=pn-gould |
653 | ;; |
717 | ;; |
654 | power) basic_machine=rs6000-ibm |
718 | power) basic_machine=power-ibm |
655 | ;; |
719 | ;; |
656 | ppc) basic_machine=powerpc-unknown |
720 | ppc) basic_machine=powerpc-unknown |
657 | ;; |
721 | ;; |
658 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
722 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
659 | ;; |
723 | ;; |
… | |
… | |
664 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
728 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
665 | ;; |
729 | ;; |
666 | ps2) |
730 | ps2) |
667 | basic_machine=i386-ibm |
731 | basic_machine=i386-ibm |
668 | ;; |
732 | ;; |
|
|
733 | pw32) |
|
|
734 | basic_machine=i586-unknown |
|
|
735 | os=-pw32 |
|
|
736 | ;; |
669 | rom68k) |
737 | rom68k) |
670 | basic_machine=m68k-rom68k |
738 | basic_machine=m68k-rom68k |
671 | os=-coff |
739 | os=-coff |
672 | ;; |
740 | ;; |
673 | rm[46]00) |
741 | rm[46]00) |
… | |
… | |
754 | os=-dynix |
822 | os=-dynix |
755 | ;; |
823 | ;; |
756 | t3e) |
824 | t3e) |
757 | basic_machine=t3e-cray |
825 | basic_machine=t3e-cray |
758 | os=-unicos |
826 | os=-unicos |
|
|
827 | ;; |
|
|
828 | tic54x | c54x*) |
|
|
829 | basic_machine=tic54x-unknown |
|
|
830 | os=-coff |
759 | ;; |
831 | ;; |
760 | tx39) |
832 | tx39) |
761 | basic_machine=mipstx39-unknown |
833 | basic_machine=mipstx39-unknown |
762 | ;; |
834 | ;; |
763 | tx39el) |
835 | tx39el) |
… | |
… | |
850 | basic_machine=rs6000-ibm |
922 | basic_machine=rs6000-ibm |
851 | ;; |
923 | ;; |
852 | vax) |
924 | vax) |
853 | basic_machine=vax-dec |
925 | basic_machine=vax-dec |
854 | ;; |
926 | ;; |
|
|
927 | pdp10) |
|
|
928 | # there are many clones, so DEC is not a safe bet |
|
|
929 | basic_machine=pdp10-unknown |
|
|
930 | ;; |
855 | pdp11) |
931 | pdp11) |
856 | basic_machine=pdp11-dec |
932 | basic_machine=pdp11-dec |
857 | ;; |
933 | ;; |
858 | we32k) |
934 | we32k) |
859 | basic_machine=we32k-att |
935 | basic_machine=we32k-att |
860 | ;; |
936 | ;; |
|
|
937 | sh3 | sh4) |
|
|
938 | basic_machine=sh-unknown |
|
|
939 | ;; |
861 | sparc | sparcv9) |
940 | sparc | sparcv9 | sparcv9b) |
862 | basic_machine=sparc-sun |
941 | basic_machine=sparc-sun |
863 | ;; |
942 | ;; |
864 | cydra) |
943 | cydra) |
865 | basic_machine=cydra-cydrome |
944 | basic_machine=cydra-cydrome |
866 | ;; |
945 | ;; |
… | |
… | |
877 | basic_machine=powerpc-apple |
956 | basic_machine=powerpc-apple |
878 | ;; |
957 | ;; |
879 | c4x*) |
958 | c4x*) |
880 | basic_machine=c4x-none |
959 | basic_machine=c4x-none |
881 | os=-coff |
960 | os=-coff |
|
|
961 | ;; |
|
|
962 | *-unknown) |
|
|
963 | # Make sure to match an already-canonicalized machine name. |
882 | ;; |
964 | ;; |
883 | *) |
965 | *) |
884 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
966 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
885 | exit 1 |
967 | exit 1 |
886 | ;; |
968 | ;; |
… | |
… | |
937 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1019 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
938 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1020 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
939 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1021 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
940 | | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1022 | | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
941 | | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
1023 | | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
942 | | -openstep* | -oskit*) |
1024 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
|
|
1025 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) |
943 | # Remember, each alternative MUST END IN *, to match a version number. |
1026 | # Remember, each alternative MUST END IN *, to match a version number. |
944 | ;; |
1027 | ;; |
945 | -qnx*) |
1028 | -qnx*) |
946 | case $basic_machine in |
1029 | case $basic_machine in |
947 | x86-* | i[34567]86-*) |
1030 | x86-* | i*86-*) |
948 | ;; |
1031 | ;; |
949 | *) |
1032 | *) |
950 | os=-nto$os |
1033 | os=-nto$os |
951 | ;; |
1034 | ;; |
952 | esac |
1035 | esac |
… | |
… | |
998 | os=-sysv |
1081 | os=-sysv |
999 | ;; |
1082 | ;; |
1000 | -ns2 ) |
1083 | -ns2 ) |
1001 | os=-nextstep2 |
1084 | os=-nextstep2 |
1002 | ;; |
1085 | ;; |
1003 | -nsk) |
1086 | -nsk*) |
1004 | os=-nsk |
1087 | os=-nsk |
1005 | ;; |
1088 | ;; |
1006 | # Preserve the version number of sinix5. |
1089 | # Preserve the version number of sinix5. |
1007 | -sinix5.*) |
1090 | -sinix5.*) |
1008 | os=`echo $os | sed -e 's|sinix|sysv|'` |
1091 | os=`echo $os | sed -e 's|sinix|sysv|'` |
… | |
… | |
1035 | os=-ose |
1118 | os=-ose |
1036 | ;; |
1119 | ;; |
1037 | -xenix) |
1120 | -xenix) |
1038 | os=-xenix |
1121 | os=-xenix |
1039 | ;; |
1122 | ;; |
1040 | -*mint | -*MiNT) |
1123 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1041 | os=-mint |
1124 | os=-mint |
1042 | ;; |
1125 | ;; |
1043 | -none) |
1126 | -none) |
1044 | ;; |
1127 | ;; |
1045 | *) |
1128 | *) |
… | |
… | |
1069 | os=-linux |
1152 | os=-linux |
1070 | ;; |
1153 | ;; |
1071 | arm*-semi) |
1154 | arm*-semi) |
1072 | os=-aout |
1155 | os=-aout |
1073 | ;; |
1156 | ;; |
|
|
1157 | pdp10-*) |
|
|
1158 | os=-tops20 |
|
|
1159 | ;; |
1074 | pdp11-*) |
1160 | pdp11-*) |
1075 | os=-none |
1161 | os=-none |
1076 | ;; |
1162 | ;; |
1077 | *-dec | vax-*) |
1163 | *-dec | vax-*) |
1078 | os=-ultrix4.2 |
1164 | os=-ultrix4.2 |
… | |
… | |
1177 | os=-sysv4 |
1263 | os=-sysv4 |
1178 | ;; |
1264 | ;; |
1179 | *-masscomp) |
1265 | *-masscomp) |
1180 | os=-rtu |
1266 | os=-rtu |
1181 | ;; |
1267 | ;; |
1182 | f301-fujitsu) |
1268 | f30[01]-fujitsu | f700-fujitsu) |
1183 | os=-uxpv |
1269 | os=-uxpv |
1184 | ;; |
1270 | ;; |
1185 | *-rom68k) |
1271 | *-rom68k) |
1186 | os=-coff |
1272 | os=-coff |
1187 | ;; |
1273 | ;; |
… | |
… | |
1255 | vendor=hitachi |
1341 | vendor=hitachi |
1256 | ;; |
1342 | ;; |
1257 | -mpw* | -macos*) |
1343 | -mpw* | -macos*) |
1258 | vendor=apple |
1344 | vendor=apple |
1259 | ;; |
1345 | ;; |
1260 | -*mint | -*MiNT) |
1346 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1261 | vendor=atari |
1347 | vendor=atari |
1262 | ;; |
1348 | ;; |
1263 | esac |
1349 | esac |
1264 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1350 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1265 | ;; |
1351 | ;; |
1266 | esac |
1352 | esac |
1267 | |
1353 | |
1268 | echo $basic_machine$os |
1354 | echo $basic_machine$os |
|
|
1355 | exit 0 |
|
|
1356 | |
|
|
1357 | # Local variables: |
|
|
1358 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
|
|
1359 | # time-stamp-start: "timestamp='" |
|
|
1360 | # time-stamp-format: "%:y-%02m-%02d" |
|
|
1361 | # time-stamp-end: "'" |
|
|
1362 | # End: |