# HG changeset patch
# User Ian Lance Taylor <ian@cygnus.com>
# Date 852065673 0
# Node ID 2ea24cdb1d83f1059dbaa65c7a3bc45d5a3998f4
# Parent  d250966726a423dc1ac69f2cbcb1e2ac79407797
Handle mips-unknown-linux-gnu

diff -r d250966726a4 -r 2ea24cdb1d83 config.sub
--- a/config.sub	Tue Dec 31 20:51:53 1996 +0000
+++ b/config.sub	Tue Dec 31 20:54:33 1996 +0000
@@ -389,6 +389,14 @@
 	miniframe)
 		basic_machine=m68000-convergent
 		;;
+	mipsel*-linux*)
+		basic_machine=mipsel-unknown
+		os=-linux
+		;;
+	mips*-linux*)
+		basic_machine=mips-unknown
+		os=-linux
+		;;
 	mips3*-*)
 		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
 		;;
@@ -607,7 +615,11 @@
 # Here we handle the default manufacturer of certain CPU types.  It is in
 # some cases the only manufacturer, in others, it is the most popular.
 	mips)
-		basic_machine=mips-mips
+		if [ x$os = x-linux ]; then
+			basic_machine=mips-unknown
+		else
+			basic_machine=mips-mips
+		fi
 		;;
 	romp)
 		basic_machine=romp-ibm