2 mips64*) base_machine=mips64
3 case "$CC $CFLAGS $CPPFLAGS " in
4 *" -mabi=n32 "*) mips_cc_abi=n32 ;;
5 *" -mabi=64 "*|*" -mabi=n64 "*) mips_cc_abi=64 ;;
6 *" -mabi=32 "*|*" -mabi=o32 "*) mips_cc_abi=32 ;;
7 *) mips_cc_abi=default ;;
10 *abin32*) mips_config_abi=n32 ;;
11 *abi64*|*abin64*) mips_config_abi=64 ;;
12 *abi32*|*abio32*) mips_config_abi=32 ;;
13 *) mips_config_abi=$mips_cc_abi ;;
15 case $mips_config_abi in
16 default) machine=mips/mips64/n32 mips_config_abi=n32 ;;
17 n32) machine=mips/mips64/n32 ;;
18 64) machine=mips/mips64/n64 ;;
19 32) machine=mips/mips32/kern64 ;;
21 machine=$machine/$config_machine
22 if test $mips_config_abi != $mips_cc_abi; then
23 # This won't make it to config.make, but we want to
24 # set this in case configure tests depend on it.
25 CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi"
28 mips*) base_machine=mips machine=mips/mips32/$machine ;;