@@ -57,16 +57,22 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
5757 [ $3 ] , [ mandatory] , [ ax_cxx_compile_cxx$1 _required=true] ,
5858 [ $3 ] , [ optional] , [ ax_cxx_compile_cxx$1 _required=false] ,
5959 [ m4_fatal ( [ invalid third argument `$3 ' to AX_CXX_COMPILE_STDCXX ] ) ] )
60+ m4_if ( [ $4 ] , [ ] , [ ax_cxx_compile_cxx$1 _try_default=true] ,
61+ [ $4 ] , [ default] , [ ax_cxx_compile_cxx$1 _try_default=true] ,
62+ [ $4 ] , [ nodefault] , [ ax_cxx_compile_cxx$1 _try_default=false] ,
63+ [ m4_fatal ( [ invalid fourth argument `$4 ' to AX_CXX_COMPILE_STDCXX ] ) ] )
6064 AC_LANG_PUSH ( [ C++] ) dnl
6165 ac_success=no
66+
67+ m4_if ( [ $4 ] , [ nodefault] , [ ] , [ dnl
6268 AC_CACHE_CHECK ( whether $CXX supports C++$1 features by default ,
6369 ax_cv_cxx_compile_cxx$1 ,
6470 [ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ _AX_CXX_COMPILE_STDCXX_testbody_$1 ] ) ] ,
6571 [ ax_cv_cxx_compile_cxx$1 =yes] ,
6672 [ ax_cv_cxx_compile_cxx$1 =no] ) ] )
6773 if test x$ax_cv_cxx_compile_cxx$1 = xyes; then
6874 ac_success=yes
69- fi
75+ fi] )
7076
7177 m4_if ( [ $2 ] , [ noext] , [ ] , [ dnl
7278 if test x$ac_success = xno; then
0 commit comments