1 | // (C) Copyright John Maddock 2005.
|
---|
2 | // Use, modification and distribution are subject to the
|
---|
3 | // Boost Software License, Version 1.0. (See accompanying file
|
---|
4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * The gcc include path logic is derived from STLport:
|
---|
8 | *
|
---|
9 | * Copyright (c) 1994
|
---|
10 | * Hewlett-Packard Company
|
---|
11 | *
|
---|
12 | * Copyright (c) 1996-1999
|
---|
13 | * Silicon Graphics Computer Systems, Inc.
|
---|
14 | *
|
---|
15 | * Copyright (c) 1997
|
---|
16 | * Moscow Center for SPARC Technology
|
---|
17 | *
|
---|
18 | * Copyright (c) 1999-2003
|
---|
19 | * Boris Fomitchev
|
---|
20 | *
|
---|
21 | * This material is provided "as is", with absolutely no warranty expressed
|
---|
22 | * or implied. Any use is at your own risk.
|
---|
23 | *
|
---|
24 | * Permission to use or copy this software for any purpose is hereby granted
|
---|
25 | * without fee, provided the above notices are retained on all copies.
|
---|
26 | * Permission to modify the code and to distribute modified code is granted,
|
---|
27 | * provided the above notices are retained, and a notice that the code was
|
---|
28 | * modified is included with the above copyright notice.
|
---|
29 | *
|
---|
30 | */
|
---|
31 |
|
---|
32 | #ifndef BOOST_TR1_DETAIL_CONFIG_ALL_HPP_INCLUDED
|
---|
33 | # define BOOST_TR1_DETAIL_CONFIG_ALL_HPP_INCLUDED
|
---|
34 |
|
---|
35 | //
|
---|
36 | // IMPORTANT: we must figure out the basics, such as how to
|
---|
37 | // forward to the real std lib headers *without* including
|
---|
38 | // boost/config.hpp or any of the std lib headers. A classic
|
---|
39 | // chicken and the egg problem....
|
---|
40 | //
|
---|
41 | // Including <cstddef> at least lets us detect STLport:
|
---|
42 | //
|
---|
43 | #include <cstddef>
|
---|
44 |
|
---|
45 | // Including <cstdlib> allows us to use __GLIBCXX__ to
|
---|
46 | // determine the version of the stdc++ library in use
|
---|
47 | // under Darwin.
|
---|
48 | #include <cstdlib>
|
---|
49 |
|
---|
50 | # if defined(_RWSTD_VER) && _RWSTD_VER >= 0x04010200
|
---|
51 | # if !defined (__SUNPRO_CC) && !defined (__DECCXX)
|
---|
52 | # define BOOST_TR1_STD_CHEADER(name) <../include/ansi/name>
|
---|
53 | # endif
|
---|
54 | # endif
|
---|
55 |
|
---|
56 |
|
---|
57 | # if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && !defined(__BORLANDC__)
|
---|
58 | # ifdef __SUNPRO_CC
|
---|
59 | // can't use <../stlport/name> since some compilers put stlport in a different directory:
|
---|
60 | # define BOOST_TR1_STD_HEADER(name) <../stlport4/name>
|
---|
61 | # elif defined(__PGI)
|
---|
62 | # define BOOST_TR1_STD_HEADER(name) <../CC/name>
|
---|
63 | # else
|
---|
64 | # define BOOST_TR1_STD_HEADER(name) <../stlport/name>
|
---|
65 | # endif
|
---|
66 | # elif defined(__PATHSCALE__) && (defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER))
|
---|
67 | # define BOOST_TR1_STD_HEADER(name) <../include/name>
|
---|
68 |
|
---|
69 | # elif defined(__SUNPRO_CC) && (defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER))
|
---|
70 | # define BOOST_TR1_STD_HEADER(name) <../stdcxx4/name>
|
---|
71 |
|
---|
72 | # elif defined(__HP_aCC)
|
---|
73 | // HP aCC include path:
|
---|
74 | # define BOOST_TR1_STD_HEADER(name) <../include_std/name>
|
---|
75 |
|
---|
76 | # elif defined(__DECCXX)
|
---|
77 | # define BOOST_TR1_STD_HEADER(name) <../cxx/name>
|
---|
78 |
|
---|
79 | # elif defined(__BORLANDC__) && __BORLANDC__ >= 0x570
|
---|
80 | # define BOOST_TR1_STD_HEADER(name) <../include/dinkumware/name>
|
---|
81 |
|
---|
82 | # elif defined(__GNUC__) && __GNUC__ >= 3
|
---|
83 | # if defined(BOOST_TR1_GCC_INCLUDE_PATH)
|
---|
84 | # define BOOST_TR1_STD_HEADER(name) <../BOOST_TR1_GCC_INCLUDE_PATH/name>
|
---|
85 | # elif ( (__GNUC__ == 3 ) && ((__GNUC_MINOR__ == 0) || ((__GNUC_MINOR__ < 3) && defined(__APPLE_CC__))))
|
---|
86 | # define BOOST_TR1_STD_HEADER(name) <../g++-v3/name>
|
---|
87 | # else
|
---|
88 | # if ( ((__GNUC__ == 3 ) && (__GNUC_MINOR__ >= 3)) && (defined(__APPLE_CC__) || defined(__CYGWIN__)))
|
---|
89 | # define BOOST_TR1_STD_HEADER(name) <../c++/name>
|
---|
90 | # elif ((__GLIBCXX__ == 20050421) && defined(__APPLE_CC__))
|
---|
91 | // Some Darwin tools fix libstdc++ at 4.0.0 irrespective of the actual
|
---|
92 | // compiler version:
|
---|
93 | # define BOOST_TR1_STD_HEADER(name) <../4.0.0/name>
|
---|
94 | /*
|
---|
95 | * Before version 3.4.0 the 0 patch level was not part of the include path:
|
---|
96 | */
|
---|
97 | # elif defined (__GNUC_PATCHLEVEL__) && ((__GNUC_PATCHLEVEL__ > 0) || \
|
---|
98 | (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
|
---|
99 | (__GNUC__ > 3))
|
---|
100 | # define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
|
---|
101 | # else
|
---|
102 | # define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__/name>
|
---|
103 | # endif
|
---|
104 | # endif
|
---|
105 |
|
---|
106 | # if !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT) && !defined(__ICC) \
|
---|
107 | && (defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__))
|
---|
108 | // Disable use of #include_next on Linux as typically we are installed in a directory that is searched
|
---|
109 | // *after* the std lib include path:
|
---|
110 | # define BOOST_TR1_DISABLE_INCLUDE_NEXT
|
---|
111 | # endif
|
---|
112 |
|
---|
113 | # else
|
---|
114 | # define BOOST_TR1_STD_HEADER(name) <../include/name>
|
---|
115 | # endif
|
---|
116 |
|
---|
117 | #if !defined(BOOST_TR1_STD_CHEADER)
|
---|
118 | # define BOOST_TR1_STD_CHEADER(name) BOOST_TR1_STD_HEADER(name)
|
---|
119 | #endif
|
---|
120 |
|
---|
121 | #if defined(__GNUC__) && !defined(BOOST_HAS_INCLUDE_NEXT)
|
---|
122 | # define BOOST_HAS_INCLUDE_NEXT
|
---|
123 | #endif
|
---|
124 | #ifdef __GXX_EXPERIMENTAL_CXX0X__
|
---|
125 | # define BOOST_HAS_CPP_0X
|
---|
126 | #endif
|
---|
127 | #if defined(_MSC_VER) && (_MSC_VER >= 1600) && !defined(BOOST_HAS_CPP_0X)
|
---|
128 | # define BOOST_HAS_CPP_0X
|
---|
129 | #endif
|
---|
130 | //
|
---|
131 | // We may be in the middle of parsing boost/config.hpp
|
---|
132 | // when this header is included, so don't rely on config
|
---|
133 | // stuff in the rest of this header...
|
---|
134 | //
|
---|
135 | // Find our actual std lib:
|
---|
136 | //
|
---|
137 | #if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
|
---|
138 | //
|
---|
139 | // We don't take this branch if BOOST_TR1_DISABLE_INCLUDE_NEXT
|
---|
140 | // is defined as we may be installed in
|
---|
141 | // /usr/include, in which case #include_next won't work as our
|
---|
142 | // include path will occur AFTER the regular std lib one :-(
|
---|
143 | //
|
---|
144 | # ifndef BOOST_TR1_NO_RECURSION
|
---|
145 | # define BOOST_TR1_NO_RECURSION
|
---|
146 | # define BOOST_TR1_NO_CONFIG_ALL_RECURSION
|
---|
147 | # endif
|
---|
148 | # include_next <utility>
|
---|
149 | # if (__GNUC__ < 3)
|
---|
150 | # include_next <algorithm>
|
---|
151 | # include_next <iterator>
|
---|
152 | # endif
|
---|
153 | # ifdef BOOST_TR1_NO_CONFIG_ALL_RECURSION
|
---|
154 | # undef BOOST_TR1_NO_CONFIG_ALL_RECURSION
|
---|
155 | # undef BOOST_TR1_NO_RECURSION
|
---|
156 | # endif
|
---|
157 | #else
|
---|
158 | # include BOOST_TR1_STD_HEADER(utility)
|
---|
159 | #endif
|
---|
160 |
|
---|
161 | #include <boost/tr1/detail/config.hpp>
|
---|
162 |
|
---|
163 | #endif
|
---|
164 |
|
---|
165 |
|
---|