summaryrefslogtreecommitdiffstats
path: root/llvm/autoconf
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-10-27 08:16:18 +0000
committerRui Ueyama <ruiu@google.com>2014-10-27 08:16:18 +0000
commit292fb6d7be7301623bbd2d19ab1306bc16e3e68c (patch)
tree39ce5dc3c72c75ac0c4c9a70f63f5b54e22fd97a /llvm/autoconf
parent59c74b225a3dcd20517eb7cbeeb9e2149e702c0e (diff)
downloadbcm5719-llvm-292fb6d7be7301623bbd2d19ab1306bc16e3e68c.tar.gz
bcm5719-llvm-292fb6d7be7301623bbd2d19ab1306bc16e3e68c.zip
Re-commit r220667.
C++ source given to check_cxx_source_compile should have define "main". llvm-svn: 220669
Diffstat (limited to 'llvm/autoconf')
-rw-r--r--llvm/autoconf/configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index a198280f23d..618cf8b4db6 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -1592,8 +1592,12 @@ AC_HEADER_SYS_WAIT
AC_HEADER_TIME
AC_LANG_PUSH([C++])
-AC_CHECK_HEADERS([cxxabi.h])
+dnl size_t must be defined before including cxxabi.h on FreeBSD 10.0.
+AC_CHECK_HEADERS([cxxabi.h], [], [],
+[#include <stddef.h>
+])
AC_LANG_POP([C++])
+
AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h link.h])
AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h termios.h unistd.h])
AC_CHECK_HEADERS([utime.h])
OpenPOWER on IntegriCloud