|
1 | 1 | #! /bin/sh |
2 | 2 | # Attempt to guess a canonical system name. |
3 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | | -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, |
5 | | -# Inc. |
| 4 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 5 | +# Free Software Foundation, Inc. |
6 | 6 |
|
7 | | -timestamp='2007-05-17' |
| 7 | +timestamp='2008-01-23' |
8 | 8 |
|
9 | 9 | # This file is free software; you can redistribute it and/or modify it |
10 | 10 | # under the terms of the GNU General Public License as published by |
@@ -56,8 +56,8 @@ version="\ |
56 | 56 | GNU config.guess ($timestamp) |
57 | 57 |
|
58 | 58 | Originally written by Per Bothner. |
59 | | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
60 | | -Free Software Foundation, Inc. |
| 59 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
| 60 | +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
61 | 61 |
|
62 | 62 | This is free software; see the source for copying conditions. There is NO |
63 | 63 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
@@ -330,7 +330,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
330 | 330 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
331 | 331 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
332 | 332 | exit ;; |
333 | | - i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*) |
| 333 | + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
334 | 334 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
335 | 335 | exit ;; |
336 | 336 | sun4*:SunOS:6*:*) |
|
532 | 532 | echo rs6000-ibm-aix3.2 |
533 | 533 | fi |
534 | 534 | exit ;; |
535 | | - *:AIX:*:[45]) |
| 535 | + *:AIX:*:[456]) |
536 | 536 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
537 | 537 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
538 | 538 | IBM_ARCH=rs6000 |
@@ -793,12 +793,15 @@ EOF |
793 | 793 | exit ;; |
794 | 794 | *:Interix*:[3456]*) |
795 | 795 | case ${UNAME_MACHINE} in |
796 | | - x86) |
| 796 | + x86) |
797 | 797 | echo i586-pc-interix${UNAME_RELEASE} |
798 | 798 | exit ;; |
799 | 799 | EM64T | authenticamd) |
800 | 800 | echo x86_64-unknown-interix${UNAME_RELEASE} |
801 | 801 | exit ;; |
| 802 | + IA64) |
| 803 | + echo ia64-unknown-interix${UNAME_RELEASE} |
| 804 | + exit ;; |
802 | 805 | esac ;; |
803 | 806 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
804 | 807 | echo i${UNAME_MACHINE}-pc-mks |
|
833 | 836 | echo ${UNAME_MACHINE}-pc-minix |
834 | 837 | exit ;; |
835 | 838 | arm*:Linux:*:*) |
836 | | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 839 | + eval $set_cc_for_build |
| 840 | + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 841 | + | grep -q __ARM_EABI__ |
| 842 | + then |
| 843 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 844 | + else |
| 845 | + echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
| 846 | + fi |
837 | 847 | exit ;; |
838 | 848 | avr32*:Linux:*:*) |
839 | 849 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
954 | 964 | x86_64:Linux:*:*) |
955 | 965 | echo x86_64-unknown-linux-gnu |
956 | 966 | exit ;; |
957 | | - xtensa:Linux:*:*) |
958 | | - echo xtensa-unknown-linux-gnu |
| 967 | + xtensa*:Linux:*:*) |
| 968 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
959 | 969 | exit ;; |
960 | 970 | i*86:Linux:*:*) |
961 | 971 | # The BFD linker knows what the default object file format is, so |
@@ -1474,9 +1484,9 @@ This script, last modified $timestamp, has failed to recognize |
1474 | 1484 | the operating system you are using. It is advised that you |
1475 | 1485 | download the most up to date version of the config scripts from |
1476 | 1486 |
|
1477 | | - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
| 1487 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
1478 | 1488 | and |
1479 | | - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
| 1489 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
1480 | 1490 |
|
1481 | 1491 | If the version you run ($0) is already up to date, please |
1482 | 1492 | send the following data and any information you think might be |
|
0 commit comments