aboutsummaryrefslogtreecommitdiff
path: root/libcpp/configure.ac
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2010-06-09 10:32:23 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-06-09 11:32:23 +0100
commitff5dfc4869aad7bedad9e749e6eed7d5f783b970 (patch)
tree2e4596e9549c064794426f4a44005559b7d52198 /libcpp/configure.ac
parent07b7ede0bfdf1943af80159912cbf80e691e62eb (diff)
downloadgcc-ff5dfc4869aad7bedad9e749e6eed7d5f783b970.zip
gcc-ff5dfc4869aad7bedad9e749e6eed7d5f783b970.tar.gz
gcc-ff5dfc4869aad7bedad9e749e6eed7d5f783b970.tar.bz2
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
Diffstat (limited to 'libcpp/configure.ac')
-rw-r--r--libcpp/configure.ac4
1 files changed, 4 insertions, 0 deletions
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