1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local preconfigure fragment for sysdeps/arm
9 #endif], [], [], [AC_MSG_ERROR([Old ABI no longer supported])])
11 # If the compiler enables unwind tables by default, this causes
12 # problems with undefined symbols in -nostdlib link tests. To
13 # avoid this, add -fno-unwind-tables here and remove it in
14 # sysdeps/arm/configure.ac after those tests have been run.
15 if test "${CFLAGS+set}" != "set"; then
18 CFLAGS="$CFLAGS -fno-unwind-tables"
21 # Lets ask the compiler which ARM family we've got
22 # Unfortunately it doesn't define any flags for implementations
23 # that you might pass to -mcpu or -mtune
24 # Note if you add patterns here you must ensure that
25 # an appropriate directory exists in sysdeps/arm
26 archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
27 sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
29 case "x$archcppflag" in
32 AC_MSG_NOTICE([Found compiler is configured for something newer than v7 - using v7])
37 AC_MSG_NOTICE([Found compiler is configured for $machine])
42 AC_MSG_NOTICE([Found compiler is configured for $machine])
46 AC_MSG_NOTICE([Found compiler is configured for $machine])
50 AC_MSG_WARN([arm/preconfigure: Did not find ARM architecture type; using default])