Minor improvements
authorPer Bothner <per@bothner.com>
Wed, 20 Jan 1993 02:22:45 +0000 (02:22 +0000)
committerPer Bothner <per@bothner.com>
Wed, 20 Jan 1993 02:22:45 +0000 (02:22 +0000)
guess-systype

index 3d2bbcec2e98dc7116601c6573a7fb3514d30c39..86f28853a03438bbc69aff3790387b0fd02304ff 100755 (executable)
@@ -39,27 +39,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
        exit 0 ;;
 esac
 
-# uname didn't exit or help; try another approach.
+echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
 
 cat >dummy.c <<EOF
 main()
 {
 #if defined (sony)
 #if defined (MIPSEB)
-    exit(1);
 #else
-    printf("m68k-sony-newsos\n");
+  printf("m68k-sony-newsos\n"); exit(0);
 #endif
 #endif
+  exit (1);
 }
 EOF
 
 ${CC-cc} dummy.c -o dummy && dummy && rm dummy.c dummy && exit 0
 rm -f dummy.c dummy
 
-echo "(No uname comamnd or uname output not recognized." 1>&2
-echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-echo "Unable to guess system type)" 1>&2
+echo '(Unable to guess system type)' 1>&2
 
 exit 1
-