summaryrefslogtreecommitdiff
path: root/qpid/cpp
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
commitda271863672f69f065d6545a617dd52db5063452 (patch)
tree2a9d4ffc9b41b47b9f756ed6eb54f187bf86ab10 /qpid/cpp
parent75854921f07b9d88688dadc6b3c0695942bab8ed (diff)
downloadqpid-python-da271863672f69f065d6545a617dd52db5063452.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@1408782 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/configure.ac b/qpid/cpp/configure.ac
index 29c1ddf1e1..b8243fcd16 100644
--- a/qpid/cpp/configure.ac
+++ b/qpid/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],