~drizzle-trunk/drizzle/development

236.1.10 by Monty Taylor
Changed C++ check to actually check for CXX98 instead (since the plain C++ check can't be trusted)
1
dnl Copyright © 2008 Benjamin Kosnik <bkoz@redhat.com>
2
3
dnl Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
4
5
6
AC_DEFUN([AC_CXX_HEADER_STDCXX_98], [
7
  AC_CACHE_CHECK(for ISO C++ 98 include files,
8
  ac_cv_cxx_stdcxx_98,
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
9
  [AC_LANG_PUSH(C++)
236.1.10 by Monty Taylor
Changed C++ check to actually check for CXX98 instead (since the plain C++ check can't be trusted)
10
  AC_TRY_COMPILE([
11
    #include <cassert>
12
    #include <cctype>
13
    #include <cerrno>
14
    #include <cfloat>
15
    #include <ciso646>
16
    #include <climits>
17
    #include <clocale>
18
    #include <cmath>
19
    #include <csetjmp>
20
    #include <csignal>
21
    #include <cstdarg>
22
    #include <cstddef>
23
    #include <cstdio>
24
    #include <cstdlib>
25
    #include <cstring>
26
    #include <ctime>
27
28
    #include <algorithm>
29
    #include <bitset>
30
    #include <complex>
31
    #include <deque>
32
    #include <exception>
33
    #include <fstream>
34
    #include <functional>
35
    #include <iomanip>
36
    #include <ios>
37
    #include <iosfwd>
38
    #include <iostream>
39
    #include <istream>
40
    #include <iterator>
41
    #include <limits>
42
    #include <list>
43
    #include <locale>
44
    #include <map>
45
    #include <memory>
46
    #include <new>
47
    #include <numeric>
48
    #include <ostream>
49
    #include <queue>
50
    #include <set>
51
    #include <sstream>
52
    #include <stack>
53
    #include <stdexcept>
54
    #include <streambuf>
55
    #include <string>
56
    #include <typeinfo>
57
    #include <utility>
58
    #include <valarray>
59
    #include <vector>
60
  ],,
61
  ac_cv_cxx_stdcxx_98=yes, ac_cv_cxx_stdcxx_98=no)
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
62
  AC_LANG_POP()
236.1.10 by Monty Taylor
Changed C++ check to actually check for CXX98 instead (since the plain C++ check can't be trusted)
63
  ])
64
  if test "$ac_cv_cxx_stdcxx_98" = yes; then
65
    AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ])
66
  fi
67
])