Mercurial > octave
changeset 33134:fe201b17eb86 stable
build: Skip step that checks for C++11 flags during configuration (bug #65327).
* configure.ac: Use (un-documented) workaround to skip autotools test for
compiler flags that enable C++11 support. That test is broken for compilers
that are C++20-compliant.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 01 Mar 2024 18:16:19 +0100 |
parents | 2c8ade2c7491 |
children | 9af30a72ca59 38eb7d69c315 |
files | configure.ac |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Sat Mar 02 12:15:17 2024 +0100 +++ b/configure.ac Fri Mar 01 18:16:19 2024 +0100 @@ -302,6 +302,14 @@ ### Determine which C++ compiler to use (we expect to find g++ or clang++). +# AC_PROG_CXX attempts to find the compiler flags for activating support for +# C++11. As of autoconf version 2.71, the source code that it uses for that +# test includes parts that are invalid in C++20. +# We are using AX_CXX_COMPILE_STDCXX to determine the potentially needed flags +# for the C++ version that Octave requires. So, skip the (unnecessary and +# broken) test for C++11 in AC_PROG_CXX by setting the following (undocumented) +# flag: +ac_cv_prog_cxx_cxx11="" AC_PROG_CXX AC_PROG_CXXCPP