summaryrefslogtreecommitdiff
path: root/cpp/configure.ac
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2012-11-13 15:31:57 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2012-11-13 15:31:57 +0000
commit78cd6b7379f316660f3a5c138834c8e08c581959 (patch)
treee347505c2c1c4a47cb2ff5be58a7d6ee995fb0c4 /cpp/configure.ac
parent17293beaee07338108a5941c2e6d5122596b1162 (diff)
downloadqpid-python-78cd6b7379f316660f3a5c138834c8e08c581959.tar.gz
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
Diffstat (limited to 'cpp/configure.ac')
-rw-r--r--cpp/configure.ac4
1 files changed, 4 insertions, 0 deletions
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],