Next: , Previous: , Up: The Macros  


ax_cxx_compile_stdcxx_11

Synopsis

AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional])

Description

Check for baseline language coverage in the compiler for the C++11 standard; if necessary, add switches to CXXFLAGS to enable support.

The first argument, if specified, indicates whether you insist on an extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. -std=c++11). If neither is specified, you get whatever works, with preference for an extended mode.

The second argument, if specified ’mandatory’ or if left unspecified, indicates that baseline C++11 support is required and that the macro should error out if no mode with that support is found. If specified ’optional’, then configuration proceeds regardless, after defining HAVE_CXX11 if and only if a supporting mode is found.

Source Code

Download the latest version of ax_cxx_compile_stdcxx_11.m4 or browse the macro’s revision history.

License

Copyright © 2008 Benjamin Kosnik bkoz@redhat.com
Copyright © 2012 Zack Weinberg zackw@panix.com
Copyright © 2013 Roy Stogner roystgnr@ices.utexas.edu
Copyright © 2014 Alexey Sokolov sokolov@google.com

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.