diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-08-27 23:20:52 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-08-27 23:20:52 +0000 |
commit | 01a35b7ff6005c35714c3e7188ba23c5f023b046 (patch) | |
tree | a7384783f6c5da2e4624b329a671fcf0d522d55e /config.guess | |
parent | dadde3e1c875e08e16f13c0ec23e2dd07881d88e (diff) | |
download | gcc-01a35b7ff6005c35714c3e7188ba23c5f023b046.tar.gz |
Make the gcc config.guess exec the toplevel config.guess. Update the toplevel
config.guess from the gcc config.guess.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14976 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/config.guess b/config.guess index a73a8d93c0c..1448103304d 100755 --- a/config.guess +++ b/config.guess @@ -157,6 +157,18 @@ EOF sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; @@ -494,6 +506,7 @@ EOF ret \$31,(\$26),1 .end main EOF + LIBC="" ${CC-cc} dummy.s -o dummy 2>/dev/null if test "$?" = 0 ; then ./dummy @@ -504,10 +517,16 @@ EOF 2) UNAME_MACHINE="alphaev56" ;; - esac - fi - rm -f dummy.s dummy - echo ${UNAME_MACHINE}-unknown-linux-gnu ; exit 0 + esac + + objdump --private-headers dummy | \ + grep ld.so.1 > /dev/null + if test "$?" = 0 ; then + LIBC="libc1" + fi + fi + rm -f dummy.s dummy + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 elif test "${UNAME_MACHINE}" = "mips" ; then cat >dummy.c <<EOF main(argc, argv) |