bootstrap: Fix --disable-bootstrap with older g++.
authorJason Merrill <jason@redhat.com>
Fri, 5 Jun 2020 16:45:11 +0000 (12:45 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 8 Jun 2020 20:42:35 +0000 (16:42 -0400)
commitffac9597256823612fb63bbab0f9ba3c11255e6b
treec5f0a6a6042169bbd40d9030922b138d530eb34d
parenta37fbff12c3a441753f5eb677cebeab7350f24eb
bootstrap: Fix --disable-bootstrap with older g++.

Previously I had AX_CXX_COMPILE_STDCXX in the gcc directory configure, which
added -std=c++11 to CXX if needed, but then CXX is overridden from the
toplevel directory, so it didn't have the desired effect.  Fixed by moving
the check to the toplevel.  Currently it is only used when building GCC
without bootstrapping; other packages that share the toplevel directory
can adjust the condition if they also want to require C++11 support.

/ChangeLog:

* configure.ac: Check AX_CXX_COMPILE_STDCXX if not bootstrapping.
* configure: Regenerate.

gcc/ChangeLog:

* aclocal.m4: Remove ax_cxx_compile_stdcxx.m4.
* configure.ac: Remove AX_CXX_COMPILE_STDCXX.
* configure: Regenerate.
configure
configure.ac
gcc/aclocal.m4
gcc/configure
gcc/configure.ac