summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit132ae8b9550d5dda70c0e9dada6cb92d903cb4b7 (patch)
tree9ad1d0fbf2b5b614d874e5e6aefec0db1387aa7a /llvm/autoconf
parent5dc3899ca417b344a272c109837f62a7ac840235 (diff)
downloadbcm5719-llvm-132ae8b9550d5dda70c0e9dada6cb92d903cb4b7.tar.gz
bcm5719-llvm-132ae8b9550d5dda70c0e9dada6cb92d903cb4b7.zip
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.
llvm-svn: 174561
Diffstat (limited to 'llvm/autoconf')
-rw-r--r--llvm/autoconf/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index c1f2884145e..ae615df2029 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/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 ])
OpenPOWER on IntegriCloud