| dnl @synopsis AC_CXX_HAVE_STD_LIBS |
| dnl If the compiler supports ISO C++ standard library (i.e., can |
| dnl include the files iostream, map, iomanip and cmath}), define |
| dnl @author Todd Veldhuizen |
| dnl @author Luc Maisonobe <luc@spaceroots.org> |
| dnl @license AllPermissive |
| AC_DEFUN([AC_CXX_HAVE_STD_LIBS], |
| [AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library, |
| [AC_REQUIRE([AX_CXX_NAMESPACES]) |
| AC_TRY_COMPILE([#include <iostream> |
| ac_cv_cxx_have_std_libs=yes, ac_cv_cxx_have_std_libs=no) |
| if test "$ac_cv_cxx_have_std_libs" = yes; then |
| AC_DEFINE(HAVE_STD_LIBS,,[define if the compiler supports ISO C++ standard library]) |