ax_cxx_header_stdcxx_98.m4 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # ===========================================================================
  2. # http://www.gnu.org/software/autoconf-archive/ax_cxx_header_stdcxx_98.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_CXX_HEADER_STDCXX_98
  8. #
  9. # DESCRIPTION
  10. #
  11. # Check for complete library coverage of the C++1998/2003 standard.
  12. #
  13. # LICENSE
  14. #
  15. # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
  16. #
  17. # Copying and distribution of this file, with or without modification, are
  18. # permitted in any medium without royalty provided the copyright notice
  19. # and this notice are preserved. This file is offered as-is, without any
  20. # warranty.
  21. #serial 7
  22. AU_ALIAS([AC_CXX_HEADER_STDCXX_98], [AX_CXX_HEADER_STDCXX_98])
  23. AC_DEFUN([AX_CXX_HEADER_STDCXX_98], [
  24. AC_CACHE_CHECK([for ISO C++ 98 include files], [ax_cv_cxx_stdcxx_98], [
  25. AC_LANG_PUSH([C++])
  26. AC_COMPILE_IFELSE([
  27. AC_LANG_PROGRAM([
  28. #include <cassert>
  29. #include <cctype>
  30. #include <cerrno>
  31. #include <cfloat>
  32. #include <ciso646>
  33. #include <climits>
  34. #include <clocale>
  35. #include <cmath>
  36. #include <csetjmp>
  37. #include <csignal>
  38. #include <cstdarg>
  39. #include <cstddef>
  40. #include <cstdio>
  41. #include <cstdlib>
  42. #include <cstring>
  43. #include <ctime>
  44. #include <algorithm>
  45. #include <bitset>
  46. #include <complex>
  47. #include <deque>
  48. #include <exception>
  49. #include <fstream>
  50. #include <functional>
  51. #include <iomanip>
  52. #include <ios>
  53. #include <iosfwd>
  54. #include <iostream>
  55. #include <istream>
  56. #include <iterator>
  57. #include <limits>
  58. #include <list>
  59. #include <locale>
  60. #include <map>
  61. #include <memory>
  62. #include <new>
  63. #include <numeric>
  64. #include <ostream>
  65. #include <queue>
  66. #include <set>
  67. #include <sstream>
  68. #include <stack>
  69. #include <stdexcept>
  70. #include <streambuf>
  71. #include <string>
  72. #include <typeinfo>
  73. #include <utility>
  74. #include <valarray>
  75. #include <vector>
  76. ], [
  77. int x
  78. ]), [ax_cv_cxx_stdcxx_98=yes ], [ax_cv_cxx_stdcxx_98=no ]
  79. ])
  80. AC_LANG_POP
  81. ])
  82. if test "$ax_cv_cxx_stdcxx_98" = yes; then
  83. AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ])
  84. fi
  85. ])