summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2013-01-29 09:10:20 +0000
committerSimon Marlow <marlowsd@gmail.com>2013-01-29 10:12:28 +0000
commit0375fcb10e0914b57cfa9744e75e692552fd2672 (patch)
tree395f1b2007557c6f4d46438140d63c6305b4d1a2 /aclocal.m4
parentb91f3d260f3ccb57e8fcd61f943c6fadf26391c8 (diff)
downloadhaskell-0375fcb10e0914b57cfa9744e75e692552fd2672.tar.gz
ARM: infer VFPv2 presence from the C compiler
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m420
1 files changed, 16 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index edbe3897cd..7b185b9853 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -367,11 +367,23 @@ AC_DEFUN([GET_ARM_ISA],
#endif]
)],
[AC_DEFINE(arm_HOST_ARCH_PRE_ARMv7, 1, [ARM pre v7])
- changequote(, )dnl
ARM_ISA=ARMv6
- ARM_ISA_EXT="[]"
- changequote([, ])dnl
- ],
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM(
+ [],
+ [#if defined(__VFP_FP__)
+ return 0;
+ #else
+ no vfp
+ #endif]
+ )],
+ [changequote(, )dnl
+ ARM_ISA_EXT="[VFPv2]"
+ changequote([, ])dnl],
+ [changequote(, )dnl
+ ARM_ISA_EXT="[]"
+ changequote([, ])dnl]
+ )],
[changequote(, )dnl
ARM_ISA=ARMv7
ARM_ISA_EXT="[VFPv3,NEON]"