3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2002-03-04' |
timestamp='2002-03-20' |
7 |
|
|
8 |
# This file is free software; you can redistribute it and/or modify it |
# This file is free software; you can redistribute it and/or modify it |
9 |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
98 |
|
|
99 |
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in |
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in |
100 |
,,) echo "int dummy(){}" > $dummy.c ; |
,,) echo "int dummy(){}" > $dummy.c ; |
101 |
for c in cc gcc c89 ; do |
for c in cc gcc c89 c99 ; do |
102 |
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; |
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; |
103 |
if test $? = 0 ; then |
if test $? = 0 ; then |
104 |
CC_FOR_BUILD="$c"; break ; |
CC_FOR_BUILD="$c"; break ; |
760 |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
761 |
exit 0 ;; |
exit 0 ;; |
762 |
ia64:Linux:*:*) |
ia64:Linux:*:*) |
763 |
echo ${UNAME_MACHINE}-unknown-linux |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
764 |
exit 0 ;; |
exit 0 ;; |
765 |
m68*:Linux:*:*) |
m68*:Linux:*:*) |
766 |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
771 |
#undef CPU |
#undef CPU |
772 |
#undef mips |
#undef mips |
773 |
#undef mipsel |
#undef mipsel |
774 |
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
775 |
CPU=mipsel |
CPU=mipsel |
776 |
#else |
#else |
777 |
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
778 |
CPU=mips |
CPU=mips |
779 |
#else |
#else |
780 |
CPU= |
CPU= |
781 |
#endif |
#endif |
782 |
#endif |
#endif |
783 |
EOF |
EOF |
784 |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
785 |
rm -f $dummy.c |
rm -f $dummy.c |
1059 |
echo `uname -p`-apple-darwin${UNAME_RELEASE} |
echo `uname -p`-apple-darwin${UNAME_RELEASE} |
1060 |
exit 0 ;; |
exit 0 ;; |
1061 |
*:procnto*:*:* | *:QNX:[0123456789]*:*) |
*:procnto*:*:* | *:QNX:[0123456789]*:*) |
1062 |
if test "${UNAME_MACHINE}" = "x86pc"; then |
UNAME_PROCESSOR=`uname -p` |
1063 |
|
if test "$UNAME_PROCESSOR" = "x86"; then |
1064 |
|
UNAME_PROCESSOR=i386 |
1065 |
UNAME_MACHINE=pc |
UNAME_MACHINE=pc |
|
echo i386-${UNAME_MACHINE}-nto-qnx |
|
|
else |
|
|
echo `uname -p`-${UNAME_MACHINE}-nto-qnx |
|
1066 |
fi |
fi |
1067 |
|
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1068 |
exit 0 ;; |
exit 0 ;; |
1069 |
*:QNX:*:4*) |
*:QNX:*:4*) |
1070 |
echo i386-pc-qnx |
echo i386-pc-qnx |