1 GLIBC_PROVIDES[]dnl See aclocal.m4 in the top level source directory.
2 # Local preconfigure fragment for sysdeps/mips
6 abiflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define _MIPS_SIM \(.*\)/\1/p'`
7 mips16flag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __mips16 \(.*\)/\1/p'`
10 if test "$abiflag" = "_ABIO32" ; then
11 if test "$mips16flag" = "1" ; then
12 machine=mips/mips32/mips16
16 elif test "$abiflag" = "_ABIN32" ; then
17 machine=mips/mips64/n32
18 elif test "$abiflag" = "_ABI64" ; then
19 machine=mips/mips64/n64
21 AC_MSG_ERROR([Unable to determine ABI.], [1])
23 # $config_machine is not really needed here but the slash after
24 # $machine is needed by the case statement in
25 # sysdeps/unix/sysv/linux/mips/configure.ac.
26 machine=$machine/$config_machine
28 if test "$abiflag" != "_ABIO32" -a "$mips16flag" = "1"; then
29 AC_MSG_ERROR([MIPS16 is only supported with the o32 ABI.], [1])
32 with_fp_cond="defined __mips_hard_float"