From 815c83f70aadf7d1526c70cdc8cdec574fa93a9e Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 31 Oct 2000 23:14:19 +0000 Subject: Add configuration option to build on Linux on both big-endian and little-endian MIPS. Submitted by Ralf Baechle --- config | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config b/config index 2f84a457d2..8e7e39afca 100755 --- a/config +++ b/config @@ -413,7 +413,22 @@ case "$GUESSOS" in esac fi ;; - mips-*-linux?) OUT="linux-mips" ;; + mips-*-linux?) + cat >dummy.c < /* for printf() prototype */ + int main (argc, argv) int argc; char *argv[]; { +#ifdef __MIPSEB__ + printf ("linux-%s\n", argv[1]); +#endif +#ifdef __MIPSEL__ + printf ("linux-%sel\n", argv[1]); +#endif + return 0; +} +EOF + ${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}` + rm dummy dummy.c + ;; ppc-*-linux2) OUT="linux-ppc" ;; m68k-*-linux*) OUT="linux-m68k" ;; ia64-*-linux?) OUT="linux-ia64" ;; -- cgit v1.2.3