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