Mercurial > octave
changeset 30674:3ca33008c4a9 stable
build: Don't force adding compiler flags to select a C++ dialect (bug #61812).
* configure.ac: Remove checks that force compiler flags that enable GNU
extensions.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 27 Jan 2022 12:42:43 +0100 |
parents | 9c98df2035a3 |
children | e52a80b55b06 c3494f408895 |
files | configure.ac |
diffstat | 1 files changed, 6 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Mon Jan 24 20:02:17 2022 +0100 +++ b/configure.ac Thu Jan 27 12:42:43 2022 +0100 @@ -345,25 +345,16 @@ ### Check compiler capabilities. if test $ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR = yes; then - ## Test for flags to fully support C++17 (with GNU extensions). - AX_CXX_COMPILE_STDCXX(17, ext, []) - if test "$HAVE_CXX17" = 0; then - ## A compiler supporting C++17 with GNU extensions couldn't be found. - ## Try without forcing GNU extensions. - AX_CXX_COMPILE_STDCXX(17, [], []) - fi + ## Test for flags to fully support C++17. + ## Preferably with GNU extensions if flags are required. + AX_CXX_COMPILE_STDCXX(17, [], []) else HAVE_CXX17=0 fi if test "$HAVE_CXX17" = 0; then - ## Ensure that the C++ compiler fully supports C++11 preferably with GNU - ## extensions. - AX_CXX_COMPILE_STDCXX(11, ext, []) - if test "$HAVE_CXX11" = 0; then - ## A compiler supporting C++11 with GNU extensions couldn't be found. - ## Try without forcing GNU extensions. Fail if that's not the case. - AX_CXX_COMPILE_STDCXX(11, [], mandatory) - fi + ## Ensure that the C++ compiler fully supports C++11. + ## Preferably with GNU extensions if flags are required. + AX_CXX_COMPILE_STDCXX(11, [], mandatory) fi if test $ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR = yes; then