… | |
… | |
4353 | ac_prog_cxx_stdcxx=no |
4353 | ac_prog_cxx_stdcxx=no |
4354 | if test x$ac_prog_cxx_stdcxx = xno |
4354 | if test x$ac_prog_cxx_stdcxx = xno |
4355 | then : |
4355 | then : |
4356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
4356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
4357 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
4357 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
4358 | if test ${ac_cv_prog_cxx_cxx11+y} |
4358 | if test ${ac_cv_prog_cxx_11+y} |
4359 | then : |
4359 | then : |
4360 | printf %s "(cached) " >&6 |
4360 | printf %s "(cached) " >&6 |
4361 | else $as_nop |
4361 | else $as_nop |
4362 | ac_cv_prog_cxx_cxx11=no |
4362 | ac_cv_prog_cxx_11=no |
4363 | ac_save_CXX=$CXX |
4363 | ac_save_CXX=$CXX |
4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4365 | /* end confdefs.h. */ |
4365 | /* end confdefs.h. */ |
4366 | $ac_cxx_conftest_cxx11_program |
4366 | $ac_cxx_conftest_cxx11_program |
4367 | _ACEOF |
4367 | _ACEOF |
… | |
… | |
4399 | fi |
4399 | fi |
4400 | if test x$ac_prog_cxx_stdcxx = xno |
4400 | if test x$ac_prog_cxx_stdcxx = xno |
4401 | then : |
4401 | then : |
4402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
4402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
4403 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
4403 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
4404 | if test ${ac_cv_prog_cxx_cxx98+y} |
4404 | if test ${ac_cv_prog_cxx_98+y} |
4405 | then : |
4405 | then : |
4406 | printf %s "(cached) " >&6 |
4406 | printf %s "(cached) " >&6 |
4407 | else $as_nop |
4407 | else $as_nop |
4408 | ac_cv_prog_cxx_cxx98=no |
4408 | ac_cv_prog_cxx_98=no |
4409 | ac_save_CXX=$CXX |
4409 | ac_save_CXX=$CXX |
4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4411 | /* end confdefs.h. */ |
4411 | /* end confdefs.h. */ |
4412 | $ac_cxx_conftest_cxx98_program |
4412 | $ac_cxx_conftest_cxx98_program |
4413 | _ACEOF |
4413 | _ACEOF |
… | |
… | |
4726 | ac_cpp='$CXXCPP $CPPFLAGS' |
4726 | ac_cpp='$CXXCPP $CPPFLAGS' |
4727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4730 | |
4730 | |
4731 | |
|
|
4732 | if test "$ac_prog_cxx_stdcxx" != cxx11; then |
|
|
4733 | as_fn_error $? "the compiler does not support C++11" "$LINENO" 5 |
|
|
4734 | fi |
|
|
4735 | |
4731 | |
4736 | LINKER="$CXX" |
4732 | LINKER="$CXX" |
4737 | if test x$GCC = xyes && test x$GXX = xyes; then |
4733 | if test x$GCC = xyes && test x$GXX = xyes; then |
4738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4739 | printf %s "checking for working libsupc++... " >&6; } |
4735 | printf %s "checking for working libsupc++... " >&6; } |
… | |
… | |
5084 | fi |
5080 | fi |
5085 | |
5081 | |
5086 | if test x$GXX = xyes; then |
5082 | if test x$GXX = xyes; then |
5087 | if test $support_warnings = yes; then |
5083 | if test $support_warnings = yes; then |
5088 | save_CXXFLAGS="$CXXFLAGS" |
5084 | save_CXXFLAGS="$CXXFLAGS" |
5089 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" |
5085 | for warning in \ |
|
|
5086 | -Wall \ |
|
|
5087 | -Wno-parentheses \ |
|
|
5088 | -Wno-reorder \ |
|
|
5089 | -Wno-sign-compare \ |
|
|
5090 | -Wno-unused-value \ |
|
|
5091 | ; do |
|
|
5092 | CXXFLAGS="$CXXFLAGS $warning" |
|
|
5093 | done |
5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5091 | /* end confdefs.h. */ |
5095 | /* end confdefs.h. */ |
5092 | |
5096 | |
5093 | int |
5097 | int |
5094 | main (void) |
5098 | main (void) |