aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2013-02-07 00:21:34 +0000
committerOwen Anderson <resistor@mac.com>2013-02-07 00:21:34 +0000
commitec643abe6903284fc9ae7b6d9ae5e0b4ad40ad28 (patch)
treefed80233a33989203470c21cfae7ba95096849e7 /autoconf
parent42258e0ea8781dd29cae4b1a6eb54d8c70dcea0b (diff)
downloadexternal_llvm-ec643abe6903284fc9ae7b6d9ae5e0b4ad40ad28.zip
external_llvm-ec643abe6903284fc9ae7b6d9ae5e0b4ad40ad28.tar.gz
external_llvm-ec643abe6903284fc9ae7b6d9ae5e0b4ad40ad28.tar.bz2
Conditionalize constant folding of math intrinsics on the availability of an implementation on the host. This is a little bit unfortunate, but until someone decides to implement a full libm for APFloat, we don't have a better way to get this functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index c1f2884..ae615df 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1573,6 +1573,7 @@ dnl===-----------------------------------------------------------------------===
AC_CHECK_FUNCS([backtrace ceilf floorf roundf rintf nearbyintf getcwd ])
AC_CHECK_FUNCS([powf fmodf strtof round ])
+AC_CHECK_FUNCS([log log2 log10 exp exp2])
AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ])
AC_CHECK_FUNCS([isatty mkdtemp mkstemp ])
AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit strdup ])