Changeset 4143


Ignore:
Timestamp:
Feb 14, 2022, 5:14:39 AM (14 months ago)
Author:
Peter
Message:

upgrade to autoconf-archive 2022.02.11

Location:
trunk/m4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/ax_compiler_vendor.m4

    r4099 r4143  
    1313#   $ax_cv_cxx_compiler_vendor for C++ or $ax_cv_fc_compiler_vendor for
    1414#   (modern) Fortran.  The value is one of "intel", "ibm", "pathscale",
    15 #   "clang" (LLVM), "cray", "fujitsu", "sdcc", "sx", "portland" (PGI), "gnu"
    16 #   (GCC), "sun" (Oracle Developer Studio), "hp", "dec", "borland",
    17 #   "comeau", "kai", "lcc", "sgi", "microsoft", "metrowerks", "watcom",
    18 #   "tcc" (Tiny CC) or "unknown" (if the compiler cannot be determined).
     15#   "clang" (LLVM), "cray", "fujitsu", "sdcc", "sx", "nvhpc" (NVIDIA HPC
     16#   Compiler), "portland" (PGI), "gnu" (GCC), "sun" (Oracle Developer
     17#   Studio), "hp", "dec", "borland", "comeau", "kai", "lcc", "sgi",
     18#   "microsoft", "metrowerks", "watcom", "tcc" (Tiny CC) or "unknown" (if
     19#   the compiler cannot be determined).
    1920#
    2021#   To check for a Fortran compiler, you must first call AC_FC_PP_SRCEXT
     
    5960#   exception to the GPL to apply to your modified version as well.
    6061
    61 #serial 30
     62#serial 32
    6263
    6364AC_DEFUN([AX_COMPILER_VENDOR], [dnl
     
    7980    sdcc:   SDCC,__SDCC
    8081    sx:   _SX
     82    nvhpc:    __NVCOMPILER
    8183    portland: __PGI
    8284    gnu:    __GNUC__
  • trunk/m4/ax_cxx_compile_stdcxx.m4

    r4099 r4143  
    1111#   Check for baseline language coverage in the compiler for the specified
    1212#   version of the C++ standard.  If necessary, add switches to CXX and
    13 #   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
    14 #   or '14' (for the C++14 standard).
     13#   CXXCPP to enable support.  VERSION may be '11', '14', '17', or '20' for
     14#   the respective C++ standard version.
    1515#
    1616#   The second argument, if specified, indicates whether you insist on an
     
    3737#   Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com>
    3838#   Copyright (c) 2020 Jason Merrill <jason@redhat.com>
     39#   Copyright (c) 2021 Jörn Heusipp <osmanx@problemloesungsmaschine.de>
    3940#
    4041#   Copying and distribution of this file, with or without modification, are
     
    4344#   warranty.
    4445
    45 #serial 12
     46#serial 14
    4647
    4748dnl  This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro
     
    5253        [$1], [14], [ax_cxx_compile_alternatives="14 1y"],
    5354        [$1], [17], [ax_cxx_compile_alternatives="17 1z"],
     55        [$1], [20], [ax_cxx_compile_alternatives="20"],
    5456        [m4_fatal([invalid first argument `$1' to AX_CXX_COMPILE_STDCXX])])dnl
    5557  m4_if([$2], [], [],
     
    152154)
    153155
    154 
    155156dnl  Test body for checking C++14 support
    156157
     
    159160  _AX_CXX_COMPILE_STDCXX_testbody_new_in_14
    160161)
     162
     163dnl  Test body for checking C++17 support
    161164
    162165m4_define([_AX_CXX_COMPILE_STDCXX_testbody_17],
     
    165168  _AX_CXX_COMPILE_STDCXX_testbody_new_in_17
    166169)
     170
     171dnl  Test body for checking C++20 support
     172
     173m4_define([_AX_CXX_COMPILE_STDCXX_testbody_20],
     174  _AX_CXX_COMPILE_STDCXX_testbody_new_in_11
     175  _AX_CXX_COMPILE_STDCXX_testbody_new_in_14
     176  _AX_CXX_COMPILE_STDCXX_testbody_new_in_17
     177  _AX_CXX_COMPILE_STDCXX_testbody_new_in_20
     178)
     179
    167180
    168181dnl  Tests for new features in C++11
     
    961974
    962975]])
     976
     977
     978dnl  Tests for new features in C++20
     979
     980m4_define([_AX_CXX_COMPILE_STDCXX_testbody_new_in_20], [[
     981
     982#ifndef __cplusplus
     983
     984#error "This is not a C++ compiler"
     985
     986#elif __cplusplus < 202002L
     987
     988#error "This is not a C++20 compiler"
     989
     990#else
     991
     992#include <version>
     993
     994namespace cxx20
     995{
     996
     997// As C++20 supports feature test macros in the standard, there is no
     998// immediate need to actually test for feature availability on the
     999// Autoconf side.
     1000
     1001}  // namespace cxx20
     1002
     1003#endif  // __cplusplus < 202002L
     1004
     1005]])
Note: See TracChangeset for help on using the changeset viewer.