You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
909 B

  1. dnl @synopsis AC_CXX_HAVE_STD_LIBS
  2. dnl
  3. dnl If the compiler supports ISO C++ standard library (i.e., can
  4. dnl include the files iostream, map, iomanip and cmath}), define
  5. dnl HAVE_STD_LIBS.
  6. dnl
  7. dnl @category Cxx
  8. dnl @author Todd Veldhuizen
  9. dnl @author Luc Maisonobe <luc@spaceroots.org>
  10. dnl @version 2004-02-04
  11. dnl @license AllPermissive
  12. AC_DEFUN([AC_CXX_HAVE_STD_LIBS],
  13. [AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library,
  14. ac_cv_cxx_have_std_libs,
  15. [AC_REQUIRE([AC_CXX_HAVE_NAMESPACES])
  16. AC_LANG_SAVE
  17. AC_LANG_CPLUSPLUS
  18. AC_TRY_COMPILE([#include <iostream>
  19. #include <map>
  20. #include <iomanip>
  21. #include <cmath>
  22. #ifdef HAVE_NAMESPACES
  23. using namespace std;
  24. #endif],[return 0;],
  25. ac_cv_cxx_have_std_libs=yes, ac_cv_cxx_have_std_libs=no)
  26. AC_LANG_RESTORE
  27. ])
  28. if test "$ac_cv_cxx_have_std_libs" = yes; then
  29. AC_DEFINE(HAVE_STD_LIBS,,[define if the compiler supports ISO C++ standard library])
  30. fi
  31. ])