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@16
|
31 // If our std lib was not some version of STLport, then include <utility> as it is about
|
Chris@16
|
32 // the smallest of the std lib headers that includes real C++ stuff. (Some std libs do not
|
Chris@16
|
33 // include their C++-related macros in <cstddef> so this additional include makes sure
|
Chris@16
|
34 // we get those definitions)
|
Chris@16
|
35 // (again do not rely on this header being included since users can short-circuit this
|
Chris@16
|
36 // header if they know whose std lib they are using.)
|
Chris@16
|
37 #include <boost/config/no_tr1/utility.hpp>
|
Chris@16
|
38
|
Chris@16
|
39 #if defined(__LIBCOMO__)
|
Chris@16
|
40 // Comeau STL:
|
Chris@16
|
41 #define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp"
|
Chris@16
|
42
|
Chris@16
|
43 #elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
|
Chris@16
|
44 // Rogue Wave library:
|
Chris@16
|
45 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
|
Chris@16
|
46
|
Chris@16
|
47 #elif defined(_LIBCPP_VERSION)
|
Chris@16
|
48 // libc++
|
Chris@16
|
49 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcpp.hpp"
|
Chris@16
|
50
|
Chris@16
|
51 #elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
Chris@16
|
52 // GNU libstdc++ 3
|
Chris@16
|
53 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
|
Chris@16
|
54
|
Chris@16
|
55 #elif defined(__STL_CONFIG_H)
|
Chris@16
|
56 // generic SGI STL
|
Chris@16
|
57 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/sgi.hpp"
|
Chris@16
|
58
|
Chris@16
|
59 #elif defined(__MSL_CPP__)
|
Chris@16
|
60 // MSL standard lib:
|
Chris@16
|
61 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/msl.hpp"
|
Chris@16
|
62
|
Chris@16
|
63 #elif defined(__IBMCPP__)
|
Chris@16
|
64 // take the default VACPP std lib
|
Chris@16
|
65 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/vacpp.hpp"
|
Chris@16
|
66
|
Chris@16
|
67 #elif defined(MSIPL_COMPILE_H)
|
Chris@16
|
68 // Modena C++ standard library
|
Chris@16
|
69 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/modena.hpp"
|
Chris@16
|
70
|
Chris@16
|
71 #elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
|
Chris@16
|
72 // Dinkumware Library (this has to appear after any possible replacement libraries):
|
Chris@16
|
73 # define BOOST_STDLIB_CONFIG "boost/config/stdlib/dinkumware.hpp"
|
Chris@16
|
74
|
Chris@16
|
75 #elif defined (BOOST_ASSERT_CONFIG)
|
Chris@16
|
76 // this must come last - generate an error if we don't
|
Chris@16
|
77 // recognise the library:
|
Chris@16
|
78 # error "Unknown standard library - please configure and report the results to boost.org"
|
Chris@16
|
79
|
Chris@16
|
80 #endif
|
Chris@16
|
81
|
Chris@16
|
82 #endif
|
Chris@16
|
83
|
Chris@16
|
84
|
Chris@16
|
85
|