Remove relro configure test.
[glibc.git] / sysdeps / arm / preconfigure
blobb3124edae2273b0b3739b892fd5204ffbd0eb37a
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
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     as_fn_error $? "Old ABI no longer supported" "$LINENO" 5
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     { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for something newer than v7 - using v7" >&5
36 $as_echo "$as_me: Found compiler is configured for something newer than v7 - using v7" >&6;}
37     ;;
39   x__ARM_ARCH_7A__)
40     machine=armv7
41     { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
42 $as_echo "$as_me: Found compiler is configured for $machine" >&6;}
43     ;;
45   x__ARM_ARCH_6T2__)
46     machine=armv6t2
47     { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
48 $as_echo "$as_me: Found compiler is configured for $machine" >&6;}
49     ;;
50   x__ARM_ARCH_6*__)
51     machine=armv6
52     { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
53 $as_echo "$as_me: Found compiler is configured for $machine" >&6;}
54     ;;
55   *)
56     machine=arm
57     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&5
58 $as_echo "$as_me: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&2;}
59     ;;
60   esac
62   machine=arm/$machine
63 esac