@@ -103,7 +103,7 @@ AC_CONFIG_FILES([
103103] )
104104
105105AC_LANG ( [ C++] )
106- AX_CXX_COMPILE_STDCXX_17 ( [ noext] , [ mandatory] )
106+ # AX_CXX_COMPILE_STDCXX(17, [noext], [mandatory]) # C++20 is not supported yet.
107107
108108# ### Program Checks ####
109109AC_PROG_CXX
@@ -122,8 +122,8 @@ AC_ARG_WITH(
122122AC_CHECK_PROG ( IWYU , include-what-you-use , include-what-you-use )
123123test -z $IWYU && \
124124 AC_MSG_WARN ( [ You cannot check the includes for lack of include-what-you-use.] )
125- AC_SUBST ( [ IWYU_OPTS_CXX] , "-Xiwyu -- max_line_length=200 - x c++ - std=c++17 - DIWYU" )
126- AC_SUBST ( [ IWYU_OPTS_C] , "-Xiwyu -- max_line_length=200 - x c - std=c17 - DIWYU" )
125+ AC_SUBST ( [ IWYU_OPTS_CXX] , "-Xiwyu -- max_line_length=200 - x c++ - DIWYU" )
126+ AC_SUBST ( [ IWYU_OPTS_C] , "-Xiwyu -- max_line_length=200 - x c - DIWYU" )
127127AC_SUBST ( [ IWYU_IMP_PATH] , "kogyan/tool/iwyu_mappings.imp" )
128128
129129AC_ARG_WITH (
@@ -198,7 +198,8 @@ AC_HEADER_STDC
198198AC_SUBST ( [ CPPFLAGS] , "${CPPFLAGS} ${BOOST_CPPFLAGS}" )
199199
200200# ### Compilation Options ####
201- AC_SUBST ( [ CXXFLAGS] , "${CXXFLAGS} - Werror - Wall - Wextra - pedantic-errors" )
201+ AC_SUBST ( [ CXXFLAGS_IWYU] , "${CXXFLAGS} - std=c++2a - Werror - Wall - Wextra - pedantic-errors" )
202+ AC_SUBST ( [ CXXFLAGS] , "${CXXFLAGS} - std=c++20 - Werror - Wall - Wextra - pedantic-errors" )
202203AC_SUBST ( [ CFLAGS] , "${CFLAGS} - std=c17 - Werror - Wall - Wextra - pedantic-errors" )
203204
204205# ### Output ####
0 commit comments