diff options
| author | Richard Kenner | 1995-06-22 23:01:20 +0000 |
|---|---|---|
| committer | Richard Kenner | 1995-06-22 23:01:20 +0000 |
| commit | 6276efb0a6d281815fc469a267fcc42419a0ebe4 (patch) | |
| tree | f4aa484793f4621ebe7223124594a4d9faef7f57 | |
| parent | 3ddd2b4d22ab8c750b29e02e6410a7ddd4381f15 (diff) | |
| download | emacs-6276efb0a6d281815fc469a267fcc42419a0ebe4.tar.gz emacs-6276efb0a6d281815fc469a267fcc42419a0ebe4.zip | |
(i386-sequent-ptx): Properly get version number.
| -rwxr-xr-x | config.guess | 17 |
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 | |||
| 422 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 422 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
| 423 | 423 | ||
| 424 | cat >dummy.c <<EOF | 424 | cat >dummy.c <<EOF |
| 425 | #ifdef _SEQUENT_ | ||
| 426 | # include <sys/types.h> | ||
| 427 | # include <sys/utsname.h> | ||
| 428 | #endif | ||
| 425 | main () | 429 | main () |
| 426 | { | 430 | { |
| 427 | #if defined (sony) | 431 | #if defined (sony) |
| @@ -485,7 +489,18 @@ main () | |||
| 485 | #endif | 489 | #endif |
| 486 | 490 | ||
| 487 | #if defined (_SEQUENT_) | 491 | #if defined (_SEQUENT_) |
| 488 | printf ("i386-sequent-ptx\n"); exit (0); | 492 | struct utsname un; |
| 493 | |||
| 494 | uname(&un); | ||
| 495 | |||
| 496 | if (strncmp(un.version, "V2", 2) == 0) { | ||
| 497 | printf ("i386-sequent-ptx2\n"); exit (0); | ||
| 498 | } | ||
| 499 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | ||
| 500 | printf ("i386-sequent-ptx1\n"); exit (0); | ||
| 501 | } | ||
| 502 | printf ("i386-sequent-ptx\n"); exit (0); | ||
| 503 | |||
| 489 | #endif | 504 | #endif |
| 490 | 505 | ||
| 491 | #if defined (vax) | 506 | #if defined (vax) |