From ff5dfc4869aad7bedad9e749e6eed7d5f783b970 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Wed, 9 Jun 2010 10:32:23 +0000 Subject: re PR bootstrap/44432 ([boot with C++] configure does not check presence of host C++ compiler) PR bootstrap/44432 * configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++, check that C++ compiler works. * configure: Regenerate. From-SVN: r160460 --- libcpp/configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcpp/configure.ac') diff --git a/libcpp/configure.ac b/libcpp/configure.ac index 9dcec23..ceea29c 100644 --- a/libcpp/configure.ac +++ b/libcpp/configure.ac @@ -45,6 +45,10 @@ ZW_CREATE_DEPDIR if test "$ENABLE_BUILD_WITH_CXX" = "no"; then ZW_PROG_COMPILER_DEPENDENCIES([CC]) else +AC_LANG_PUSH([C++]) +AC_COMPILE_IFELSE([[int i;]], [], + [AC_MSG_ERROR([C++ compiler missing or inoperational])]) +AC_LANG_POP([C++]) ZW_PROG_COMPILER_DEPENDENCIES([CXX]) fi -- cgit v1.1