From 072026c9141ede10801d50793796de3a425a7ec2 Mon Sep 17 00:00:00 2001 From: Gary Lowell Date: Sun, 10 Feb 2013 22:21:52 -0800 Subject: configure.ac: Add test for c++ compiler. The AC_PROG_CXX macro sets a flag if a C++ compiler is found but does not fail if one is not found, it left to application to test the flags as needed. This fix will issue an error when a c++ compiler is not found. Bug 3955. Signed-off-by: Gary Lowell it's not installed, this fix adds an error message for a --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index cb49a0b2fe1..ddbb8faf25a 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,10 @@ AM_CONDITIONAL(FREEBSD, test x"$freebsd" = x"yes") # Checks for programs. AC_PROG_CXX +if test "$CXX" = no || test "$CXX:$GXX" = "g++:"; then + AC_MSG_ERROR([no C++ compiler found]) +fi + #AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_LIBTOOL -- cgit v1.2.1