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