comparison configure.ac @ 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 baf7621aa073
comparison
equal deleted inserted replaced
33132:2c8ade2c7491 33134:fe201b17eb86
300 AC_DEFINE_UNQUOTED([SHELL_PATH], ["$SHELL_PATH"], 300 AC_DEFINE_UNQUOTED([SHELL_PATH], ["$SHELL_PATH"],
301 [Define this to be the path to the shell command interpreter.]) 301 [Define this to be the path to the shell command interpreter.])
302 302
303 ### Determine which C++ compiler to use (we expect to find g++ or clang++). 303 ### Determine which C++ compiler to use (we expect to find g++ or clang++).
304 304
305 # AC_PROG_CXX attempts to find the compiler flags for activating support for
306 # C++11. As of autoconf version 2.71, the source code that it uses for that
307 # test includes parts that are invalid in C++20.
308 # We are using AX_CXX_COMPILE_STDCXX to determine the potentially needed flags
309 # for the C++ version that Octave requires. So, skip the (unnecessary and
310 # broken) test for C++11 in AC_PROG_CXX by setting the following (undocumented)
311 # flag:
312 ac_cv_prog_cxx_cxx11=""
305 AC_PROG_CXX 313 AC_PROG_CXX
306 AC_PROG_CXXCPP 314 AC_PROG_CXXCPP
307 315
308 ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=no 316 ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=no
309 AC_ARG_ENABLE(std-pmr-polymorphic-allocator, 317 AC_ARG_ENABLE(std-pmr-polymorphic-allocator,