Changeset 4143
- Timestamp:
- Feb 14, 2022, 5:14:39 AM (14 months ago)
- Location:
- trunk/m4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/m4/ax_compiler_vendor.m4
r4099 r4143 13 13 # $ax_cv_cxx_compiler_vendor for C++ or $ax_cv_fc_compiler_vendor for 14 14 # (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). 19 20 # 20 21 # To check for a Fortran compiler, you must first call AC_FC_PP_SRCEXT … … 59 60 # exception to the GPL to apply to your modified version as well. 60 61 61 #serial 3 062 #serial 32 62 63 63 64 AC_DEFUN([AX_COMPILER_VENDOR], [dnl … … 79 80 sdcc: SDCC,__SDCC 80 81 sx: _SX 82 nvhpc: __NVCOMPILER 81 83 portland: __PGI 82 84 gnu: __GNUC__ -
trunk/m4/ax_cxx_compile_stdcxx.m4
r4099 r4143 11 11 # Check for baseline language coverage in the compiler for the specified 12 12 # 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. 15 15 # 16 16 # The second argument, if specified, indicates whether you insist on an … … 37 37 # Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com> 38 38 # Copyright (c) 2020 Jason Merrill <jason@redhat.com> 39 # Copyright (c) 2021 Jörn Heusipp <osmanx@problemloesungsmaschine.de> 39 40 # 40 41 # Copying and distribution of this file, with or without modification, are … … 43 44 # warranty. 44 45 45 #serial 1 246 #serial 14 46 47 47 48 dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro … … 52 53 [$1], [14], [ax_cxx_compile_alternatives="14 1y"], 53 54 [$1], [17], [ax_cxx_compile_alternatives="17 1z"], 55 [$1], [20], [ax_cxx_compile_alternatives="20"], 54 56 [m4_fatal([invalid first argument `$1' to AX_CXX_COMPILE_STDCXX])])dnl 55 57 m4_if([$2], [], [], … … 152 154 ) 153 155 154 155 156 dnl Test body for checking C++14 support 156 157 … … 159 160 _AX_CXX_COMPILE_STDCXX_testbody_new_in_14 160 161 ) 162 163 dnl Test body for checking C++17 support 161 164 162 165 m4_define([_AX_CXX_COMPILE_STDCXX_testbody_17], … … 165 168 _AX_CXX_COMPILE_STDCXX_testbody_new_in_17 166 169 ) 170 171 dnl Test body for checking C++20 support 172 173 m4_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 167 180 168 181 dnl Tests for new features in C++11 … … 961 974 962 975 ]]) 976 977 978 dnl Tests for new features in C++20 979 980 m4_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 994 namespace 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.