]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/arm/preconfigure
Add sysdeps/ieee754/soft-fp.
[thirdparty/glibc.git] / sysdeps / arm / preconfigure
CommitLineData
cb8a6dbd 1# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
3ad6c547
RM
2 # Local preconfigure fragment for sysdeps/arm
3
39f0b3ca 4case "$machine" in
f10eff58 5arm*)
37fccd41
RM
6 # If the compiler enables unwind tables by default, this causes
7 # problems with undefined symbols in -nostdlib link tests. To
8 # avoid this, add -fno-unwind-tables here and remove it in
9 # sysdeps/arm/configure.ac after those tests have been run.
10 if test "${CFLAGS+set}" != "set"; then
11 CFLAGS="-g -O2"
12 fi
13 CFLAGS="$CFLAGS -fno-unwind-tables"
3ad6c547
RM
14
15 base_machine=arm
16 # Lets ask the compiler which ARM family we've got
17 # Unfortunately it doesn't define any flags for implementations
18 # that you might pass to -mcpu or -mtune
19 # Note if you add patterns here you must ensure that
20 # an appropriate directory exists in sysdeps/arm
21 archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
22 sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
b21cb02f 23
3ad6c547
RM
24 case "x$archcppflag" in
25 x__ARM_ARCH_89*__)
26 machine=armv7
27 { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for something newer than v7 - using v7" >&5
28$as_echo "$as_me: Found compiler is configured for something newer than v7 - using v7" >&6;}
29 ;;
b21cb02f 30
3ad6c547
RM
31 x__ARM_ARCH_7A__)
32 machine=armv7
33 { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
34$as_echo "$as_me: Found compiler is configured for $machine" >&6;}
35 ;;
b21cb02f 36
3ad6c547
RM
37 x__ARM_ARCH_6T2__)
38 machine=armv6t2
39 { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
40$as_echo "$as_me: Found compiler is configured for $machine" >&6;}
41 ;;
42 x__ARM_ARCH_6*__)
43 machine=armv6
44 { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
45$as_echo "$as_me: Found compiler is configured for $machine" >&6;}
46 ;;
47 *)
48 machine=arm
49 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&5
50$as_echo "$as_me: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&2;}
51 ;;
52 esac
b21cb02f 53
3ad6c547 54 machine=arm/$machine
6f7c0092 55 with_fp_cond="!defined __SOFTFP__"
39f0b3ca 56esac