aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-01-20 22:56:42 +0000
committerPer Bothner <per@bothner.com>1993-01-20 22:56:42 +0000
commit9f2cd205e86fb631343d9cdee3b7826610afa126 (patch)
tree7d6a696315895178440e8c64337e84de81bb393f
parenteeeaa7780b506c83b44fb4c72274300cc1204b85 (diff)
downloadgdb-9f2cd205e86fb631343d9cdee3b7826610afa126.zip
gdb-9f2cd205e86fb631343d9cdee3b7826610afa126.tar.gz
gdb-9f2cd205e86fb631343d9cdee3b7826610afa126.tar.bz2
Add Linux and hp300bsd. Tweak SCO.
-rwxr-xr-xguess-systype16
1 files changed, 14 insertions, 2 deletions
diff --git a/guess-systype b/guess-systype
index 3aebe31..c192834 100755
--- a/guess-systype
+++ b/guess-systype
@@ -49,8 +49,17 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
9000/8??:HP-UX:*:*)
echo hppa1.0-hp-hpux
exit 0 ;;
- i[34]86:*:3.2:[2-9]*)
- echo ${UNAME_MACHINE}-unknown-sco3.2v${UNAME_VERSION}
+ i[34]86:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux
+ exit 0 ;;
+ i[34]86:*:3.2:*)
+ if uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(uname -X|egrep Release|sed -e 's/.*= //')`
+ (uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
+ echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-unknown-sysv3.2
+ fi
exit 0 ;;
esac
@@ -66,6 +75,9 @@ main()
printf("m68k-sony-newsos\n"); exit(0);
#endif
#endif
+#if defined(hp300) && !defined(hpux)
+ printf("m68k-hp-bsd\n"); exit(0);
+#endif
exit (1);
}
EOF