Skip to content
This repository
Browse code

* config.guess: Combine mips-mips-riscos cases, and use cpp to

distinguish sysv/svr4/bsd variants.
  • Loading branch information...
commit 44312f0e902ecaf94715b03dabe641caa8283119 1 parent c2f0599
authored June 05, 1996

Showing 1 changed file with 21 additions and 5 deletions. Show diff stats Hide diff stats

  1. 26  config.guess
26  config.guess
@@ -116,11 +116,27 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
116 116
     VAX*:ULTRIX*:*:*)
117 117
 	echo vax-dec-ultrix${UNAME_RELEASE}
118 118
 	exit 0 ;;
119  
-    mips:*:4*:UMIPS)
120  
-	echo mips-mips-riscos4sysv
121  
-	exit 0 ;;
122  
-    mips:*:5*:RISCos)
123  
-	echo mips-mips-riscos${UNAME_RELEASE}
  119
+    mips:*:*:UMIPS | mips:*:*:RISCos)
  120
+	sed 's/^	//' << EOF >dummy.c
  121
+	int main (argc, argv) int argc; char **argv; {
  122
+	#if defined (host_mips) && defined (MIPSEB)
  123
+	#if defined (SYSTYPE_SYSV)
  124
+	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  125
+	#endif
  126
+	#if defined (SYSTYPE_SVR4)
  127
+	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  128
+	#endif
  129
+	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  130
+	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  131
+	#endif
  132
+	#endif
  133
+	  exit (-1);
  134
+	}
  135
+EOF
  136
+	${CC-cc} dummy.c -o dummy && ./dummy "${UNAME_RELEASE}" \
  137
+	  && rm dummy.c dummy && exit 0
  138
+	rm -f dummy.c dummy
  139
+	echo mips-mips-riscos{UNAME_RELEASE}
124 140
 	exit 0 ;;
125 141
     Night_Hawk:Power_UNIX:*:*)
126 142
 	echo powerpc-harris-powerunix

0 notes on commit 44312f0

Please sign in to comment.
Something went wrong with that request. Please try again.