James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 1 | # ============================================================================= |
| 2 | # https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html |
| 3 | # ============================================================================= |
jfarrell | 84cd284 | 2014-01-14 21:51:59 -0500 | [diff] [blame] | 4 | # |
| 5 | # SYNOPSIS |
| 6 | # |
James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 7 | # AX_CXX_COMPILE_STDCXX_11([ext|noext], [mandatory|optional]) |
jfarrell | 84cd284 | 2014-01-14 21:51:59 -0500 | [diff] [blame] | 8 | # |
| 9 | # DESCRIPTION |
| 10 | # |
| 11 | # Check for baseline language coverage in the compiler for the C++11 |
James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 12 | # standard; if necessary, add switches to CXX and CXXCPP to enable |
| 13 | # support. |
jfarrell | 84cd284 | 2014-01-14 21:51:59 -0500 | [diff] [blame] | 14 | # |
James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 15 | # This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX |
| 16 | # macro with the version set to C++11. The two optional arguments are |
| 17 | # forwarded literally as the second and third argument respectively. |
| 18 | # Please see the documentation for the AX_CXX_COMPILE_STDCXX macro for |
| 19 | # more information. If you want to use this macro, you also need to |
| 20 | # download the ax_cxx_compile_stdcxx.m4 file. |
jfarrell | 84cd284 | 2014-01-14 21:51:59 -0500 | [diff] [blame] | 21 | # |
| 22 | # LICENSE |
| 23 | # |
| 24 | # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> |
| 25 | # Copyright (c) 2012 Zack Weinberg <zackw@panix.com> |
| 26 | # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> |
Gustavo Zacarias | e856d68 | 2015-04-25 17:53:28 +0200 | [diff] [blame] | 27 | # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com> |
James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 28 | # Copyright (c) 2015 Paul Norman <penorman@mac.com> |
| 29 | # Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu> |
jfarrell | 84cd284 | 2014-01-14 21:51:59 -0500 | [diff] [blame] | 30 | # |
| 31 | # Copying and distribution of this file, with or without modification, are |
| 32 | # permitted in any medium without royalty provided the copyright notice |
| 33 | # and this notice are preserved. This file is offered as-is, without any |
| 34 | # warranty. |
| 35 | |
James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 36 | #serial 18 |
jfarrell | 84cd284 | 2014-01-14 21:51:59 -0500 | [diff] [blame] | 37 | |
James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 38 | AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX]) |
| 39 | AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [AX_CXX_COMPILE_STDCXX([11], [$1], [$2])]) |