Mercurial > hg > xemacs-beta
comparison config.sub @ 5118:e0db3c197671 ben-lisp-object
merge up to latest default branch, doesn't compile yet
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Sat, 26 Dec 2009 21:18:49 -0600 |
parents | afbfad080ddd |
children | ec3712ffd0e6 |
comparison
equal
deleted
inserted
replaced
5117:3742ea8250b5 | 5118:e0db3c197671 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Configuration validation subroutine script. | 2 # Configuration validation subroutine script. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
5 | 5 # Free Software Foundation, Inc. |
6 timestamp='2005-02-10' | 6 |
7 timestamp='2009-02-03' | |
7 | 8 |
8 # This file is (in principle) common to ALL GNU software. | 9 # This file is (in principle) common to ALL GNU software. |
9 # The presence of a machine in this file suggests that SOME GNU software | 10 # 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. | 11 # can handle that machine. It does not imply ALL GNU software can. |
11 # | 12 # |
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 # GNU General Public License for more details. | 21 # GNU General Public License for more details. |
21 # | 22 # |
22 # You should have received a copy of the GNU General Public License | 23 # You should have received a copy of the GNU General Public License |
23 # along with this program; if not, write to the Free Software | 24 # along with this program; if not, write to the Free Software |
24 # Foundation, Inc., 59 Temple Place - Suite 330, | 25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
25 # Boston, MA 02111-1307, USA. | 26 # 02110-1301, USA. |
26 | 27 # |
27 # As a special exception to the GNU General Public License, if you | 28 # As a special exception to the GNU General Public License, if you |
28 # distribute this file as part of a program that contains a | 29 # distribute this file as part of a program that contains a |
29 # configuration script generated by Autoconf, you may include it under | 30 # configuration script generated by Autoconf, you may include it under |
30 # the same distribution terms that you use for the rest of that program. | 31 # the same distribution terms that you use for the rest of that program. |
32 | |
31 | 33 |
32 # Please send patches to <config-patches@gnu.org>. Submit a context | 34 # Please send patches to <config-patches@gnu.org>. Submit a context |
33 # diff and a properly formatted ChangeLog entry. | 35 # diff and a properly formatted ChangeLog entry. |
34 # | 36 # |
35 # Configuration subroutine to validate and canonicalize a configuration type. | 37 # Configuration subroutine to validate and canonicalize a configuration type. |
68 Report bugs and patches to <config-patches@gnu.org>." | 70 Report bugs and patches to <config-patches@gnu.org>." |
69 | 71 |
70 version="\ | 72 version="\ |
71 GNU config.sub ($timestamp) | 73 GNU config.sub ($timestamp) |
72 | 74 |
73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
74 Free Software Foundation, Inc. | 76 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
75 | 77 |
76 This is free software; see the source for copying conditions. There is NO | 78 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." | 79 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
78 | 80 |
79 help=" | 81 help=" |
81 | 83 |
82 # Parse command line | 84 # Parse command line |
83 while test $# -gt 0 ; do | 85 while test $# -gt 0 ; do |
84 case $1 in | 86 case $1 in |
85 --time-stamp | --time* | -t ) | 87 --time-stamp | --time* | -t ) |
86 echo "$timestamp" ; exit 0 ;; | 88 echo "$timestamp" ; exit ;; |
87 --version | -v ) | 89 --version | -v ) |
88 echo "$version" ; exit 0 ;; | 90 echo "$version" ; exit ;; |
89 --help | --h* | -h ) | 91 --help | --h* | -h ) |
90 echo "$usage"; exit 0 ;; | 92 echo "$usage"; exit ;; |
91 -- ) # Stop option processing | 93 -- ) # Stop option processing |
92 shift; break ;; | 94 shift; break ;; |
93 - ) # Use stdin as input. | 95 - ) # Use stdin as input. |
94 break ;; | 96 break ;; |
95 -* ) | 97 -* ) |
97 exit 1 ;; | 99 exit 1 ;; |
98 | 100 |
99 *local*) | 101 *local*) |
100 # First pass through any local machine types. | 102 # First pass through any local machine types. |
101 echo $1 | 103 echo $1 |
102 exit 0;; | 104 exit ;; |
103 | 105 |
104 * ) | 106 * ) |
105 break ;; | 107 break ;; |
106 esac | 108 esac |
107 done | 109 done |
116 | 118 |
117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | 119 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
118 # Here we must recognize all the valid KERNEL-OS combinations. | 120 # Here we must recognize all the valid KERNEL-OS combinations. |
119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 121 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 case $maybe_os in | 122 case $maybe_os in |
121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ | 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) | 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
125 kopensolaris*-gnu* | \ | |
126 storm-chaos* | os2-emx* | rtmk-nova*) | |
123 os=-$maybe_os | 127 os=-$maybe_os |
124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
125 ;; | 129 ;; |
126 *) | 130 *) |
127 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 131 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
168 basic_machine=$1 | 172 basic_machine=$1 |
169 ;; | 173 ;; |
170 -hiux*) | 174 -hiux*) |
171 os=-hiuxwe2 | 175 os=-hiuxwe2 |
172 ;; | 176 ;; |
177 -sco6) | |
178 os=-sco5v6 | |
179 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
180 ;; | |
173 -sco5) | 181 -sco5) |
174 os=-sco3.2v5 | 182 os=-sco3.2v5 |
175 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 183 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
176 ;; | 184 ;; |
177 -sco4) | 185 -sco4) |
181 -sco3.2.[4-9]*) | 189 -sco3.2.[4-9]*) |
182 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | 190 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
183 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 191 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
184 ;; | 192 ;; |
185 -sco3.2v[4-9]*) | 193 -sco3.2v[4-9]*) |
194 # Don't forget version if it is 3.2v4 or newer. | |
195 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
196 ;; | |
197 -sco5v6*) | |
186 # Don't forget version if it is 3.2v4 or newer. | 198 # Don't forget version if it is 3.2v4 or newer. |
187 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 199 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
188 ;; | 200 ;; |
189 -sco*) | 201 -sco*) |
190 os=-sco3.2v2 | 202 os=-sco3.2v2 |
228 1750a | 580 \ | 240 1750a | 580 \ |
229 | a29k \ | 241 | a29k \ |
230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | 242 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | 243 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
232 | am33_2.0 \ | 244 | am33_2.0 \ |
233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | 245 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
246 | bfin \ | |
234 | c4x | clipper \ | 247 | c4x | clipper \ |
235 | d10v | d30v | dlx | dsp16xx \ | 248 | d10v | d30v | dlx | dsp16xx \ |
236 | fr30 | frv \ | 249 | fido | fr30 | frv \ |
237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | 250 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
238 | i370 | i860 | i960 | ia64 \ | 251 | i370 | i860 | i960 | ia64 \ |
239 | ip2k | iq2000 \ | 252 | ip2k | iq2000 \ |
240 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ | 253 | lm32 \ |
254 | m32c | m32r | m32rle | m68000 | m68k | m88k \ | |
255 | maxq | mb | microblaze | mcore | mep | metag \ | |
241 | mips | mipsbe | mipseb | mipsel | mipsle \ | 256 | mips | mipsbe | mipseb | mipsel | mipsle \ |
242 | mips16 \ | 257 | mips16 \ |
243 | mips64 | mips64el \ | 258 | mips64 | mips64el \ |
259 | mips64octeon | mips64octeonel \ | |
260 | mips64orion | mips64orionel \ | |
261 | mips64r5900 | mips64r5900el \ | |
244 | mips64vr | mips64vrel \ | 262 | mips64vr | mips64vrel \ |
245 | mips64orion | mips64orionel \ | |
246 | mips64vr4100 | mips64vr4100el \ | 263 | mips64vr4100 | mips64vr4100el \ |
247 | mips64vr4300 | mips64vr4300el \ | 264 | mips64vr4300 | mips64vr4300el \ |
248 | mips64vr5000 | mips64vr5000el \ | 265 | mips64vr5000 | mips64vr5000el \ |
266 | mips64vr5900 | mips64vr5900el \ | |
249 | mipsisa32 | mipsisa32el \ | 267 | mipsisa32 | mipsisa32el \ |
250 | mipsisa32r2 | mipsisa32r2el \ | 268 | mipsisa32r2 | mipsisa32r2el \ |
251 | mipsisa64 | mipsisa64el \ | 269 | mipsisa64 | mipsisa64el \ |
252 | mipsisa64r2 | mipsisa64r2el \ | 270 | mipsisa64r2 | mipsisa64r2el \ |
253 | mipsisa64sb1 | mipsisa64sb1el \ | 271 | mipsisa64sb1 | mipsisa64sb1el \ |
254 | mipsisa64sr71k | mipsisa64sr71kel \ | 272 | mipsisa64sr71k | mipsisa64sr71kel \ |
255 | mipstx39 | mipstx39el \ | 273 | mipstx39 | mipstx39el \ |
256 | mn10200 | mn10300 \ | 274 | mn10200 | mn10300 \ |
275 | mt \ | |
257 | msp430 \ | 276 | msp430 \ |
277 | nios | nios2 \ | |
258 | ns16k | ns32k \ | 278 | ns16k | ns32k \ |
259 | openrisc | or32 \ | 279 | or32 \ |
260 | pdp10 | pdp11 | pj | pjl \ | 280 | pdp10 | pdp11 | pj | pjl \ |
261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | 281 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
262 | pyramid \ | 282 | pyramid \ |
263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | 283 | score \ |
284 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | |
264 | sh64 | sh64le \ | 285 | sh64 | sh64le \ |
265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ | 286 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
266 | strongarm \ | 287 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
288 | spu | strongarm \ | |
267 | tahoe | thumb | tic4x | tic80 | tron \ | 289 | tahoe | thumb | tic4x | tic80 | tron \ |
268 | v850 | v850e \ | 290 | v850 | v850e \ |
269 | we32k \ | 291 | we32k \ |
270 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | 292 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
271 | z8k) | 293 | z8k | z80) |
272 basic_machine=$basic_machine-unknown | 294 basic_machine=$basic_machine-unknown |
273 ;; | 295 ;; |
274 m6811 | m68hc11 | m6812 | m68hc12) | 296 m6811 | m68hc11 | m6812 | m68hc12) |
275 # Motorola 68HC11/12. | 297 # Motorola 68HC11/12. |
276 basic_machine=$basic_machine-unknown | 298 basic_machine=$basic_machine-unknown |
277 os=-none | 299 os=-none |
278 ;; | 300 ;; |
279 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | 301 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
302 ;; | |
303 ms1) | |
304 basic_machine=mt-unknown | |
280 ;; | 305 ;; |
281 | 306 |
282 # We use `pc' rather than `unknown' | 307 # We use `pc' rather than `unknown' |
283 # because (1) that's what they normally are, and | 308 # because (1) that's what they normally are, and |
284 # (2) the word "unknown" tends to confuse beginning users. | 309 # (2) the word "unknown" tends to confuse beginning users. |
295 | a29k-* \ | 320 | a29k-* \ |
296 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | 321 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
297 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | 322 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
298 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | 323 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
299 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | 324 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
300 | avr-* \ | 325 | avr-* | avr32-* \ |
301 | bs2000-* \ | 326 | bfin-* | bs2000-* \ |
302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | 327 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
303 | clipper-* | craynv-* | cydra-* \ | 328 | clipper-* | craynv-* | cydra-* \ |
304 | d10v-* | d30v-* | dlx-* \ | 329 | d10v-* | d30v-* | dlx-* \ |
305 | elxsi-* \ | 330 | elxsi-* \ |
306 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | 331 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
307 | h8300-* | h8500-* \ | 332 | h8300-* | h8500-* \ |
308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | 333 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
309 | i*86-* | i860-* | i960-* | ia64-* \ | 334 | i*86-* | i860-* | i960-* | ia64-* \ |
310 | ip2k-* | iq2000-* \ | 335 | ip2k-* | iq2000-* \ |
311 | m32r-* | m32rle-* \ | 336 | lm32-* \ |
337 | m32c-* | m32r-* | m32rle-* \ | |
312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | 338 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
313 | m88110-* | m88k-* | maxq-* | mcore-* \ | 339 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
314 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | 340 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
315 | mips16-* \ | 341 | mips16-* \ |
316 | mips64-* | mips64el-* \ | 342 | mips64-* | mips64el-* \ |
343 | mips64octeon-* | mips64octeonel-* \ | |
344 | mips64orion-* | mips64orionel-* \ | |
345 | mips64r5900-* | mips64r5900el-* \ | |
317 | mips64vr-* | mips64vrel-* \ | 346 | mips64vr-* | mips64vrel-* \ |
318 | mips64orion-* | mips64orionel-* \ | |
319 | mips64vr4100-* | mips64vr4100el-* \ | 347 | mips64vr4100-* | mips64vr4100el-* \ |
320 | mips64vr4300-* | mips64vr4300el-* \ | 348 | mips64vr4300-* | mips64vr4300el-* \ |
321 | mips64vr5000-* | mips64vr5000el-* \ | 349 | mips64vr5000-* | mips64vr5000el-* \ |
350 | mips64vr5900-* | mips64vr5900el-* \ | |
322 | mipsisa32-* | mipsisa32el-* \ | 351 | mipsisa32-* | mipsisa32el-* \ |
323 | mipsisa32r2-* | mipsisa32r2el-* \ | 352 | mipsisa32r2-* | mipsisa32r2el-* \ |
324 | mipsisa64-* | mipsisa64el-* \ | 353 | mipsisa64-* | mipsisa64el-* \ |
325 | mipsisa64r2-* | mipsisa64r2el-* \ | 354 | mipsisa64r2-* | mipsisa64r2el-* \ |
326 | mipsisa64sb1-* | mipsisa64sb1el-* \ | 355 | mipsisa64sb1-* | mipsisa64sb1el-* \ |
327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | 356 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
328 | mipstx39-* | mipstx39el-* \ | 357 | mipstx39-* | mipstx39el-* \ |
329 | mmix-* \ | 358 | mmix-* \ |
359 | mt-* \ | |
330 | msp430-* \ | 360 | msp430-* \ |
361 | nios-* | nios2-* \ | |
331 | none-* | np1-* | ns16k-* | ns32k-* \ | 362 | none-* | np1-* | ns16k-* | ns32k-* \ |
332 | orion-* \ | 363 | orion-* \ |
333 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 364 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
334 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | 365 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
335 | pyramid-* \ | 366 | pyramid-* \ |
336 | romp-* | rs6000-* \ | 367 | romp-* | rs6000-* \ |
337 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | 368 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
338 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | 369 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
339 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | 370 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
340 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | 371 | sparclite-* \ |
372 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | |
341 | tahoe-* | thumb-* \ | 373 | tahoe-* | thumb-* \ |
342 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | 374 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ |
343 | tron-* \ | 375 | tron-* \ |
344 | v850-* | v850e-* | vax-* \ | 376 | v850-* | v850e-* | vax-* \ |
345 | we32k-* \ | 377 | we32k-* \ |
346 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | 378 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
347 | xstormy16-* | xtensa-* \ | 379 | xstormy16-* | xtensa*-* \ |
348 | ymp-* \ | 380 | ymp-* \ |
349 | z8k-*) | 381 | z8k-* | z80-*) |
382 ;; | |
383 # Recognize the basic CPU types without company name, with glob match. | |
384 xtensa*) | |
385 basic_machine=$basic_machine-unknown | |
350 ;; | 386 ;; |
351 # Recognize the various machine names and aliases which stand | 387 # Recognize the various machine names and aliases which stand |
352 # for a CPU type and a company and sometimes even an OS. | 388 # for a CPU type and a company and sometimes even an OS. |
353 386bsd) | 389 386bsd) |
354 basic_machine=i386-unknown | 390 basic_machine=i386-unknown |
408 ;; | 444 ;; |
409 apollo68bsd) | 445 apollo68bsd) |
410 basic_machine=m68k-apollo | 446 basic_machine=m68k-apollo |
411 os=-bsd | 447 os=-bsd |
412 ;; | 448 ;; |
449 aros) | |
450 basic_machine=i386-pc | |
451 os=-aros | |
452 ;; | |
413 aux) | 453 aux) |
414 basic_machine=m68k-apple | 454 basic_machine=m68k-apple |
415 os=-aux | 455 os=-aux |
416 ;; | 456 ;; |
417 balance) | 457 balance) |
418 basic_machine=ns32k-sequent | 458 basic_machine=ns32k-sequent |
419 os=-dynix | 459 os=-dynix |
420 ;; | 460 ;; |
461 blackfin) | |
462 basic_machine=bfin-unknown | |
463 os=-linux | |
464 ;; | |
465 blackfin-*) | |
466 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
467 os=-linux | |
468 ;; | |
421 c90) | 469 c90) |
422 basic_machine=c90-cray | 470 basic_machine=c90-cray |
423 os=-unicos | 471 os=-unicos |
424 ;; | 472 ;; |
473 cegcc) | |
474 basic_machine=arm-unknown | |
475 os=-cegcc | |
476 ;; | |
425 convex-c1) | 477 convex-c1) |
426 basic_machine=c1-convex | 478 basic_machine=c1-convex |
427 os=-bsd | 479 os=-bsd |
428 ;; | 480 ;; |
429 convex-c2) | 481 convex-c2) |
448 ;; | 500 ;; |
449 craynv) | 501 craynv) |
450 basic_machine=craynv-cray | 502 basic_machine=craynv-cray |
451 os=-unicosmp | 503 os=-unicosmp |
452 ;; | 504 ;; |
453 cr16c) | 505 cr16) |
454 basic_machine=cr16c-unknown | 506 basic_machine=cr16-unknown |
455 os=-elf | 507 os=-elf |
456 ;; | 508 ;; |
457 crds | unos) | 509 crds | unos) |
458 basic_machine=m68k-crds | 510 basic_machine=m68k-crds |
459 ;; | 511 ;; |
486 basic_machine=m68k-motorola | 538 basic_machine=m68k-motorola |
487 ;; | 539 ;; |
488 delta88) | 540 delta88) |
489 basic_machine=m88k-motorola | 541 basic_machine=m88k-motorola |
490 os=-sysv3 | 542 os=-sysv3 |
543 ;; | |
544 dicos) | |
545 basic_machine=i686-pc | |
546 os=-dicos | |
491 ;; | 547 ;; |
492 djgpp) | 548 djgpp) |
493 basic_machine=i586-pc | 549 basic_machine=i586-pc |
494 os=-msdosdjgpp | 550 os=-msdosdjgpp |
495 ;; | 551 ;; |
641 ;; | 697 ;; |
642 isi68 | isi) | 698 isi68 | isi) |
643 basic_machine=m68k-isi | 699 basic_machine=m68k-isi |
644 os=-sysv | 700 os=-sysv |
645 ;; | 701 ;; |
702 m68knommu) | |
703 basic_machine=m68k-unknown | |
704 os=-linux | |
705 ;; | |
706 m68knommu-*) | |
707 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
708 os=-linux | |
709 ;; | |
646 m88k-omron*) | 710 m88k-omron*) |
647 basic_machine=m88k-omron | 711 basic_machine=m88k-omron |
648 ;; | 712 ;; |
649 magnum | m3230) | 713 magnum | m3230) |
650 basic_machine=mips-mips | 714 basic_machine=mips-mips |
656 ;; | 720 ;; |
657 mingw32) | 721 mingw32) |
658 basic_machine=i386-pc | 722 basic_machine=i386-pc |
659 os=-mingw32 | 723 os=-mingw32 |
660 ;; | 724 ;; |
725 mingw32ce) | |
726 basic_machine=arm-unknown | |
727 os=-mingw32ce | |
728 ;; | |
661 miniframe) | 729 miniframe) |
662 basic_machine=m68000-convergent | 730 basic_machine=m68000-convergent |
663 ;; | 731 ;; |
664 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | 732 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
665 basic_machine=m68k-atari | 733 basic_machine=m68k-atari |
680 os=-morphos | 748 os=-morphos |
681 ;; | 749 ;; |
682 msdos) | 750 msdos) |
683 basic_machine=i386-pc | 751 basic_machine=i386-pc |
684 os=-msdos | 752 os=-msdos |
753 ;; | |
754 ms1-*) | |
755 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | |
685 ;; | 756 ;; |
686 mvs) | 757 mvs) |
687 basic_machine=i370-ibm | 758 basic_machine=i370-ibm |
688 os=-mvs | 759 os=-mvs |
689 ;; | 760 ;; |
756 ;; | 827 ;; |
757 op50n-* | op60c-*) | 828 op50n-* | op60c-*) |
758 basic_machine=hppa1.1-oki | 829 basic_machine=hppa1.1-oki |
759 os=-proelf | 830 os=-proelf |
760 ;; | 831 ;; |
761 or32 | or32-*) | 832 openrisc | openrisc-*) |
762 basic_machine=or32-unknown | 833 basic_machine=or32-unknown |
763 os=-coff | |
764 ;; | 834 ;; |
765 os400) | 835 os400) |
766 basic_machine=powerpc-ibm | 836 basic_machine=powerpc-ibm |
767 os=-os400 | 837 os=-os400 |
768 ;; | 838 ;; |
780 ;; | 850 ;; |
781 paragon) | 851 paragon) |
782 basic_machine=i860-intel | 852 basic_machine=i860-intel |
783 os=-osf | 853 os=-osf |
784 ;; | 854 ;; |
855 parisc) | |
856 basic_machine=hppa-unknown | |
857 os=-linux | |
858 ;; | |
859 parisc-*) | |
860 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
861 os=-linux | |
862 ;; | |
785 pbd) | 863 pbd) |
786 basic_machine=sparc-tti | 864 basic_machine=sparc-tti |
787 ;; | 865 ;; |
788 pbb) | 866 pbb) |
789 basic_machine=m68k-tti | 867 basic_machine=m68k-tti |
790 ;; | 868 ;; |
791 pc532 | pc532-*) | 869 pc532 | pc532-*) |
792 basic_machine=ns32k-pc532 | 870 basic_machine=ns32k-pc532 |
871 ;; | |
872 pc98) | |
873 basic_machine=i386-pc | |
874 ;; | |
875 pc98-*) | |
876 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | |
793 ;; | 877 ;; |
794 pentium | p5 | k5 | k6 | nexgen | viac3) | 878 pentium | p5 | k5 | k6 | nexgen | viac3) |
795 basic_machine=i586-pc | 879 basic_machine=i586-pc |
796 ;; | 880 ;; |
797 pentiumpro | p6 | 6x86 | athlon | athlon_*) | 881 pentiumpro | p6 | 6x86 | athlon | athlon_*) |
845 ;; | 929 ;; |
846 pw32) | 930 pw32) |
847 basic_machine=i586-unknown | 931 basic_machine=i586-unknown |
848 os=-pw32 | 932 os=-pw32 |
849 ;; | 933 ;; |
934 rdos) | |
935 basic_machine=i386-pc | |
936 os=-rdos | |
937 ;; | |
850 rom68k) | 938 rom68k) |
851 basic_machine=m68k-rom68k | 939 basic_machine=m68k-rom68k |
852 os=-coff | 940 os=-coff |
853 ;; | 941 ;; |
854 rm[46]00) | 942 rm[46]00) |
871 basic_machine=mipsisa64sb1-unknown | 959 basic_machine=mipsisa64sb1-unknown |
872 ;; | 960 ;; |
873 sb1el) | 961 sb1el) |
874 basic_machine=mipsisa64sb1el-unknown | 962 basic_machine=mipsisa64sb1el-unknown |
875 ;; | 963 ;; |
964 sde) | |
965 basic_machine=mipsisa32-sde | |
966 os=-elf | |
967 ;; | |
876 sei) | 968 sei) |
877 basic_machine=mips-sei | 969 basic_machine=mips-sei |
878 os=-seiux | 970 os=-seiux |
879 ;; | 971 ;; |
880 sequent) | 972 sequent) |
882 ;; | 974 ;; |
883 sh) | 975 sh) |
884 basic_machine=sh-hitachi | 976 basic_machine=sh-hitachi |
885 os=-hms | 977 os=-hms |
886 ;; | 978 ;; |
979 sh5el) | |
980 basic_machine=sh5le-unknown | |
981 ;; | |
887 sh64) | 982 sh64) |
888 basic_machine=sh64-unknown | 983 basic_machine=sh64-unknown |
889 ;; | 984 ;; |
890 sparclite-wrs | simso-wrs) | 985 sparclite-wrs | simso-wrs) |
891 basic_machine=sparclite-wrs | 986 basic_machine=sparclite-wrs |
971 ;; | 1066 ;; |
972 tic6x | c6x*) | 1067 tic6x | c6x*) |
973 basic_machine=tic6x-unknown | 1068 basic_machine=tic6x-unknown |
974 os=-coff | 1069 os=-coff |
975 ;; | 1070 ;; |
1071 tile*) | |
1072 basic_machine=tile-unknown | |
1073 os=-linux-gnu | |
1074 ;; | |
976 tx39) | 1075 tx39) |
977 basic_machine=mipstx39-unknown | 1076 basic_machine=mipstx39-unknown |
978 ;; | 1077 ;; |
979 tx39el) | 1078 tx39el) |
980 basic_machine=mipstx39el-unknown | 1079 basic_machine=mipstx39el-unknown |
1044 basic_machine=ymp-cray | 1143 basic_machine=ymp-cray |
1045 os=-unicos | 1144 os=-unicos |
1046 ;; | 1145 ;; |
1047 z8k-*-coff) | 1146 z8k-*-coff) |
1048 basic_machine=z8k-unknown | 1147 basic_machine=z8k-unknown |
1148 os=-sim | |
1149 ;; | |
1150 z80-*-coff) | |
1151 basic_machine=z80-unknown | |
1049 os=-sim | 1152 os=-sim |
1050 ;; | 1153 ;; |
1051 none) | 1154 none) |
1052 basic_machine=none-none | 1155 basic_machine=none-none |
1053 os=-none | 1156 os=-none |
1084 basic_machine=pdp11-dec | 1187 basic_machine=pdp11-dec |
1085 ;; | 1188 ;; |
1086 we32k) | 1189 we32k) |
1087 basic_machine=we32k-att | 1190 basic_machine=we32k-att |
1088 ;; | 1191 ;; |
1089 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) | 1192 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1090 basic_machine=sh-unknown | 1193 basic_machine=sh-unknown |
1091 ;; | 1194 ;; |
1092 sh64) | 1195 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
1093 basic_machine=sh64-unknown | |
1094 ;; | |
1095 sparc | sparcv8 | sparcv9 | sparcv9b) | |
1096 basic_machine=sparc-sun | 1196 basic_machine=sparc-sun |
1097 ;; | 1197 ;; |
1098 cydra) | 1198 cydra) |
1099 basic_machine=cydra-cydrome | 1199 basic_machine=cydra-cydrome |
1100 ;; | 1200 ;; |
1159 # Each alternative MUST END IN A *, to match a version number. | 1259 # Each alternative MUST END IN A *, to match a version number. |
1160 # -sysv* is not here because it comes later, after sysvr4. | 1260 # -sysv* is not here because it comes later, after sysvr4. |
1161 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | 1261 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1162 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | 1262 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
1163 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | 1263 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1264 | -kopensolaris* \ | |
1164 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | 1265 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1165 | -aos* \ | 1266 | -aos* | -aros* \ |
1166 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | 1267 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1167 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | 1268 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1168 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ | 1269 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1270 | -openbsd* | -solidbsd* \ | |
1169 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | 1271 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1170 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1272 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1171 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1273 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1172 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1274 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1173 | -chorusos* | -chorusrdb* \ | 1275 | -chorusos* | -chorusrdb* | -cegcc* \ |
1174 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1276 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1175 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ | 1277 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
1278 | -uxpv* | -beos* | -mpeix* | -udk* \ | |
1176 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1279 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1177 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1280 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1178 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | 1281 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1179 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | 1282 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1180 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | 1283 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1181 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) | 1284 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1285 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) | |
1182 # Remember, each alternative MUST END IN *, to match a version number. | 1286 # Remember, each alternative MUST END IN *, to match a version number. |
1183 ;; | 1287 ;; |
1184 -qnx*) | 1288 -qnx*) |
1185 case $basic_machine in | 1289 case $basic_machine in |
1186 x86-* | i*86-*) | 1290 x86-* | i*86-*) |
1194 ;; | 1298 ;; |
1195 -nto*) | 1299 -nto*) |
1196 os=`echo $os | sed -e 's|nto|nto-qnx|'` | 1300 os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1197 ;; | 1301 ;; |
1198 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | 1302 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1199 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | 1303 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
1200 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | 1304 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1201 ;; | 1305 ;; |
1202 -mac*) | 1306 -mac*) |
1203 os=`echo $os | sed -e 's|mac|macos|'` | 1307 os=`echo $os | sed -e 's|mac|macos|'` |
1204 ;; | 1308 ;; |
1305 -kaos*) | 1409 -kaos*) |
1306 os=-kaos | 1410 os=-kaos |
1307 ;; | 1411 ;; |
1308 -zvmoe) | 1412 -zvmoe) |
1309 os=-zvmoe | 1413 os=-zvmoe |
1414 ;; | |
1415 -dicos*) | |
1416 os=-dicos | |
1310 ;; | 1417 ;; |
1311 -none) | 1418 -none) |
1312 ;; | 1419 ;; |
1313 *) | 1420 *) |
1314 # Get rid of the `-' at the beginning of $os. | 1421 # Get rid of the `-' at the beginning of $os. |
1328 # that MANUFACTURER isn't an operating system. Otherwise, code above | 1435 # that MANUFACTURER isn't an operating system. Otherwise, code above |
1329 # will signal an error saying that MANUFACTURER isn't an operating | 1436 # will signal an error saying that MANUFACTURER isn't an operating |
1330 # system, and we'll never get to this point. | 1437 # system, and we'll never get to this point. |
1331 | 1438 |
1332 case $basic_machine in | 1439 case $basic_machine in |
1440 score-*) | |
1441 os=-elf | |
1442 ;; | |
1443 spu-*) | |
1444 os=-elf | |
1445 ;; | |
1333 *-acorn) | 1446 *-acorn) |
1334 os=-riscix1.2 | 1447 os=-riscix1.2 |
1335 ;; | 1448 ;; |
1336 arm*-rebel) | 1449 arm*-rebel) |
1337 os=-linux | 1450 os=-linux |
1338 ;; | 1451 ;; |
1339 arm*-semi) | 1452 arm*-semi) |
1340 os=-aout | 1453 os=-aout |
1341 ;; | 1454 ;; |
1342 c4x-* | tic4x-*) | 1455 c4x-* | tic4x-*) |
1343 os=-coff | 1456 os=-coff |
1344 ;; | 1457 ;; |
1345 # This must come before the *-dec entry. | 1458 # This must come before the *-dec entry. |
1346 pdp10-*) | 1459 pdp10-*) |
1347 os=-tops20 | 1460 os=-tops20 |
1348 ;; | 1461 ;; |
1349 pdp11-*) | 1462 pdp11-*) |
1365 # os=-sunos4 | 1478 # os=-sunos4 |
1366 ;; | 1479 ;; |
1367 m68*-cisco) | 1480 m68*-cisco) |
1368 os=-aout | 1481 os=-aout |
1369 ;; | 1482 ;; |
1483 mep-*) | |
1484 os=-elf | |
1485 ;; | |
1370 mips*-cisco) | 1486 mips*-cisco) |
1371 os=-elf | 1487 os=-elf |
1372 ;; | 1488 ;; |
1373 mips*-*) | 1489 mips*-*) |
1374 os=-elf | 1490 os=-elf |
1382 sparc-* | *-sun) | 1498 sparc-* | *-sun) |
1383 os=-sunos4.1.1 | 1499 os=-sunos4.1.1 |
1384 ;; | 1500 ;; |
1385 *-be) | 1501 *-be) |
1386 os=-beos | 1502 os=-beos |
1503 ;; | |
1504 *-haiku) | |
1505 os=-haiku | |
1387 ;; | 1506 ;; |
1388 *-ibm) | 1507 *-ibm) |
1389 os=-aix | 1508 os=-aix |
1390 ;; | 1509 ;; |
1391 *-knuth) | 1510 *-knuth) |
1554 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | 1673 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1555 ;; | 1674 ;; |
1556 esac | 1675 esac |
1557 | 1676 |
1558 echo $basic_machine$os | 1677 echo $basic_machine$os |
1559 exit 0 | 1678 exit |
1560 | 1679 |
1561 # Local variables: | 1680 # Local variables: |
1562 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1681 # eval: (add-hook 'write-file-hooks 'time-stamp) |
1563 # time-stamp-start: "timestamp='" | 1682 # time-stamp-start: "timestamp='" |
1564 # time-stamp-format: "%:y-%02m-%02d" | 1683 # time-stamp-format: "%:y-%02m-%02d" |