summaryrefslogtreecommitdiffstats
path: root/llvm/autoconf
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-05-03 15:55:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-05-03 15:55:06 +0000
commit00622f7d26830ec5887ea14ffefa6054cb0e4516 (patch)
tree805cb27425e8c2ce964ae571a289b9b70ce08f9e /llvm/autoconf
parenta7ddc9820693e6f71f1d469ee938dd3c7c80d6f3 (diff)
downloadbcm5719-llvm-00622f7d26830ec5887ea14ffefa6054cb0e4516.tar.gz
bcm5719-llvm-00622f7d26830ec5887ea14ffefa6054cb0e4516.zip
Autoconf: Compile cxxabi.h in C++ mode.
Should fix PR15877. llvm-svn: 181026
Diffstat (limited to 'llvm/autoconf')
-rw-r--r--llvm/autoconf/configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index 3101e9a5a16..d1c740fa191 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -1507,7 +1507,10 @@ AC_HEADER_STAT
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
-AC_CHECK_HEADERS([cxxabi.h dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
+AC_LANG_PUSH([C++])
+AC_CHECK_HEADERS([cxxabi.h])
+AC_LANG_POP([C++])
+AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h termios.h unistd.h])
AC_CHECK_HEADERS([utime.h windows.h])
AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h])
OpenPOWER on IntegriCloud