|
|
@ -57,8 +57,14 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl |
|
|
|
[$3], [mandatory], [ax_cxx_compile_cxx$1_required=true], |
|
|
|
[$3], [mandatory], [ax_cxx_compile_cxx$1_required=true], |
|
|
|
[$3], [optional], [ax_cxx_compile_cxx$1_required=false], |
|
|
|
[$3], [optional], [ax_cxx_compile_cxx$1_required=false], |
|
|
|
[m4_fatal([invalid third argument `$3' to AX_CXX_COMPILE_STDCXX])]) |
|
|
|
[m4_fatal([invalid third argument `$3' to AX_CXX_COMPILE_STDCXX])]) |
|
|
|
|
|
|
|
m4_if([$4], [], [ax_cxx_compile_cxx$1_try_default=true], |
|
|
|
|
|
|
|
[$4], [default], [ax_cxx_compile_cxx$1_try_default=true], |
|
|
|
|
|
|
|
[$4], [nodefault], [ax_cxx_compile_cxx$1_try_default=false], |
|
|
|
|
|
|
|
[m4_fatal([invalid fourth argument `$4' to AX_CXX_COMPILE_STDCXX])]) |
|
|
|
AC_LANG_PUSH([C++])dnl |
|
|
|
AC_LANG_PUSH([C++])dnl |
|
|
|
ac_success=no |
|
|
|
ac_success=no |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m4_if([$4], [nodefault], [], [dnl |
|
|
|
AC_CACHE_CHECK(whether $CXX supports C++$1 features by default, |
|
|
|
AC_CACHE_CHECK(whether $CXX supports C++$1 features by default, |
|
|
|
ax_cv_cxx_compile_cxx$1, |
|
|
|
ax_cv_cxx_compile_cxx$1, |
|
|
|
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])], |
|
|
|
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])], |
|
|
@ -66,7 +72,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl |
|
|
|
[ax_cv_cxx_compile_cxx$1=no])]) |
|
|
|
[ax_cv_cxx_compile_cxx$1=no])]) |
|
|
|
if test x$ax_cv_cxx_compile_cxx$1 = xyes; then |
|
|
|
if test x$ax_cv_cxx_compile_cxx$1 = xyes; then |
|
|
|
ac_success=yes |
|
|
|
ac_success=yes |
|
|
|
fi |
|
|
|
fi]) |
|
|
|
|
|
|
|
|
|
|
|
m4_if([$2], [noext], [], [dnl |
|
|
|
m4_if([$2], [noext], [], [dnl |
|
|
|
if test x$ac_success = xno; then |
|
|
|
if test x$ac_success = xno; then |
|
|
|