Mercurial > hg > xemacs-beta
comparison config.sub @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children | 84b14dcb0985 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Configuration validation subroutine script, version 1.1. | 2 # Configuration validation subroutine script, version 1.1. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 | 3 # Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. |
4 # Free Software Foundation, Inc. | |
5 | |
6 version='2000-05-31' | |
7 | |
8 # This file is (in principle) common to ALL GNU software. | 4 # This file is (in principle) common to ALL GNU software. |
9 # The presence of a machine in this file suggests that SOME GNU software | 5 # The presence of a machine in this file suggests that SOME GNU software |
10 # can handle that machine. It does not imply ALL GNU software can. | 6 # can handle that machine. It does not imply ALL GNU software can. |
11 # | 7 # |
12 # This file is free software; you can redistribute it and/or modify | 8 # This file is free software; you can redistribute it and/or modify |
27 # As a special exception to the GNU General Public License, if you | 23 # As a special exception to the GNU General Public License, if you |
28 # distribute this file as part of a program that contains a | 24 # distribute this file as part of a program that contains a |
29 # configuration script generated by Autoconf, you may include it under | 25 # configuration script generated by Autoconf, you may include it under |
30 # the same distribution terms that you use for the rest of that program. | 26 # the same distribution terms that you use for the rest of that program. |
31 | 27 |
32 # Written by Per Bothner <bothner@cygnus.com>. | |
33 # Please send patches to <config-patches@gnu.org>. | |
34 # | |
35 # Configuration subroutine to validate and canonicalize a configuration type. | 28 # Configuration subroutine to validate and canonicalize a configuration type. |
36 # Supply the specified configuration type as an argument. | 29 # Supply the specified configuration type as an argument. |
37 # If it is invalid, we print an error message on stderr and exit with code 1. | 30 # If it is invalid, we print an error message on stderr and exit with code 1. |
38 # Otherwise, we print the canonical config type on stdout and succeed. | 31 # Otherwise, we print the canonical config type on stdout and succeed. |
39 | 32 |
50 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | 43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
51 # or in some cases, the newer four-part form: | 44 # or in some cases, the newer four-part form: |
52 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | 45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
53 # It is wrong to echo any other type of specification. | 46 # It is wrong to echo any other type of specification. |
54 | 47 |
55 me=`echo "$0" | sed -e 's,.*/,,'` | 48 if [ x$1 = x ] |
56 | 49 then |
57 usage="\ | 50 echo Configuration name missing. 1>&2 |
58 Usage: $0 [OPTION] CPU-MFR-OPSYS | 51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 |
59 $0 [OPTION] ALIAS | 52 echo "or $0 ALIAS" 1>&2 |
60 | 53 echo where ALIAS is a recognized configuration type. 1>&2 |
61 Canonicalize a configuration name. | 54 exit 1 |
62 | 55 fi |
63 Operation modes: | 56 |
64 -h, --help print this help, then exit | 57 # First pass through any local machine types. |
65 -V, --version print version number, then exit" | 58 case $1 in |
66 | 59 *local*) |
67 help=" | 60 echo $1 |
68 Try \`$me --help' for more information." | 61 exit 0 |
69 | 62 ;; |
70 # Parse command line | 63 *) |
71 while test $# -gt 0 ; do | 64 ;; |
72 case "$1" in | |
73 --version | --vers* | -V ) | |
74 echo "$version" ; exit 0 ;; | |
75 --help | --h* | -h ) | |
76 echo "$usage"; exit 0 ;; | |
77 -- ) # Stop option processing | |
78 shift; break ;; | |
79 - ) # Use stdin as input. | |
80 break ;; | |
81 -* ) | |
82 exec >&2 | |
83 echo "$me: invalid option $1" | |
84 echo "$help" | |
85 exit 1 ;; | |
86 | |
87 *local*) | |
88 # First pass through any local machine types. | |
89 echo $1 | |
90 exit 0;; | |
91 | |
92 * ) | |
93 break ;; | |
94 esac | |
95 done | |
96 | |
97 case $# in | |
98 0) echo "$me: missing argument$help" >&2 | |
99 exit 1;; | |
100 1) ;; | |
101 *) echo "$me: too many arguments$help" >&2 | |
102 exit 1;; | |
103 esac | 65 esac |
104 | 66 |
105 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | 67 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
106 # Here we must recognize all the valid KERNEL-OS combinations. | 68 # Here we must recognize all the valid KERNEL-OS combinations. |
107 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 69 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
108 case $maybe_os in | 70 case $maybe_os in |
109 nto-qnx* | linux-gnu*) | 71 linux-gnu*) |
110 os=-$maybe_os | 72 os=-$maybe_os |
111 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
112 ;; | 74 ;; |
113 *) | 75 *) |
114 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 76 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
134 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
135 -apple) | 97 -apple) |
136 os= | 98 os= |
137 basic_machine=$1 | 99 basic_machine=$1 |
138 ;; | 100 ;; |
139 -sim | -cisco | -oki | -wec | -winbond) | |
140 os= | |
141 basic_machine=$1 | |
142 ;; | |
143 -scout) | |
144 ;; | |
145 -wrs) | |
146 os=-vxworks | |
147 basic_machine=$1 | |
148 ;; | |
149 -hiux*) | 101 -hiux*) |
150 os=-hiuxwe2 | 102 os=-hiuxwe2 |
151 ;; | 103 ;; |
152 -sco5) | 104 -sco5) |
153 os=-sco3.2v5 | 105 os=sco3.2v5 |
154 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 106 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
155 ;; | 107 ;; |
156 -sco4) | 108 -sco4) |
157 os=-sco3.2v4 | 109 os=-sco3.2v4 |
158 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 110 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
167 ;; | 119 ;; |
168 -sco*) | 120 -sco*) |
169 os=-sco3.2v2 | 121 os=-sco3.2v2 |
170 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 122 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
171 ;; | 123 ;; |
172 -udk*) | |
173 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
174 ;; | |
175 -isc) | 124 -isc) |
176 os=-isc2.2 | 125 os=-isc2.2 |
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 126 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
178 ;; | 127 ;; |
179 -clix*) | 128 -clix*) |
191 -windowsnt*) | 140 -windowsnt*) |
192 os=`echo $os | sed -e 's/windowsnt/winnt/'` | 141 os=`echo $os | sed -e 's/windowsnt/winnt/'` |
193 ;; | 142 ;; |
194 -psos*) | 143 -psos*) |
195 os=-psos | 144 os=-psos |
196 ;; | |
197 -mint | -mint[0-9]*) | |
198 basic_machine=m68k-atari | |
199 os=-mint | |
200 ;; | 145 ;; |
201 esac | 146 esac |
202 | 147 |
203 # Decode aliases for certain CPU-COMPANY combinations. | 148 # Decode aliases for certain CPU-COMPANY combinations. |
204 case $basic_machine in | 149 case $basic_machine in |
205 # Recognize the basic CPU types without company name. | 150 # Recognize the basic CPU types without company name. |
206 # Some are omitted here because they have special meanings below. | 151 # Some are omitted here because they have special meanings below. |
207 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ | 152 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
208 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | 153 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ |
209 | 580 | i960 | h8300 \ | 154 | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \ |
210 | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ | 155 | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ |
211 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ | 156 | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ |
212 | hppa64 \ | 157 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ |
213 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ | 158 | mipstx39 | mipstx39el \ |
214 | alphaev6[78] \ | 159 | sparc | sparclet | sparclite | sparc64 | v850) |
215 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ | |
216 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ | |
217 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ | |
218 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ | |
219 | mips64vr5000 | miprs64vr5000el | mcore \ | |
220 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ | |
221 | thumb | d10v | fr30 | avr) | |
222 basic_machine=$basic_machine-unknown | 160 basic_machine=$basic_machine-unknown |
223 ;; | 161 ;; |
224 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) | |
225 ;; | |
226 | |
227 # We use `pc' rather than `unknown' | 162 # We use `pc' rather than `unknown' |
228 # because (1) that's what they normally are, and | 163 # because (1) that's what they normally are, and |
229 # (2) the word "unknown" tends to confuse beginning users. | 164 # (2) the word "unknown" tends to confuse beginning users. |
230 i[34567]86) | 165 i[34567]86) |
231 basic_machine=$basic_machine-pc | 166 basic_machine=$basic_machine-pc |
234 *-*-*) | 169 *-*-*) |
235 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 170 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
236 exit 1 | 171 exit 1 |
237 ;; | 172 ;; |
238 # Recognize the basic CPU types with company name. | 173 # Recognize the basic CPU types with company name. |
239 # FIXME: clean up the formatting here. | 174 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ |
240 vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ | |
241 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ | 175 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
242 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | 176 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
243 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ | 177 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ |
244 | xmp-* | ymp-* \ | 178 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ |
245 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ | 179 | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ |
246 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ | 180 | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ |
247 | hppa2.0n-* | hppa64-* \ | |
248 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ | |
249 | alphaev6[78]-* \ | |
250 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ | |
251 | clipper-* | orion-* \ | |
252 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | 181 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
253 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ | 182 | sparc64-* | mips64-* | mipsel-* \ |
254 | mips64el-* | mips64orion-* | mips64orionel-* \ | 183 | mips64el-* | mips64orion-* | mips64orionel-* \ |
255 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ | 184 | mipstx39-* | mipstx39el-* \ |
256 | mipstx39-* | mipstx39el-* | mcore-* \ | 185 | f301-*) |
257 | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ | |
258 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ | |
259 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ | |
260 | bs2000-*) | |
261 ;; | 186 ;; |
262 # Recognize the various machine names and aliases which stand | 187 # Recognize the various machine names and aliases which stand |
263 # for a CPU type and a company and sometimes even an OS. | 188 # for a CPU type and a company and sometimes even an OS. |
264 386bsd) | |
265 basic_machine=i386-unknown | |
266 os=-bsd | |
267 ;; | |
268 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | 189 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
269 basic_machine=m68000-att | 190 basic_machine=m68000-att |
270 ;; | 191 ;; |
271 3b*) | 192 3b*) |
272 basic_machine=we32k-att | 193 basic_machine=we32k-att |
273 ;; | |
274 a29khif) | |
275 basic_machine=a29k-amd | |
276 os=-udi | |
277 ;; | |
278 adobe68k) | |
279 basic_machine=m68010-adobe | |
280 os=-scout | |
281 ;; | 194 ;; |
282 alliant | fx80) | 195 alliant | fx80) |
283 basic_machine=fx80-alliant | 196 basic_machine=fx80-alliant |
284 ;; | 197 ;; |
285 altos | altos3068) | 198 altos | altos3068) |
306 ;; | 219 ;; |
307 apollo68) | 220 apollo68) |
308 basic_machine=m68k-apollo | 221 basic_machine=m68k-apollo |
309 os=-sysv | 222 os=-sysv |
310 ;; | 223 ;; |
311 apollo68bsd) | |
312 basic_machine=m68k-apollo | |
313 os=-bsd | |
314 ;; | |
315 aux) | 224 aux) |
316 basic_machine=m68k-apple | 225 basic_machine=m68k-apple |
317 os=-aux | 226 os=-aux |
318 ;; | 227 ;; |
319 balance) | 228 balance) |
386 os=-bsd | 295 os=-bsd |
387 ;; | 296 ;; |
388 encore | umax | mmax) | 297 encore | umax | mmax) |
389 basic_machine=ns32k-encore | 298 basic_machine=ns32k-encore |
390 ;; | 299 ;; |
391 es1800 | OSE68k | ose68k | ose | OSE) | |
392 basic_machine=m68k-ericsson | |
393 os=-ose | |
394 ;; | |
395 fx2800) | 300 fx2800) |
396 basic_machine=i860-alliant | 301 basic_machine=i860-alliant |
397 ;; | 302 ;; |
398 genix) | 303 genix) |
399 basic_machine=ns32k-ns | 304 basic_machine=ns32k-ns |
408 ;; | 313 ;; |
409 h8300hms) | 314 h8300hms) |
410 basic_machine=h8300-hitachi | 315 basic_machine=h8300-hitachi |
411 os=-hms | 316 os=-hms |
412 ;; | 317 ;; |
413 h8300xray) | |
414 basic_machine=h8300-hitachi | |
415 os=-xray | |
416 ;; | |
417 h8500hms) | |
418 basic_machine=h8500-hitachi | |
419 os=-hms | |
420 ;; | |
421 harris) | 318 harris) |
422 basic_machine=m88k-harris | 319 basic_machine=m88k-harris |
423 os=-sysv3 | 320 os=-sysv3 |
424 ;; | 321 ;; |
425 hp300-*) | 322 hp300-*) |
431 ;; | 328 ;; |
432 hp300hpux) | 329 hp300hpux) |
433 basic_machine=m68k-hp | 330 basic_machine=m68k-hp |
434 os=-hpux | 331 os=-hpux |
435 ;; | 332 ;; |
436 hp3k9[0-9][0-9] | hp9[0-9][0-9]) | |
437 basic_machine=hppa1.0-hp | |
438 ;; | |
439 hp9k2[0-9][0-9] | hp9k31[0-9]) | 333 hp9k2[0-9][0-9] | hp9k31[0-9]) |
440 basic_machine=m68000-hp | 334 basic_machine=m68000-hp |
441 ;; | 335 ;; |
442 hp9k3[2-9][0-9]) | 336 hp9k3[2-9][0-9]) |
443 basic_machine=m68k-hp | 337 basic_machine=m68k-hp |
444 ;; | 338 ;; |
445 hp9k6[0-9][0-9] | hp6[0-9][0-9]) | 339 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) |
446 basic_machine=hppa1.0-hp | |
447 ;; | |
448 hp9k7[0-79][0-9] | hp7[0-79][0-9]) | |
449 basic_machine=hppa1.1-hp | |
450 ;; | |
451 hp9k78[0-9] | hp78[0-9]) | |
452 # FIXME: really hppa2.0-hp | |
453 basic_machine=hppa1.1-hp | |
454 ;; | |
455 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | |
456 # FIXME: really hppa2.0-hp | |
457 basic_machine=hppa1.1-hp | |
458 ;; | |
459 hp9k8[0-9][13679] | hp8[0-9][13679]) | |
460 basic_machine=hppa1.1-hp | 340 basic_machine=hppa1.1-hp |
461 ;; | 341 ;; |
462 hp9k8[0-9][0-9] | hp8[0-9][0-9]) | 342 hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
463 basic_machine=hppa1.0-hp | 343 basic_machine=hppa1.0-hp |
464 ;; | 344 ;; |
465 hppa-next) | 345 hppa-next) |
466 os=-nextstep3 | 346 os=-nextstep3 |
467 ;; | 347 ;; |
468 hppaosf) | |
469 basic_machine=hppa1.1-hp | |
470 os=-osf | |
471 ;; | |
472 hppro) | |
473 basic_machine=hppa1.1-hp | |
474 os=-proelf | |
475 ;; | |
476 i370-ibm* | ibm*) | 348 i370-ibm* | ibm*) |
477 basic_machine=i370-ibm | 349 basic_machine=i370-ibm |
350 os=-mvs | |
478 ;; | 351 ;; |
479 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | 352 # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
480 i[34567]86v32) | 353 i[34567]86v32) |
481 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 354 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
482 os=-sysv32 | 355 os=-sysv32 |
490 os=-sysv | 363 os=-sysv |
491 ;; | 364 ;; |
492 i[34567]86sol2) | 365 i[34567]86sol2) |
493 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 366 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
494 os=-solaris2 | 367 os=-solaris2 |
495 ;; | |
496 i386mach) | |
497 basic_machine=i386-mach | |
498 os=-mach | |
499 ;; | |
500 i386-vsta | vsta) | |
501 basic_machine=i386-unknown | |
502 os=-vsta | |
503 ;; | |
504 i386-go32 | go32) | |
505 basic_machine=i386-unknown | |
506 os=-go32 | |
507 ;; | |
508 i386-mingw32 | mingw32) | |
509 basic_machine=i386-unknown | |
510 os=-mingw32 | |
511 ;; | 368 ;; |
512 iris | iris4d) | 369 iris | iris4d) |
513 basic_machine=mips-sgi | 370 basic_machine=mips-sgi |
514 case $os in | 371 case $os in |
515 -irix*) | 372 -irix*) |
535 os=-sysv | 392 os=-sysv |
536 ;; | 393 ;; |
537 miniframe) | 394 miniframe) |
538 basic_machine=m68000-convergent | 395 basic_machine=m68000-convergent |
539 ;; | 396 ;; |
540 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | |
541 basic_machine=m68k-atari | |
542 os=-mint | |
543 ;; | |
544 mipsel*-linux*) | 397 mipsel*-linux*) |
545 basic_machine=mipsel-unknown | 398 basic_machine=mipsel-unknown |
546 os=-linux-gnu | 399 os=-linux-gnu |
547 ;; | 400 ;; |
548 mips*-linux*) | 401 mips*-linux*) |
553 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | 406 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
554 ;; | 407 ;; |
555 mips3*) | 408 mips3*) |
556 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | 409 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
557 ;; | 410 ;; |
558 mmix*) | |
559 basic_machine=mmix-knuth | |
560 os=-mmixware | |
561 ;; | |
562 monitor) | |
563 basic_machine=m68k-rom68k | |
564 os=-coff | |
565 ;; | |
566 msdos) | |
567 basic_machine=i386-unknown | |
568 os=-msdos | |
569 ;; | |
570 mvs) | |
571 basic_machine=i370-ibm | |
572 os=-mvs | |
573 ;; | |
574 ncr3000) | 411 ncr3000) |
575 basic_machine=i486-ncr | 412 basic_machine=i486-ncr |
576 os=-sysv4 | 413 os=-sysv4 |
577 ;; | 414 ;; |
578 netbsd386) | |
579 basic_machine=i386-unknown | |
580 os=-netbsd | |
581 ;; | |
582 netwinder) | |
583 basic_machine=armv4l-rebel | |
584 os=-linux | |
585 ;; | |
586 news | news700 | news800 | news900) | 415 news | news700 | news800 | news900) |
587 basic_machine=m68k-sony | 416 basic_machine=m68k-sony |
588 os=-newsos | 417 os=-newsos |
589 ;; | 418 ;; |
590 news1000) | 419 news1000) |
592 os=-newsos | 421 os=-newsos |
593 ;; | 422 ;; |
594 news-3600 | risc-news) | 423 news-3600 | risc-news) |
595 basic_machine=mips-sony | 424 basic_machine=mips-sony |
596 os=-newsos | 425 os=-newsos |
597 ;; | |
598 necv70) | |
599 basic_machine=v70-nec | |
600 os=-sysv | |
601 ;; | 426 ;; |
602 next | m*-next ) | 427 next | m*-next ) |
603 basic_machine=m68k-next | 428 basic_machine=m68k-next |
604 case $os in | 429 case $os in |
605 -nextstep* ) | 430 -nextstep* ) |
622 ;; | 447 ;; |
623 nindy960) | 448 nindy960) |
624 basic_machine=i960-intel | 449 basic_machine=i960-intel |
625 os=-nindy | 450 os=-nindy |
626 ;; | 451 ;; |
627 mon960) | |
628 basic_machine=i960-intel | |
629 os=-mon960 | |
630 ;; | |
631 np1) | 452 np1) |
632 basic_machine=np1-gould | 453 basic_machine=np1-gould |
633 ;; | |
634 nsr-tandem) | |
635 basic_machine=nsr-tandem | |
636 ;; | |
637 op50n-* | op60c-*) | |
638 basic_machine=hppa1.1-oki | |
639 os=-proelf | |
640 ;; | |
641 OSE68000 | ose68000) | |
642 basic_machine=m68000-ericsson | |
643 os=-ose | |
644 ;; | |
645 os68k) | |
646 basic_machine=m68k-none | |
647 os=-os68k | |
648 ;; | 454 ;; |
649 pa-hitachi) | 455 pa-hitachi) |
650 basic_machine=hppa1.1-hitachi | 456 basic_machine=hppa1.1-hitachi |
651 os=-hiuxwe2 | 457 os=-hiuxwe2 |
652 ;; | 458 ;; |
661 basic_machine=m68k-tti | 467 basic_machine=m68k-tti |
662 ;; | 468 ;; |
663 pc532 | pc532-*) | 469 pc532 | pc532-*) |
664 basic_machine=ns32k-pc532 | 470 basic_machine=ns32k-pc532 |
665 ;; | 471 ;; |
666 pentium | p5 | k5 | k6 | nexen) | 472 pentium | p5 | k5 | nexen) |
667 basic_machine=i586-pc | 473 basic_machine=i586-pc |
668 ;; | 474 ;; |
669 pentiumpro | p6 | 6x86 | athlon) | 475 pentiumpro | p6 | k6 | 6x86) |
670 basic_machine=i686-pc | 476 basic_machine=i686-pc |
671 ;; | 477 ;; |
672 pentiumii | pentium2) | 478 pentiumii | pentium2) |
673 basic_machine=i786-pc | 479 basic_machine=i786-pc |
674 ;; | 480 ;; |
675 pentium-* | p5-* | k5-* | k6-* | nexen-*) | 481 pentium-* | p5-* | k5-* | nexen-*) |
676 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | 482 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
677 ;; | 483 ;; |
678 pentiumpro-* | p6-* | 6x86-* | athlon-*) | 484 pentiumpro-* | p6-* | k6-* | 6x86-*) |
679 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | 485 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
680 ;; | 486 ;; |
681 pentiumii-* | pentium2-*) | 487 pentiumii-* | pentium2-*) |
682 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | 488 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
683 ;; | 489 ;; |
697 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | 503 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
698 ;; | 504 ;; |
699 ps2) | 505 ps2) |
700 basic_machine=i386-ibm | 506 basic_machine=i386-ibm |
701 ;; | 507 ;; |
702 rom68k) | |
703 basic_machine=m68k-rom68k | |
704 os=-coff | |
705 ;; | |
706 rm[46]00) | 508 rm[46]00) |
707 basic_machine=mips-siemens | 509 basic_machine=mips-siemens |
708 ;; | 510 ;; |
709 rtpc | rtpc-*) | 511 rtpc | rtpc-*) |
710 basic_machine=romp-ibm | 512 basic_machine=romp-ibm |
711 ;; | |
712 sa29200) | |
713 basic_machine=a29k-amd | |
714 os=-udi | |
715 ;; | 513 ;; |
716 sequent) | 514 sequent) |
717 basic_machine=i386-sequent | 515 basic_machine=i386-sequent |
718 ;; | 516 ;; |
719 sh) | 517 sh) |
720 basic_machine=sh-hitachi | 518 basic_machine=sh-hitachi |
721 os=-hms | 519 os=-hms |
722 ;; | 520 ;; |
723 sparclite-wrs) | |
724 basic_machine=sparclite-wrs | |
725 os=-vxworks | |
726 ;; | |
727 sps7) | 521 sps7) |
728 basic_machine=m68k-bull | 522 basic_machine=m68k-bull |
729 os=-sysv2 | 523 os=-sysv2 |
730 ;; | 524 ;; |
731 spur) | 525 spur) |
732 basic_machine=spur-unknown | 526 basic_machine=spur-unknown |
733 ;; | 527 ;; |
734 st2000) | |
735 basic_machine=m68k-tandem | |
736 ;; | |
737 stratus) | |
738 basic_machine=i860-stratus | |
739 os=-sysv4 | |
740 ;; | |
741 sun2) | 528 sun2) |
742 basic_machine=m68000-sun | 529 basic_machine=m68000-sun |
743 ;; | 530 ;; |
744 sun2os3) | 531 sun2os3) |
745 basic_machine=m68000-sun | 532 basic_machine=m68000-sun |
776 basic_machine=sparc-sun | 563 basic_machine=sparc-sun |
777 ;; | 564 ;; |
778 sun386 | sun386i | roadrunner) | 565 sun386 | sun386i | roadrunner) |
779 basic_machine=i386-sun | 566 basic_machine=i386-sun |
780 ;; | 567 ;; |
781 sv1) | |
782 basic_machine=sv1-cray | |
783 os=-unicos | |
784 ;; | |
785 symmetry) | 568 symmetry) |
786 basic_machine=i386-sequent | 569 basic_machine=i386-sequent |
787 os=-dynix | 570 os=-dynix |
788 ;; | 571 ;; |
789 t3e) | |
790 basic_machine=t3e-cray | |
791 os=-unicos | |
792 ;; | |
793 tx39) | 572 tx39) |
794 basic_machine=mipstx39-unknown | 573 basic_machine=mipstx39-unknown |
795 ;; | 574 ;; |
796 tx39el) | 575 tx39el) |
797 basic_machine=mipstx39el-unknown | 576 basic_machine=mipstx39el-unknown |
804 os=-udi | 583 os=-udi |
805 ;; | 584 ;; |
806 ultra3) | 585 ultra3) |
807 basic_machine=a29k-nyu | 586 basic_machine=a29k-nyu |
808 os=-sym1 | 587 os=-sym1 |
809 ;; | |
810 v810 | necv810) | |
811 basic_machine=v810-nec | |
812 os=-none | |
813 ;; | 588 ;; |
814 vaxv) | 589 vaxv) |
815 basic_machine=vax-dec | 590 basic_machine=vax-dec |
816 os=-sysv | 591 os=-sysv |
817 ;; | 592 ;; |
832 ;; | 607 ;; |
833 vxworks29k) | 608 vxworks29k) |
834 basic_machine=a29k-wrs | 609 basic_machine=a29k-wrs |
835 os=-vxworks | 610 os=-vxworks |
836 ;; | 611 ;; |
837 w65*) | |
838 basic_machine=w65-wdc | |
839 os=-none | |
840 ;; | |
841 w89k-*) | |
842 basic_machine=hppa1.1-winbond | |
843 os=-proelf | |
844 ;; | |
845 xmp) | 612 xmp) |
846 basic_machine=xmp-cray | 613 basic_machine=xmp-cray |
847 os=-unicos | 614 os=-unicos |
848 ;; | 615 ;; |
849 xps | xps100) | 616 xps | xps100) |
850 basic_machine=xps100-honeywell | 617 basic_machine=xps100-honeywell |
851 ;; | 618 ;; |
852 z8k-*-coff) | |
853 basic_machine=z8k-unknown | |
854 os=-sim | |
855 ;; | |
856 none) | 619 none) |
857 basic_machine=none-none | 620 basic_machine=none-none |
858 os=-none | 621 os=-none |
859 ;; | 622 ;; |
860 | 623 |
861 # Here we handle the default manufacturer of certain CPU types. It is in | 624 # Here we handle the default manufacturer of certain CPU types. It is in |
862 # some cases the only manufacturer, in others, it is the most popular. | 625 # some cases the only manufacturer, in others, it is the most popular. |
863 w89k) | |
864 basic_machine=hppa1.1-winbond | |
865 ;; | |
866 op50n) | |
867 basic_machine=hppa1.1-oki | |
868 ;; | |
869 op60c) | |
870 basic_machine=hppa1.1-oki | |
871 ;; | |
872 mips) | 626 mips) |
873 if [ x$os = x-linux-gnu ]; then | 627 if [ x$os = x-linux-gnu ]; then |
874 basic_machine=mips-unknown | 628 basic_machine=mips-unknown |
875 else | 629 else |
876 basic_machine=mips-mips | 630 basic_machine=mips-mips |
889 basic_machine=pdp11-dec | 643 basic_machine=pdp11-dec |
890 ;; | 644 ;; |
891 we32k) | 645 we32k) |
892 basic_machine=we32k-att | 646 basic_machine=we32k-att |
893 ;; | 647 ;; |
894 sparc | sparcv9) | 648 sparc) |
895 basic_machine=sparc-sun | 649 basic_machine=sparc-sun |
896 ;; | 650 ;; |
897 cydra) | 651 cydra) |
898 basic_machine=cydra-cydrome | 652 basic_machine=cydra-cydrome |
899 ;; | 653 ;; |
900 orion) | 654 orion) |
901 basic_machine=orion-highlevel | 655 basic_machine=orion-highlevel |
902 ;; | 656 ;; |
903 orion105) | 657 orion105) |
904 basic_machine=clipper-highlevel | 658 basic_machine=clipper-highlevel |
905 ;; | |
906 mac | mpw | mac-mpw) | |
907 basic_machine=m68k-apple | |
908 ;; | |
909 pmac | pmac-mpw) | |
910 basic_machine=powerpc-apple | |
911 ;; | |
912 c4x*) | |
913 basic_machine=c4x-none | |
914 os=-coff | |
915 ;; | 659 ;; |
916 *) | 660 *) |
917 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 661 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
918 exit 1 | 662 exit 1 |
919 ;; | 663 ;; |
964 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | 708 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
965 | -aos* \ | 709 | -aos* \ |
966 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | 710 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
967 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | 711 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
968 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | 712 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
969 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 713 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ |
970 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 714 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
971 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 715 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
972 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 716 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
973 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | 717 | -mingw32* | -linux-gnu* | -uxpv* | -beos*) |
974 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | |
975 | -openstep* | -oskit*) | |
976 # Remember, each alternative MUST END IN *, to match a version number. | 718 # Remember, each alternative MUST END IN *, to match a version number. |
977 ;; | |
978 -qnx*) | |
979 case $basic_machine in | |
980 x86-* | i[34567]86-*) | |
981 ;; | |
982 *) | |
983 os=-nto$os | |
984 ;; | |
985 esac | |
986 ;; | |
987 -nto*) | |
988 os=-nto-qnx | |
989 ;; | |
990 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | |
991 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | |
992 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | |
993 ;; | |
994 -mac*) | |
995 os=`echo $os | sed -e 's|mac|macos|'` | |
996 ;; | 719 ;; |
997 -linux*) | 720 -linux*) |
998 os=`echo $os | sed -e 's|linux|linux-gnu|'` | 721 os=`echo $os | sed -e 's|linux|linux-gnu|'` |
999 ;; | 722 ;; |
1000 -sunos5*) | 723 -sunos5*) |
1001 os=`echo $os | sed -e 's|sunos5|solaris2|'` | 724 os=`echo $os | sed -e 's|sunos5|solaris2|'` |
1002 ;; | 725 ;; |
1003 -sunos6*) | 726 -sunos6*) |
1004 os=`echo $os | sed -e 's|sunos6|solaris3|'` | 727 os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1005 ;; | 728 ;; |
1006 -opened*) | |
1007 os=-openedition | |
1008 ;; | |
1009 -wince*) | |
1010 os=-wince | |
1011 ;; | |
1012 -osfrose*) | 729 -osfrose*) |
1013 os=-osfrose | 730 os=-osfrose |
1014 ;; | 731 ;; |
1015 -osf*) | 732 -osf*) |
1016 os=-osf | 733 os=-osf |
1022 os=-bsd | 739 os=-bsd |
1023 ;; | 740 ;; |
1024 -acis*) | 741 -acis*) |
1025 os=-aos | 742 os=-aos |
1026 ;; | 743 ;; |
1027 -386bsd) | |
1028 os=-bsd | |
1029 ;; | |
1030 -ctix* | -uts*) | 744 -ctix* | -uts*) |
1031 os=-sysv | 745 os=-sysv |
1032 ;; | 746 ;; |
1033 -ns2 ) | 747 -ns2 ) |
1034 os=-nextstep2 | 748 os=-nextstep2 |
1035 ;; | |
1036 -nsk) | |
1037 os=-nsk | |
1038 ;; | 749 ;; |
1039 # Preserve the version number of sinix5. | 750 # Preserve the version number of sinix5. |
1040 -sinix5.*) | 751 -sinix5.*) |
1041 os=`echo $os | sed -e 's|sinix|sysv|'` | 752 os=`echo $os | sed -e 's|sinix|sysv|'` |
1042 ;; | 753 ;; |
1059 os=-sysv4 | 770 os=-sysv4 |
1060 ;; | 771 ;; |
1061 # This must come after -sysvr4. | 772 # This must come after -sysvr4. |
1062 -sysv*) | 773 -sysv*) |
1063 ;; | 774 ;; |
1064 -ose*) | |
1065 os=-ose | |
1066 ;; | |
1067 -es1800*) | |
1068 os=-ose | |
1069 ;; | |
1070 -xenix) | 775 -xenix) |
1071 os=-xenix | 776 os=-xenix |
1072 ;; | |
1073 -*mint | -*MiNT) | |
1074 os=-mint | |
1075 ;; | 777 ;; |
1076 -none) | 778 -none) |
1077 ;; | 779 ;; |
1078 *) | 780 *) |
1079 # Get rid of the `-' at the beginning of $os. | 781 # Get rid of the `-' at the beginning of $os. |
1096 | 798 |
1097 case $basic_machine in | 799 case $basic_machine in |
1098 *-acorn) | 800 *-acorn) |
1099 os=-riscix1.2 | 801 os=-riscix1.2 |
1100 ;; | 802 ;; |
1101 arm*-rebel) | |
1102 os=-linux | |
1103 ;; | |
1104 arm*-semi) | 803 arm*-semi) |
1105 os=-aout | 804 os=-aout |
1106 ;; | 805 ;; |
1107 pdp11-*) | 806 pdp11-*) |
1108 os=-none | 807 os=-none |
1120 os=-sunos3 | 819 os=-sunos3 |
1121 # This also exists in the configure program, but was not the | 820 # This also exists in the configure program, but was not the |
1122 # default. | 821 # default. |
1123 # os=-sunos4 | 822 # os=-sunos4 |
1124 ;; | 823 ;; |
1125 m68*-cisco) | |
1126 os=-aout | |
1127 ;; | |
1128 mips*-cisco) | |
1129 os=-elf | |
1130 ;; | |
1131 mips*-*) | |
1132 os=-elf | |
1133 ;; | |
1134 *-tti) # must be before sparc entry or we get the wrong os. | 824 *-tti) # must be before sparc entry or we get the wrong os. |
1135 os=-sysv3 | 825 os=-sysv3 |
1136 ;; | 826 ;; |
1137 sparc-* | *-sun) | 827 sparc-* | *-sun) |
1138 os=-sunos4.1.1 | 828 os=-sunos4.1.1 |
1141 os=-beos | 831 os=-beos |
1142 ;; | 832 ;; |
1143 *-ibm) | 833 *-ibm) |
1144 os=-aix | 834 os=-aix |
1145 ;; | 835 ;; |
1146 *-wec) | |
1147 os=-proelf | |
1148 ;; | |
1149 *-winbond) | |
1150 os=-proelf | |
1151 ;; | |
1152 *-oki) | |
1153 os=-proelf | |
1154 ;; | |
1155 *-hp) | 836 *-hp) |
1156 os=-hpux | 837 os=-hpux |
1157 ;; | 838 ;; |
1158 *-hitachi) | 839 *-hitachi) |
1159 os=-hiux | 840 os=-hiux |
1212 *-masscomp) | 893 *-masscomp) |
1213 os=-rtu | 894 os=-rtu |
1214 ;; | 895 ;; |
1215 f301-fujitsu) | 896 f301-fujitsu) |
1216 os=-uxpv | 897 os=-uxpv |
1217 ;; | |
1218 *-rom68k) | |
1219 os=-coff | |
1220 ;; | |
1221 *-*bug) | |
1222 os=-coff | |
1223 ;; | |
1224 *-apple) | |
1225 os=-macos | |
1226 ;; | |
1227 *-atari*) | |
1228 os=-mint | |
1229 ;; | 898 ;; |
1230 *) | 899 *) |
1231 os=-none | 900 os=-none |
1232 ;; | 901 ;; |
1233 esac | 902 esac |
1246 vendor=sun | 915 vendor=sun |
1247 ;; | 916 ;; |
1248 -aix*) | 917 -aix*) |
1249 vendor=ibm | 918 vendor=ibm |
1250 ;; | 919 ;; |
1251 -beos*) | |
1252 vendor=be | |
1253 ;; | |
1254 -hpux*) | 920 -hpux*) |
1255 vendor=hp | 921 vendor=hp |
1256 ;; | 922 ;; |
1257 -mpeix*) | |
1258 vendor=hp | |
1259 ;; | |
1260 -hiux*) | 923 -hiux*) |
1261 vendor=hitachi | 924 vendor=hitachi |
1262 ;; | 925 ;; |
1263 -unos*) | 926 -unos*) |
1264 vendor=crds | 927 vendor=crds |
1270 vendor=omron | 933 vendor=omron |
1271 ;; | 934 ;; |
1272 -genix*) | 935 -genix*) |
1273 vendor=ns | 936 vendor=ns |
1274 ;; | 937 ;; |
1275 -mvs* | -opened*) | 938 -mvs*) |
1276 vendor=ibm | 939 vendor=ibm |
1277 ;; | 940 ;; |
1278 -ptx*) | 941 -ptx*) |
1279 vendor=sequent | 942 vendor=sequent |
1280 ;; | 943 ;; |
1282 vendor=wrs | 945 vendor=wrs |
1283 ;; | 946 ;; |
1284 -aux*) | 947 -aux*) |
1285 vendor=apple | 948 vendor=apple |
1286 ;; | 949 ;; |
1287 -hms*) | |
1288 vendor=hitachi | |
1289 ;; | |
1290 -mpw* | -macos*) | |
1291 vendor=apple | |
1292 ;; | |
1293 -*mint | -*MiNT) | |
1294 vendor=atari | |
1295 ;; | |
1296 esac | 950 esac |
1297 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | 951 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1298 ;; | 952 ;; |
1299 esac | 953 esac |
1300 | 954 |
1301 echo $basic_machine$os | 955 echo $basic_machine$os |
1302 exit 0 | |
1303 | |
1304 # Local variables: | |
1305 # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1306 # time-stamp-start: "version='" | |
1307 # time-stamp-format: "%:y-%02m-%02d" | |
1308 # time-stamp-end: "'" | |
1309 # End: |