From 5212b4eb71cfc28983b993a8553453b0c4e26e22 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 3 May 2013 15:55:06 +0000 Subject: Autoconf: Compile cxxabi.h in C++ mode. Should fix PR15877. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181026 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'autoconf') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 3101e9a5a1..d1c740fa19 100644 --- a/autoconf/configure.ac +++ b/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]) -- cgit v1.2.3