summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorPer Bothner <bothner@cygnus.com>1997-07-26 19:01:01 +0000
committerPer Bothner <bothner@cygnus.com>1997-07-26 19:01:01 +0000
commitfeb1ff7fbd2ea4a0803d6c8a9e7f243e7b4afad9 (patch)
treeb3a0bbe9689aa0014674503b5f79a26503297e04 /config.guess
parente259d5a3bded534ccada5eb5713c56eeb77bf15f (diff)
downloademacs-feb1ff7fbd2ea4a0803d6c8a9e7f243e7b4afad9.tar.gz
Recognize SunOS 3.x.
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.guess b/config.guess
index a73a8d93c0c..81b905ac82a 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 ;;