aboutsummaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorPhilip Blundell <pb@nexus.co.uk>1998-01-22 23:28:32 +0000
committerJeff Law <law@gcc.gnu.org>1998-01-22 16:28:32 -0700
commit6eef3189b802a26c0ff8679839d9570240a02f40 (patch)
treebdc581af06d34817d900ed73cf9952c07328c4c6 /config.guess
parent4e762a3831844570de605fab7f1b92ca905a28d5 (diff)
downloadgcc-6eef3189b802a26c0ff8679839d9570240a02f40.zip
gcc-6eef3189b802a26c0ff8679839d9570240a02f40.tar.gz
gcc-6eef3189b802a26c0ff8679839d9570240a02f40.tar.bz2
* config.guess: Add support for Linux/ARM.
From-SVN: r17455
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.guess b/config.guess
index 687adc2..6fd3e68 100755
--- a/config.guess
+++ b/config.guess
@@ -493,6 +493,12 @@ EOF
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit 0 ;;
*:Linux:*:*)
+ # uname on the ARM produces all sorts of strangeness, and we need to
+ # filter it out.
+ case "$UNAME_MACHINE" in
+ arm* | sa110*) UNAME_MACHINE="arm" ;;
+ esac
+
# The BFD linker knows what the default object file format is, so
# first see if it will tell us.
ld_help_string=`ld --help 2>&1`
@@ -506,6 +512,7 @@ EOF
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
+ armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
elf32ppc)
# Determine Lib Version