git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45928
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+if test -n "$ac_cv_prog_ac_ct_CXX"; then
+ { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
+echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
CXXFLAGS=${CXXFLAGS:=}
AC_BAKEFILE_PROG_CXX
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 -n "$ac_cv_prog_ac_ct_CXX"; 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
dnl ranlib command
dnl defines RANLIB with the appropriate command
AC_PROG_RANLIB