mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
m4: Fix error in ax_cxx_compile_stdcxx macro script.
This commit is contained in:
parent
191c856d77
commit
69e345aac7
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
|
|||
|
||||
m4_if([$2], [iso], [], [dnl
|
||||
if test x$ac_success = xno; then
|
||||
for switch in -std=gnu++$1 -std=gnu++0x; do
|
||||
for switch in -std=gnu++$1; do
|
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
|
||||
AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
|
||||
$cachevar,
|
||||
|
@ -96,7 +96,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
|
|||
dnl HP's aCC needs +std=c++11 according to:
|
||||
dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
|
||||
dnl Cray's crayCC needs "-h std=c++11"
|
||||
for switch in -std=c++$1 -std=c++0x +std=c++$1 "-h std=c++$1"; do
|
||||
for switch in -std=c++$1 +std=c++$1 "-h std=c++$1"; do
|
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
|
||||
AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
|
||||
$cachevar,
|
||||
|
|
Loading…
Reference in a new issue