https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63509
--- Comment #8 from Jim Wilson <wilson at gcc dot gnu.org> --- I filed an autoconf bug http://savannah.gnu.org/support/index.php?109676 The problem here is that autoconf only verifies that the first AC_PROG_X compiler is working. And since we include AC_PROG_CC before AC_PROG_CXX, only the C compiler is tested to see if it works. But since we are using the C++ compiler for all of the configure checks, and for the build, we really should be verifying that the C++ compiler works. We can work around the autoconf problem by putting AC_PROG_CXX before AC_PROG_CC. This will verify that the C++ compiler works, but will stop verifying that the C compiler works, which is probably OK.