autoconf 2.73, gcc c++23 and a virtual machine [migrated]

On a virtual machine (Arm v5) I’m running a ./configure script – when the script test for c++23 that test runs for several days CPU time, eventually the memory grows till the OOM killer kills the process.

So my question is how to I change the generation of the ./configure so that it does not check c++23 so that can’t be used?