summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gnu.org>1995-06-22 23:01:20 +0000
committerRichard Kenner <kenner@gnu.org>1995-06-22 23:01:20 +0000
commit7ffef3b849531ddeaa091e6a8c81e1068cf88663 (patch)
treebf9bd8ac83642cc8cd16b191946a98b2f7886495 /config.guess
parent753b921cbb4820932c9b6d3f07b5f82d02d0c13e (diff)
downloademacs-7ffef3b849531ddeaa091e6a8c81e1068cf88663.tar.gz
(i386-sequent-ptx): Properly get version number.
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess17
1 files changed, 16 insertions, 1 deletions
diff --git a/config.guess b/config.guess
index 478c4060742..6b815db7d1d 100755
--- a/config.guess
+++ b/config.guess
@@ -422,6 +422,10 @@ esac
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
cat >dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
main ()
{
#if defined (sony)
@@ -485,7 +489,18 @@ main ()
#endif
#if defined (_SEQUENT_)
- printf ("i386-sequent-ptx\n"); exit (0);
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
#endif
#if defined (vax)