--- configure.orig	2020-12-28 20:55:00 UTC
+++ configure
@@ -3500,7 +3500,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 # see if we actually have a CXX program
-if test "$ac_cv_prog_CXX" = "" -o ! -x "$ac_cv_prog_CXX"; then
+if test "$CXX" = ""; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&5
 $as_echo "$as_me: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&2;}
     enable_cxx=no