diff --git a/Changes b/Changes index 9ea4302b0..853403cd6 100644 --- a/Changes +++ b/Changes @@ -72,6 +72,7 @@ Verilator 5.041 devel * Fix splitting hierarchically referenced variables (#6475). [Ryszard Rozak, Antmicro Ltd.] * Fix Windows compilation of Verilator with spaces in the path (#6477). [Fabian Keßler-Schulz] * Fix PROTOTYPEMIS error on implicit logic (#6482). [Alex Solomatnikov] +* Fix configure misdetecting C++14 (#6488). [Thomas O'Keeffe] Verilator 5.040 2025-08-30 diff --git a/configure.ac b/configure.ac index 98464ac85..49b700da9 100644 --- a/configure.ac +++ b/configure.ac @@ -590,18 +590,17 @@ AC_SUBST(CFG_LIBS) AC_DEFUN([_MY_CXX_CHECK_CXX_VER], [# _MY_CXX_CHECK_CXX_VER(flag) -- Check if compiler runs C++14 # Set $_my_result - AC_LINK_IFELSE( + AC_RUN_IFELSE( [AC_LANG_PROGRAM([#include #if (__cplusplus < 201402L) # error "Too old" #endif - ], [[ ]])], - [_my_result=yes - if test -s conftest.err; then - if grep -e "$1" conftest.err >/dev/null; then - _my_result=no - fi - fi], + ], [[ + std::thread t([]{}); + t.join(); + ]])], + [_my_result=yes], + [_my_result=no], [_my_result=no]) ])