preprocessor/m4/ax_cxx_compile_stdcxx_17.m4

36 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-04-04 16:40:22 +02:00
# =============================================================================
2019-04-04 17:00:35 +02:00
# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_17.html
2019-04-04 16:40:22 +02:00
# =============================================================================
2018-05-29 12:12:17 +02:00
#
# SYNOPSIS
#
2019-04-04 17:00:35 +02:00
# AX_CXX_COMPILE_STDCXX_17([ext|noext], [mandatory|optional])
2018-05-29 12:12:17 +02:00
#
# DESCRIPTION
#
2019-04-04 17:00:35 +02:00
# Check for baseline language coverage in the compiler for the C++17
2018-05-29 12:12:17 +02:00
# standard; if necessary, add switches to CXX and CXXCPP to enable
# support.
#
# This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX
2019-04-04 17:00:35 +02:00
# macro with the version set to C++17. The two optional arguments are
2018-05-29 12:12:17 +02:00
# forwarded literally as the second and third argument respectively.
# Please see the documentation for the AX_CXX_COMPILE_STDCXX macro for
# more information. If you want to use this macro, you also need to
# download the ax_cxx_compile_stdcxx.m4 file.
#
# LICENSE
#
# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
2019-04-04 17:00:35 +02:00
# Copyright (c) 2016 Krzesimir Nowak <qdlacz@gmail.com>
2018-05-29 12:12:17 +02:00
#
# 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.
2019-04-04 17:00:35 +02:00
#serial 2
2018-05-29 12:12:17 +02:00
AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])
2019-04-04 17:00:35 +02:00
AC_DEFUN([AX_CXX_COMPILE_STDCXX_17], [AX_CXX_COMPILE_STDCXX([17], [$1], [$2])])