comparison build-aux/config.guess @ 40209:c43e83386661

autoupdate
author Karl Berry <karl@freefriends.org>
date Fri, 08 Mar 2019 09:27:47 -0800
parents 053dfcf64bef
children
comparison
equal deleted inserted replaced
40208:f746878ee9be 40209:c43e83386661
983 m68*:Linux:*:*) 983 m68*:Linux:*:*)
984 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 984 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
985 exit ;; 985 exit ;;
986 mips:Linux:*:* | mips64:Linux:*:*) 986 mips:Linux:*:* | mips64:Linux:*:*)
987 set_cc_for_build 987 set_cc_for_build
988 IS_GLIBC=0
989 test x"${LIBC}" = xgnu && IS_GLIBC=1
988 sed 's/^ //' << EOF > "$dummy.c" 990 sed 's/^ //' << EOF > "$dummy.c"
989 #undef CPU 991 #undef CPU
990 #undef ${UNAME_MACHINE} 992 #undef mips
991 #undef ${UNAME_MACHINE}el 993 #undef mipsel
994 #undef mips64
995 #undef mips64el
996 #if ${IS_GLIBC} && defined(_ABI64)
997 LIBCABI=gnuabi64
998 #else
999 #if ${IS_GLIBC} && defined(_ABIN32)
1000 LIBCABI=gnuabin32
1001 #else
1002 LIBCABI=${LIBC}
1003 #endif
1004 #endif
1005
1006 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1007 CPU=mipsisa64r6
1008 #else
1009 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1010 CPU=mipsisa32r6
1011 #else
1012 #if defined(__mips64)
1013 CPU=mips64
1014 #else
1015 CPU=mips
1016 #endif
1017 #endif
1018 #endif
1019
992 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 1020 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
993 CPU=${UNAME_MACHINE}el 1021 MIPS_ENDIAN=el
994 #else 1022 #else
995 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 1023 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
996 CPU=${UNAME_MACHINE} 1024 MIPS_ENDIAN=
997 #else 1025 #else
998 CPU= 1026 MIPS_ENDIAN=
999 #endif 1027 #endif
1000 #endif 1028 #endif
1001 EOF 1029 EOF
1002 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" 1030 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`"
1003 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } 1031 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
1004 ;; 1032 ;;
1005 mips64el:Linux:*:*) 1033 mips64el:Linux:*:*)
1006 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1034 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1007 exit ;; 1035 exit ;;
1008 openrisc*:Linux:*:*) 1036 openrisc*:Linux:*:*)