Re: configure adds -std=gnu++11 to CXX variable

Jason Merrill <[email protected]> Wed, 29 May 2024 13:40:14 -0400
Newsgroups gmane.comp.sysutils.autoconf.general,gmane.comp.gcc.devel
Message-ID <CADzB+2kjMB7ck-f=n-AitiN3TkSkEihxrK2ucbYN8e+KsGFoGA@mail.gmail.com>
On Wed, May 29, 2024 at 1:34 PM Tom Tromey <[email protected]> wrote:
> >>>>> "Jason" == Jason Merrill <[email protected]> writes:
>
> Jason> Thanks, though I don't think all that code needs to go;
> Jason> AC_PROG_CXX_STDCXX_EDITION_TRY still looks useful for a project that
> Jason> relies on features from a particular standard.  We just don't want
> Jason> AC_PROG_CXX to invoke it.
>
> I didn't read the macro but there's also config/ax_cxx_compile_stdcxx.m4.
> gdb uses this to make sure C++17 is available.

Good point, that's what GCC uses as well.

Jason