@@ -57,16 +57,22 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
57
57
[ $3 ] , [ mandatory] , [ ax_cxx_compile_cxx$1 _required=true] ,
58
58
[ $3 ] , [ optional] , [ ax_cxx_compile_cxx$1 _required=false] ,
59
59
[ 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 ] ) ] )
60
64
AC_LANG_PUSH ( [ C++] ) dnl
61
65
ac_success=no
66
+
67
+ m4_if ( [ $4 ] , [ nodefault] , [ ] , [ dnl
62
68
AC_CACHE_CHECK ( whether $CXX supports C++$1 features by default ,
63
69
ax_cv_cxx_compile_cxx$1 ,
64
70
[ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ _AX_CXX_COMPILE_STDCXX_testbody_$1 ] ) ] ,
65
71
[ ax_cv_cxx_compile_cxx$1 =yes] ,
66
72
[ ax_cv_cxx_compile_cxx$1 =no] ) ] )
67
73
if test x$ax_cv_cxx_compile_cxx$1 = xyes; then
68
74
ac_success=yes
69
- fi
75
+ fi] )
70
76
71
77
m4_if ( [ $2 ] , [ noext] , [ ] , [ dnl
72
78
if test x$ac_success = xno; then
0 commit comments