# HG changeset patch # User Richard Kenner # Date 803862080 0 # Node ID a910242e72c0ab77f7646ee828552f1767b99321 # Parent cc16f6c558b4e85ebc7e4da4bac50391932d9234 (i386-sequent-ptx): Properly get version number. diff -r cc16f6c558b4 -r a910242e72c0 config.guess --- a/config.guess Thu Jun 22 22:36:39 1995 +0000 +++ b/config.guess Thu Jun 22 23:01:20 1995 +0000 @@ -422,6 +422,10 @@ #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 cat >dummy.c < +# include +#endif main () { #if defined (sony) @@ -485,7 +489,18 @@ #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)