]> git.lyx.org Git - lyx.git/commit
Improve detection of C++11 mode
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Sep 2015 08:22:56 +0000 (10:22 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Sep 2015 08:22:56 +0000 (10:22 +0200)
commit67385e69fc4d77bd5a02af3c75c56b2192cef279
tree72f187e42c0c43e48c4715c5d6935de7ea7f29f4
parent0e62745995763c4493ac1f5053b1076e29124634
Improve detection of C++11 mode

This replaces commit 329eae56 with a better solution. Indeed, while
__cpluplus is useless with g++ 4.[3-6] because its value is always 1,
these compilers define __GXX_EXPERIMENTAL_CXX0X__ when "-std c++0x" is used.

Therefore the code now relies on both macros to detect C++11 mode
instead of setting it when --enable-cxx11 is used.

Also, use pure c++ mode instead of gnu++ extensions on gcc
config/lyxinclude.m4
configure.ac