… | |
… | |
2 | # Attempt to guess a canonical system name. |
2 | # Attempt to guess a canonical system name. |
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, 2006, 2007, 2008, 2009, 2010, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
5 | # 2011 Free Software Foundation, Inc. |
5 | # 2011 Free Software Foundation, Inc. |
6 | |
6 | |
7 | timestamp='2011-02-02' |
7 | timestamp='2011-11-11' |
8 | |
8 | |
9 | # This file is free software; you can redistribute it and/or modify it |
9 | # This file is free software; you can redistribute it and/or modify it |
10 | # under the terms of the GNU General Public License as published by |
10 | # under the terms of the GNU General Public License as published by |
11 | # the Free Software Foundation; either version 2 of the License, or |
11 | # the Free Software Foundation; either version 2 of the License, or |
12 | # (at your option) any later version. |
12 | # (at your option) any later version. |
… | |
… | |
790 | exit ;; |
790 | exit ;; |
791 | *:BSD/OS:*:*) |
791 | *:BSD/OS:*:*) |
792 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
792 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
793 | exit ;; |
793 | exit ;; |
794 | *:FreeBSD:*:*) |
794 | *:FreeBSD:*:*) |
|
|
795 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
795 | case ${UNAME_MACHINE} in |
796 | case ${UNAME_PROCESSOR} in |
796 | pc98) |
|
|
797 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
|
|
798 | amd64) |
797 | amd64) |
799 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
798 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
800 | *) |
799 | *) |
801 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
800 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
802 | esac |
801 | esac |
803 | exit ;; |
802 | exit ;; |
804 | i*:CYGWIN*:*) |
803 | i*:CYGWIN*:*) |
805 | echo ${UNAME_MACHINE}-pc-cygwin |
804 | echo ${UNAME_MACHINE}-pc-cygwin |
806 | exit ;; |
805 | exit ;; |
807 | *:MINGW*:*) |
806 | *:MINGW*:*) |
808 | echo ${UNAME_MACHINE}-pc-mingw32 |
807 | echo ${UNAME_MACHINE}-pc-mingw32 |
|
|
808 | exit ;; |
|
|
809 | i*:MSYS*:*) |
|
|
810 | echo ${UNAME_MACHINE}-pc-msys |
809 | exit ;; |
811 | exit ;; |
810 | i*:windows32*:*) |
812 | i*:windows32*:*) |
811 | # uname -m includes "-pc" on this system. |
813 | # uname -m includes "-pc" on this system. |
812 | echo ${UNAME_MACHINE}-mingw32 |
814 | echo ${UNAME_MACHINE}-mingw32 |
813 | exit ;; |
815 | exit ;; |
… | |
… | |
880 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
882 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
881 | | grep -q __ARM_EABI__ |
883 | | grep -q __ARM_EABI__ |
882 | then |
884 | then |
883 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
885 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
884 | else |
886 | else |
|
|
887 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
|
|
888 | | grep -q __ARM_PCS_VFP |
|
|
889 | then |
885 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
890 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
|
|
891 | else |
|
|
892 | echo ${UNAME_MACHINE}-unknown-linux-gnueabihf |
|
|
893 | fi |
886 | fi |
894 | fi |
887 | exit ;; |
895 | exit ;; |
888 | avr32*:Linux:*:*) |
896 | avr32*:Linux:*:*) |
889 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
897 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
890 | exit ;; |
898 | exit ;; |
… | |
… | |
894 | crisv32:Linux:*:*) |
902 | crisv32:Linux:*:*) |
895 | echo crisv32-axis-linux-gnu |
903 | echo crisv32-axis-linux-gnu |
896 | exit ;; |
904 | exit ;; |
897 | frv:Linux:*:*) |
905 | frv:Linux:*:*) |
898 | echo frv-unknown-linux-gnu |
906 | echo frv-unknown-linux-gnu |
|
|
907 | exit ;; |
|
|
908 | hexagon:Linux:*:*) |
|
|
909 | echo hexagon-unknown-linux-gnu |
899 | exit ;; |
910 | exit ;; |
900 | i*86:Linux:*:*) |
911 | i*86:Linux:*:*) |
901 | LIBC=gnu |
912 | LIBC=gnu |
902 | eval $set_cc_for_build |
913 | eval $set_cc_for_build |
903 | sed 's/^ //' << EOF >$dummy.c |
914 | sed 's/^ //' << EOF >$dummy.c |
… | |
… | |
970 | exit ;; |
981 | exit ;; |
971 | sparc:Linux:*:* | sparc64:Linux:*:*) |
982 | sparc:Linux:*:* | sparc64:Linux:*:*) |
972 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
983 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
973 | exit ;; |
984 | exit ;; |
974 | tile*:Linux:*:*) |
985 | tile*:Linux:*:*) |
975 | echo ${UNAME_MACHINE}-tilera-linux-gnu |
986 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
976 | exit ;; |
987 | exit ;; |
977 | vax:Linux:*:*) |
988 | vax:Linux:*:*) |
978 | echo ${UNAME_MACHINE}-dec-linux-gnu |
989 | echo ${UNAME_MACHINE}-dec-linux-gnu |
979 | exit ;; |
990 | exit ;; |
980 | x86_64:Linux:*:*) |
991 | x86_64:Linux:*:*) |