Merge
[awesomized/libmemcached] / m4 / ac_cxx_header_stdcxx_98.m4
1 # ===========================================================================
2 # http://autoconf-archive.cryp.to/ac_cxx_header_stdcxx_98.html
3 # ===========================================================================
4 #
5 # SYNOPSIS
6 #
7 # AC_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.
20
21 AC_DEFUN([AC_CXX_HEADER_STDCXX_98], [
22 AC_CACHE_CHECK(for ISO C++ 98 include files,
23 ac_cv_cxx_stdcxx_98,
24 [AC_LANG_SAVE
25 AC_LANG_CPLUSPLUS
26 AC_TRY_COMPILE([
27 #include <cassert>
28 #include <cctype>
29 #include <cerrno>
30 #include <cfloat>
31 #include <ciso646>
32 #include <climits>
33 #include <clocale>
34 #include <cmath>
35 #include <csetjmp>
36 #include <csignal>
37 #include <cstdarg>
38 #include <cstddef>
39 #include <cstdio>
40 #include <cstdlib>
41 #include <cstring>
42 #include <ctime>
43
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 ac_cv_cxx_stdcxx_98=yes, ac_cv_cxx_stdcxx_98=no)
78 AC_LANG_RESTORE
79 ])
80 if test "$ac_cv_cxx_stdcxx_98" = yes; then
81 AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ])
82 fi
83 ])