[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_PROG_CXX in autoconf 2.70

From: Peter Johansson
Subject: AC_PROG_CXX in autoconf 2.70
Date: Wed, 18 Jan 2017 17:23:01 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

Hi autoconfers;

We are currently using macro
AX_CXX_COMPILE_STDCXX_11([noext], [optional])

which checks if $CXX is a C++11 compiler and if not it tries with switches like -std=c++11. The noext macro option means that no GNU extension is looked for, i.e., -std=c++11 is tried rather than -std=gnu++11.

This works fine and desired with autoconf 2.69 and CXX is set to 'g++ -std=c++11'. If I read the code of Autoconf 2.70 correctly, it seem not trivial to get the same behaviour because AC_PROG_CXX sets CXX to 'g++ -std=gnu++11', and then when AX_CXX_COMPILE_STDCXX kicks in CXX is already a c++11 compiler, so it does not alter anything. Will there be a way to avoid the GNU extensions to be turned on?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]