Next: , Previous: , Up: The Macros  





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.


Copyright © 2008 Benjamin Kosnik
Copyright © 2012 Zack Weinberg
Copyright © 2013 Roy Stogner
Copyright © 2014, 2015 Google Inc.; contributed by Alexey Sokolov
Copyright © 2015 Paul Norman

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.