From 78cd6b7379f316660f3a5c138834c8e08c581959 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Tue, 13 Nov 2012 15:31:57 +0000 Subject: QPID-4418 - Autotools will fail if no C++ compiler is found. Submitted by: Jimmy Jones git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1408782 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp') diff --git a/cpp/configure.ac b/cpp/configure.ac index 29c1ddf1e1..b8243fcd16 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -29,6 +29,10 @@ AC_PROG_CXX AC_USE_SYSTEM_EXTENSIONS AC_LANG([C++]) +# Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it +# doesn't exist) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])]) + # Check for optional use of help2man AC_CHECK_PROG([HELP2MAN], [help2man], [help2man]) AC_ARG_WITH([help2man], -- cgit v1.2.1