Commit Graph

3 Commits

Author SHA1 Message Date
Nils Maier
22e414dbb0 Make AX_CXX_COMPILE_STDCXX_11 test for -stdlib=libc++ via std::shared_ptr
The clang shipped with OSX XCode and clangs not build enabling libcpp,
will default to the libstdc++ headers and lib installed on the system.
In the OSX case, that libstdc++ is the one bundles with gcc-4.2, which
is far too old to provide all required C++11 types, such as
std::shared_ptr.
Hence, the C++11 check should try to compile a program with a C++11 type
and try -stdlib=libc++ if the default lib fails to compile said program.
2013-08-21 23:19:01 +02:00
Nils Maier
b888088dc3 Make the configure check for C++11 compiler mandatory
Remove stray "dnl", so that mandatory actually works with (my)
autoreconf.
2013-08-21 23:19:01 +02:00
Tatsuhiro Tsujikawa
d1a17e5ef3 Use AX_CXX_COMPILE_STDCXX_11 macro to detect C++0x/C++11 support in compiler 2013-06-22 21:43:31 +09:00