comparison config.guess @ 16800:d250966726a4

Recognize mips-unknown-linux-gnu
author Ian Lance Taylor <ian@cygnus.com>
date Tue, 31 Dec 1996 20:51:53 +0000
parents 773436c9b680
children 9b9ba0a44008
comparison
equal deleted inserted replaced
16799:7646e4786008 16800:d250966726a4
420 echo "powerpc-unknown-linux-gnu" ; exit 0 420 echo "powerpc-unknown-linux-gnu" ; exit 0
421 elif test "${UNAME_MACHINE}" = "alpha" ; then 421 elif test "${UNAME_MACHINE}" = "alpha" ; then
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
427 main(argc, argv)
428 int argc;
429 char *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 }
439 EOF
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.
428 test ! -d /usr/lib/ldscripts/. \ 445 test ! -d /usr/lib/ldscripts/. \
429 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 446 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0