1 2009-05-10 Aurelien Jarno <aurelien@aurel32.net>
3 * scripts/config.guess: update to version 2009-04-27.
4 * scripts/config.sub: ditto.
7 scripts/config.guess | 117 ++++++++++++++++++++++++++++---------
8 scripts/config.sub | 159 +++++++++++++++++++++++++++++++++++++--------------
9 2 files changed, 208 insertions(+), 68 deletions(-)
11 --- a/scripts/config.guess
12 +++ b/scripts/config.guess
15 # Attempt to guess a canonical system name.
16 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
17 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
19 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
20 +# Free Software Foundation, Inc.
22 -timestamp='2006-02-27'
23 +timestamp='2009-04-27'
25 # This file is free software; you can redistribute it and/or modify it
26 # under the terms of the GNU General Public License as published by
28 GNU config.guess ($timestamp)
30 Originally written by Per Bothner.
31 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
32 -Free Software Foundation, Inc.
33 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
34 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
36 This is free software; see the source for copying conditions. There is NO
37 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
39 arm*) machine=arm-unknown ;;
40 sh3el) machine=shl-unknown ;;
41 sh3eb) machine=sh-unknown ;;
42 + sh5el) machine=sh5le-unknown ;;
43 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
45 # The Operating System including object format, if it has switched
47 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
50 - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
51 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
54 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
56 case `/usr/bin/uname -p` in
57 sparc) echo sparc-icl-nx7; exit ;;
60 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
63 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
65 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
66 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
69 - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
70 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
71 + eval $set_cc_for_build
73 + # If there is a compiler, see if it is configured for 64-bit objects.
74 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
75 + # This test works for both compilers.
76 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
77 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
78 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
79 + grep IS_64BIT_ARCH >/dev/null
84 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
87 # According to config.sub, this is the proper way to canonicalize
89 echo rs6000-ibm-aix3.2
94 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
95 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
98 case ${UNAME_MACHINE} in
100 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
102 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
104 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
108 echo ${UNAME_MACHINE}-pc-cygwin
111 - echo ${UNAME_MACHINE}-pc-mingw32
115 echo ${UNAME_MACHINE}-pc-mingw32
118 @@ -791,12 +807,18 @@
120 echo ${UNAME_MACHINE}-pc-pw32
122 - x86:Interix*:[345]*)
123 - echo i586-pc-interix${UNAME_RELEASE}
125 - EM64T:Interix*:[345]*)
126 - echo x86_64-unknown-interix${UNAME_RELEASE}
128 + *:Interix*:[3456]*)
129 + case ${UNAME_MACHINE} in
131 + echo i586-pc-interix${UNAME_RELEASE}
133 + EM64T | authenticamd | genuineintel)
134 + echo x86_64-unknown-interix${UNAME_RELEASE}
137 + echo ia64-unknown-interix${UNAME_RELEASE}
140 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
141 echo i${UNAME_MACHINE}-pc-mks
144 echo ${UNAME_MACHINE}-pc-minix
147 + eval $set_cc_for_build
148 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
149 + | grep -q __ARM_EABI__
151 + echo ${UNAME_MACHINE}-unknown-linux-gnu
153 + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
157 echo ${UNAME_MACHINE}-unknown-linux-gnu
161 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
162 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
165 + echo sparc-unknown-linux-gnu
167 parisc:Linux:*:* | hppa:Linux:*:*)
169 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
172 echo x86_64-unknown-linux-gnu
175 + echo ${UNAME_MACHINE}-unknown-linux-gnu
178 # The BFD linker knows what the default object file format is, so
179 # first see if it will tell us. cd to the root directory to prevent
182 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
185 - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
188 # Either a pre-BFD a.out linker (linux-gnuoldld) or
189 # one that does not give us useful --help.
194 - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
195 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
199 @@ -1083,8 +1118,11 @@
201 # Left here for compatibility:
202 # uname -m prints for DJGPP always 'pc', but it prints nothing about
203 - # the processor, so we play safe by assuming i386.
204 - echo i386-pc-msdosdjgpp
205 + # the processor, so we play safe by assuming i586.
206 + # Note: whatever this is, it MUST be the same as what config.sub
207 + # prints for the "djgpp" host, or else GDB configury will decide that
208 + # this is a cross-build.
209 + echo i586-pc-msdosdjgpp
213 @@ -1122,6 +1160,16 @@
214 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
215 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
216 && { echo i486-ncr-sysv4; exit; } ;;
217 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
219 + test -r /etc/.relid \
220 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
221 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
222 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
223 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
224 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
225 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
226 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
227 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
228 echo m68k-unknown-lynxos${UNAME_RELEASE}
230 @@ -1197,6 +1245,9 @@
231 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
234 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
238 echo sx4-nec-superux${UNAME_RELEASE}
240 @@ -1206,6 +1257,15 @@
242 echo sx6-nec-superux${UNAME_RELEASE}
245 + echo sx7-nec-superux${UNAME_RELEASE}
248 + echo sx8-nec-superux${UNAME_RELEASE}
250 + SX-8R:SUPER-UX:*:*)
251 + echo sx8r-nec-superux${UNAME_RELEASE}
254 echo powerpc-apple-rhapsody${UNAME_RELEASE}
256 @@ -1296,6 +1356,9 @@
258 echo ${UNAME_MACHINE}-pc-rdos
261 + echo ${UNAME_MACHINE}-pc-aros
265 #echo '(No uname command or uname output not recognized.)' 1>&2
266 @@ -1456,9 +1519,9 @@
267 the operating system you are using. It is advised that you
268 download the most up to date version of the config scripts from
270 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
271 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
273 - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
274 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
276 If the version you run ($0) is already up to date, please
277 send the following data and any information you think might be
278 --- a/scripts/config.sub
279 +++ b/scripts/config.sub
282 # Configuration validation subroutine script.
283 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
284 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
286 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
287 +# Free Software Foundation, Inc.
289 -timestamp='2006-02-27'
290 +timestamp='2009-04-17'
292 # This file is (in principle) common to ALL GNU software.
293 # The presence of a machine in this file suggests that SOME GNU software
296 GNU config.sub ($timestamp)
298 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
299 -Free Software Foundation, Inc.
300 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
301 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
303 This is free software; see the source for copying conditions. There is NO
304 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
307 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
308 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
309 + kopensolaris*-gnu* | \
310 storm-chaos* | os2-emx* | rtmk-nova*)
312 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
313 @@ -241,20 +242,24 @@
314 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
315 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
317 - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
318 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
321 | d10v | d30v | dlx | dsp16xx \
323 + | fido | fr30 | frv \
324 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
325 | i370 | i860 | i960 | ia64 \
327 - | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
329 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
330 + | maxq | mb | microblaze | mcore | mep | metag \
331 | mips | mipsbe | mipseb | mipsel | mipsle \
333 | mips64 | mips64el \
334 - | mips64vr | mips64vrel \
335 + | mips64octeon | mips64octeonel \
336 | mips64orion | mips64orionel \
337 + | mips64r5900 | mips64r5900el \
338 + | mips64vr | mips64vrel \
339 | mips64vr4100 | mips64vr4100el \
340 | mips64vr4300 | mips64vr4300el \
341 | mips64vr5000 | mips64vr5000el \
343 | mipsisa64sr71k | mipsisa64sr71kel \
344 | mipstx39 | mipstx39el \
345 | mn10200 | mn10300 \
350 @@ -275,19 +281,17 @@
351 | pdp10 | pdp11 | pj | pjl \
352 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
354 - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
356 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
358 - | sparc | sparc64 | sparc64b | sparc64v | sparc64v2 | sparc86x | sparclet | sparclite \
359 - | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sparcv9v2 \
361 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
362 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
363 + | spu | strongarm \
364 | tahoe | thumb | tic4x | tic80 | tron \
367 - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
369 - basic_machine=$basic_machine-unknown
372 + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
374 basic_machine=$basic_machine-unknown
376 m6811 | m68hc11 | m6812 | m68hc12)
377 @@ -319,25 +323,28 @@
378 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
379 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
380 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
382 + | avr-* | avr32-* \
383 | bfin-* | bs2000-* \
384 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
385 | clipper-* | craynv-* | cydra-* \
386 | d10v-* | d30v-* | dlx-* \
388 - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
389 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
390 | h8300-* | h8500-* \
391 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
392 | i*86-* | i860-* | i960-* | ia64-* \
393 | ip2k-* | iq2000-* \
394 - | m32r-* | m32rle-* \
396 + | m32c-* | m32r-* | m32rle-* \
397 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
398 - | m88110-* | m88k-* | maxq-* | mcore-* \
399 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
400 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
402 | mips64-* | mips64el-* \
403 - | mips64vr-* | mips64vrel-* \
404 + | mips64octeon-* | mips64octeonel-* \
405 | mips64orion-* | mips64orionel-* \
406 + | mips64r5900-* | mips64r5900el-* \
407 + | mips64vr-* | mips64vrel-* \
408 | mips64vr4100-* | mips64vr4100el-* \
409 | mips64vr4300-* | mips64vr4300el-* \
410 | mips64vr5000-* | mips64vr5000el-* \
411 @@ -359,22 +366,24 @@
412 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
414 | romp-* | rs6000-* \
415 - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
416 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
417 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
418 - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc64v2-* | sparc86x-* | sparclet-* \
419 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
421 - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sparcv9v2-* | strongarm-* | sv1-* | sx?-* \
422 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
423 | tahoe-* | thumb-* \
424 - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
425 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
427 | v850-* | v850e-* | vax-* \
429 - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
430 - | xstormy16-* | xtensa-* \
431 + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
432 + | xstormy16-* | xtensa*-* \
438 + # Recognize the basic CPU types without company name, with glob match.
440 + basic_machine=$basic_machine-unknown
442 # Recognize the various machine names and aliases which stand
443 # for a CPU type and a company and sometimes even an OS.
445 basic_machine=m68k-apollo
449 + basic_machine=i386-pc
453 basic_machine=m68k-apple
455 @@ -446,10 +459,22 @@
456 basic_machine=ns32k-sequent
460 + basic_machine=bfin-unknown
464 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
468 basic_machine=c90-cray
472 + basic_machine=arm-unknown
476 basic_machine=c1-convex
479 basic_machine=craynv-cray
483 - basic_machine=cr16c-unknown
485 + basic_machine=cr16-unknown
490 basic_machine=m88k-motorola
494 + basic_machine=i686-pc
498 basic_machine=i586-pc
501 basic_machine=m68k-isi
505 + basic_machine=m68k-unknown
509 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
513 basic_machine=m88k-omron
516 basic_machine=i386-pc
520 + basic_machine=arm-unknown
524 basic_machine=m68000-convergent
527 basic_machine=i860-intel
531 + basic_machine=hppa-unknown
535 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
539 basic_machine=sparc-tti
543 basic_machine=mipsisa64sb1el-unknown
546 + basic_machine=mipsisa32-sde
550 basic_machine=mips-sei
553 basic_machine=sh-hitachi
557 + basic_machine=sh5le-unknown
560 basic_machine=sh64-unknown
562 @@ -1013,6 +1069,10 @@
563 basic_machine=tic6x-unknown
567 + basic_machine=tile-unknown
571 basic_machine=mipstx39-unknown
573 @@ -1088,6 +1148,10 @@
574 basic_machine=z8k-unknown
578 + basic_machine=z80-unknown
582 basic_machine=none-none
584 @@ -1126,10 +1190,10 @@
586 basic_machine=we32k-att
588 - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
589 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
590 basic_machine=sh-unknown
592 - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sparcv9v2)
593 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
594 basic_machine=sparc-sun
597 @@ -1198,8 +1262,9 @@
598 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
599 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
600 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
602 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
605 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
606 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
607 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
608 @@ -1208,7 +1273,7 @@
609 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
610 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
611 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
612 - | -chorusos* | -chorusrdb* \
613 + | -chorusos* | -chorusrdb* | -cegcc* \
614 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
615 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
616 | -uxpv* | -beos* | -mpeix* | -udk* \
617 @@ -1218,7 +1283,7 @@
618 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
619 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
620 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
621 - | -skyos* | -haiku* | -rdos*)
622 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
623 # Remember, each alternative MUST END IN *, to match a version number.
626 @@ -1348,6 +1413,9 @@
636 @@ -1370,6 +1438,12 @@
637 # system, and we'll never get to this point.
639 case $basic_machine in
649 @@ -1379,9 +1453,9 @@
659 # This must come before the *-dec entry.
662 @@ -1407,6 +1481,9 @@