8204091: Configure broken on MIPS when uname returns mipsel or mips64el

Reviewed-by: erikj, ihse
This commit is contained in:
Ao Qi 2018-05-30 09:45:24 -07:00 committed by Erik Joelsson
parent e18f24a98e
commit d8912b51bb

View File

@ -86,6 +86,17 @@ if [ "x$OUT" = x ]; then
fi
fi
# Test and fix little endian MIPS.
if [ "x$OUT" = x ]; then
if [ `uname -s` = Linux ]; then
if [ `uname -m` = mipsel ]; then
OUT=mipsel-unknown-linux-gnu
elif [ `uname -m` = mips64el ]; then
OUT=mips64el-unknown-linux-gnu
fi
fi
fi
# Test and fix cpu on Macosx when C preprocessor is not on the path
echo $OUT | grep i386-apple-darwin > /dev/null 2> /dev/null
if test $? = 0; then