aboutsummaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1997-08-27 23:20:52 +0000
committerJim Wilson <wilson@gcc.gnu.org>1997-08-27 16:20:52 -0700
commit7818d6fcb22797889608886779b16f46a0de60df (patch)
treea7384783f6c5da2e4624b329a671fcf0d522d55e /config.guess
parentca20876d33c33c352fae77f8edebfe9a2d03fb19 (diff)
Make the gcc config.guess exec the toplevel config.guess.
Make the gcc config.guess exec the toplevel config.guess. Update the toplevel config.guess from the gcc config.guess. From-SVN: r14976
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess27
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)