]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
replaced more int/longs with wxCoord
[wxWidgets.git] / configure.in
index 554af1ca3d98cac3f8f32cc848f19a071e495e74..7ce40d8ff76a5658d77a91bf6c7863f8b45abfb7 100644 (file)
@@ -1470,6 +1470,13 @@ dnl see CFLAGS line above
 CXXFLAGS=${CXXFLAGS:=}
 AC_BAKEFILE_PROG_CXX
 
+dnl configure always sets CXX to something as it falls back to g++ even if no
+dnl C++ compiler was found, but we prefer to abort now with a clear error
+dnl message rather than give errors about all tests failures below
+if test "$CXX" = "g++" -a "$GXX" != "yes"; then
+    AC_MSG_ERROR([C++ compiler is needed to build wxWidgets])
+fi
+
 dnl ranlib command
 dnl   defines RANLIB with the appropriate command
 AC_PROG_RANLIB