Remove relro configure test.
[glibc.git] / sysdeps / arm / preconfigure.ac
blob39c86218aab34cf811765426522f86f38de1fc81
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local preconfigure fragment for sysdeps/arm
4 case "$machine" in
5 arm*)
6   case $config_os in
7   linux-gnueabi*)
8     # If the compiler enables unwind tables by default, this causes
9     # problems with undefined symbols in -nostdlib link tests.  To
10     # avoid this, add -fno-unwind-tables here and remove it in
11     # sysdeps/unix/sysv/linux/arm/configure.ac after those tests have
12     # been run.
13     if test "${CFLAGS+set}" != "set"; then
14       CFLAGS="-g -O2"
15     fi
16     CFLAGS="$CFLAGS -fno-unwind-tables"
17     ;;
18   linux*)
19     AC_MSG_ERROR([Old ABI no longer supported])
20     ;;
21   esac
23   base_machine=arm
24   # Lets ask the compiler which ARM family we've got
25   # Unfortunately it doesn't define any flags for implementations
26   # that you might pass to -mcpu or -mtune
27   # Note if you add patterns here you must ensure that
28   # an appropriate directory exists in sysdeps/arm
29   archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
30     sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
32   case "x$archcppflag" in
33   x__ARM_ARCH_[89]*__)
34     machine=armv7
35     AC_MSG_NOTICE([Found compiler is configured for something newer than v7 - using v7])
36     ;;
38   x__ARM_ARCH_7A__)
39     machine=armv7
40     AC_MSG_NOTICE([Found compiler is configured for $machine])
41     ;;
43   x__ARM_ARCH_6T2__)
44     machine=armv6t2
45     AC_MSG_NOTICE([Found compiler is configured for $machine])
46     ;;
47   x__ARM_ARCH_6*__)
48     machine=armv6
49     AC_MSG_NOTICE([Found compiler is configured for $machine])
50     ;;
51   *)
52     machine=arm
53     AC_MSG_WARN([arm/preconfigure: Did not find ARM architecture type; using default])
54     ;;
55   esac
57   machine=arm/$machine
58 esac