Chris@16
|
1 // Boost compiler configuration selection header file
|
Chris@16
|
2
|
Chris@16
|
3 // (C) Copyright John Maddock 2001 - 2003.
|
Chris@16
|
4 // (C) Copyright Jens Maurer 2001 - 2002.
|
Chris@16
|
5 // Use, modification and distribution are subject to the
|
Chris@16
|
6 // Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
8
|
Chris@16
|
9
|
Chris@16
|
10 // See http://www.boost.org for most recent version.
|
Chris@16
|
11
|
Chris@16
|
12 // locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed:
|
Chris@16
|
13
|
Chris@16
|
14 // First include <cstddef> to determine if some version of STLport is in use as the std lib
|
Chris@16
|
15 // (do not rely on this header being included since users can short-circuit this header
|
Chris@16
|
16 // if they know whose std lib they are using.)
|
Chris@16
|
17 #ifdef __cplusplus
|
Chris@16
|
18 # include <cstddef>
|
Chris@16
|
19 #else
|
Chris@16
|
20 # include <stddef.h>
|
Chris@16
|
21 #endif
|
Chris@16
|
22
|
Chris@16
|
23 #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
Chris@16
|
24 // STLPort library; this _must_ come first, otherwise since
|
Chris@16
|
25 // STLport typically sits on top of some other library, we
|
Chris@16
|
26 // can end up detecting that first rather than STLport:
|
Chris@16
|
27 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp"
|
Chris@16
|
28
|
Chris@16
|
29 #else
|
Chris@16
|
30
|
Chris@101
|
31 // If our std lib was not some version of STLport, and has not otherwise
|
Chris@101
|
32 // been detected, then include <utility> as it is about
|
Chris@101
|
33 // the smallest of the std lib headers that includes real C++ stuff.
|
Chris@101
|
34 // Some std libs do not include their C++-related macros in <cstddef>
|
Chris@101
|
35 // so this additional include makes sure we get those definitions.
|
Chris@101
|
36 // Note: do not rely on this header being included since users can short-circuit this
|
Chris@101
|
37 // #include if they know whose std lib they are using.
|
Chris@101
|
38 #if !defined(__LIBCOMO__) && !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)\
|
Chris@101
|
39 && !defined(_LIBCPP_VERSION) && !defined(__GLIBCPP__) && !defined(__GLIBCXX__)\
|
Chris@101
|
40 && !defined(__STL_CONFIG_H) && !defined(__MSL_CPP__) && !defined(__IBMCPP__)\
|
Chris@101
|
41 && !defined(MSIPL_COMPILE_H) && !defined(_YVALS) && !defined(_CPPLIB_VER)
|
Chris@101
|
42 #include <utility>
|
Chris@101
|
43 #endif
|
Chris@16
|
44
|
Chris@16
|
45 #if defined(__LIBCOMO__)
|
Chris@16
|
46 // Comeau STL:
|
Chris@16
|
47 #define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp"
|
Chris@16
|
48
|
Chris@16
|
49 #elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
|
Chris@16
|
50 // Rogue Wave library:
|
Chris@16
|
51 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
|
Chris@16
|
52
|
Chris@16
|
53 #elif defined(_LIBCPP_VERSION)
|
Chris@16
|
54 // libc++
|
Chris@16
|
55 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcpp.hpp"
|
Chris@16
|
56
|
Chris@16
|
57 #elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
Chris@16
|
58 // GNU libstdc++ 3
|
Chris@16
|
59 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
|
Chris@16
|
60
|
Chris@16
|
61 #elif defined(__STL_CONFIG_H)
|
Chris@16
|
62 // generic SGI STL
|
Chris@16
|
63 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/sgi.hpp"
|
Chris@16
|
64
|
Chris@16
|
65 #elif defined(__MSL_CPP__)
|
Chris@16
|
66 // MSL standard lib:
|
Chris@16
|
67 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/msl.hpp"
|
Chris@16
|
68
|
Chris@16
|
69 #elif defined(__IBMCPP__)
|
Chris@16
|
70 // take the default VACPP std lib
|
Chris@16
|
71 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/vacpp.hpp"
|
Chris@16
|
72
|
Chris@16
|
73 #elif defined(MSIPL_COMPILE_H)
|
Chris@16
|
74 // Modena C++ standard library
|
Chris@16
|
75 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/modena.hpp"
|
Chris@16
|
76
|
Chris@16
|
77 #elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
|
Chris@16
|
78 // Dinkumware Library (this has to appear after any possible replacement libraries):
|
Chris@16
|
79 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/dinkumware.hpp"
|
Chris@16
|
80
|
Chris@16
|
81 #elif defined (BOOST_ASSERT_CONFIG)
|
Chris@16
|
82 // this must come last - generate an error if we don't
|
Chris@16
|
83 // recognise the library:
|
Chris@16
|
84 # error "Unknown standard library - please configure and report the results to boost.org"
|
Chris@16
|
85
|
Chris@16
|
86 #endif
|
Chris@16
|
87
|
Chris@16
|
88 #endif
|
Chris@16
|
89
|
Chris@101
|
90 #if 0
|
Chris@101
|
91 //
|
Chris@101
|
92 // This section allows dependency scanners to find all the files we *might* include:
|
Chris@101
|
93 //
|
Chris@101
|
94 # include "boost/config/stdlib/stlport.hpp"
|
Chris@101
|
95 # include "boost/config/stdlib/libcomo.hpp"
|
Chris@101
|
96 # include "boost/config/stdlib/roguewave.hpp"
|
Chris@101
|
97 # include "boost/config/stdlib/libcpp.hpp"
|
Chris@101
|
98 # include "boost/config/stdlib/libstdcpp3.hpp"
|
Chris@101
|
99 # include "boost/config/stdlib/sgi.hpp"
|
Chris@101
|
100 # include "boost/config/stdlib/msl.hpp"
|
Chris@101
|
101 # include "boost/config/stdlib/vacpp.hpp"
|
Chris@101
|
102 # include "boost/config/stdlib/modena.hpp"
|
Chris@101
|
103 # include "boost/config/stdlib/dinkumware.hpp"
|
Chris@101
|
104 #endif
|
Chris@16
|
105
|