aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Lance Taylor1996-12-31 20:51:53 +0000
committerIan Lance Taylor1996-12-31 20:51:53 +0000
commitd23d9efd83430fb9195beb16c1b2a860dadd10cd (patch)
tree8394c86ba2167a9d3620c7af8f8891ca9383a573
parent82a393fcd9456d13fb0655746076aa1bd5ccea58 (diff)
downloademacs-d23d9efd83430fb9195beb16c1b2a860dadd10cd.tar.gz
emacs-d23d9efd83430fb9195beb16c1b2a860dadd10cd.zip
Recognize mips-unknown-linux-gnu
-rwxr-xr-xconfig.guess17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.guess b/config.guess
index 3522a0876ae..59798a91efc 100755
--- a/config.guess
+++ b/config.guess
@@ -422,6 +422,23 @@ EOF
422 echo alpha-unknown-linux-gnu ; exit 0 422 echo alpha-unknown-linux-gnu ; exit 0
423 elif test "${UNAME_MACHINE}" = "sparc" ; then 423 elif test "${UNAME_MACHINE}" = "sparc" ; then
424 echo sparc-unknown-linux-gnu ; exit 0 424 echo sparc-unknown-linux-gnu ; exit 0
425 elif test "${UNAME_MACHINE}" = "mips" ; then
426 cat >dummy.c <<EOF
427main(argc, argv)
428int argc;
429char *argv[];
430{
431#ifdef __MIPSEB__
432 printf ("%s-unknown-linux-gnu\n", argv[1]);
433#endif
434#ifdef __MIPSEL__
435 printf ("%sel-unknown-linux-gnu\n", argv[1]);
436#endif
437 return 0;
438}
439EOF
440 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
441 rm -f dummy.c dummy
425 else 442 else
426 # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us 443 # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us
427 # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout. 444 # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout.