sl@0: // (C) Copyright John Maddock 2005. sl@0: // Use, modification and distribution are subject to the sl@0: // Boost Software License, Version 1.0. (See accompanying file sl@0: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) sl@0: sl@0: sl@0: #ifndef BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED sl@0: # define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED sl@0: sl@0: // sl@0: // IMPORTANT: we must figure out the basics, such as how to sl@0: // forward to the real std lib headers *without* including sl@0: // boost/config.hpp or any of the std lib headers. A classic sl@0: // chicken and the egg problem.... sl@0: // sl@0: // Including at least lets us detect STLport: sl@0: // sl@0: #include sl@0: sl@0: # if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && !defined(__BORLANDC__) sl@0: # ifdef __SUNPRO_CC sl@0: // can't use <../stlport/name> since some compilers put stlport in a different directory: sl@0: # define BOOST_TR1_STD_HEADER(name) <../stlport4/name> sl@0: # else sl@0: # define BOOST_TR1_STD_HEADER(name) <../stlport/name> sl@0: # endif sl@0: # elif defined(__HP_aCC) sl@0: # define BOOST_TR1_STD_HEADER(name) <../include_std/name> sl@0: # elif defined(__DECCXX) sl@0: # define BOOST_TR1_STD_HEADER(name) <../cxx/name> sl@0: # elif defined(__BORLANDC__) && __BORLANDC__ >= 0x570 sl@0: # define BOOST_TR1_STD_HEADER(name) <../include/dinkumware/name> sl@0: # else sl@0: # define BOOST_TR1_STD_HEADER(name) <../include/name> sl@0: # endif sl@0: sl@0: #if defined(__GNUC__) && !defined(BOOST_HAS_INCLUDE_NEXT) sl@0: # define BOOST_HAS_INCLUDE_NEXT sl@0: #endif sl@0: sl@0: // Can't use BOOST_WORKAROUND here, it leads to recursive includes: sl@0: #if (defined(__BORLANDC__) && (__BORLANDC__ <= 0x600)) || (defined(_MSC_VER) && (_MSC_VER < 1310)) sl@0: # define BOOST_TR1_USE_OLD_TUPLE sl@0: #endif sl@0: sl@0: // sl@0: // We may be in the middle of parsing boost/config.hpp sl@0: // when this header is included, so don't rely on config sl@0: // stuff in the rest of this header... sl@0: // sl@0: // Find our actual std lib: sl@0: // sl@0: #ifdef BOOST_HAS_INCLUDE_NEXT sl@0: # ifndef BOOST_TR1_NO_RECURSION sl@0: # define BOOST_TR1_NO_RECURSION sl@0: # define BOOST_TR1_NO_CONFIG_RECURSION sl@0: # endif sl@0: # include_next sl@0: # if (__GNUC__ < 3) sl@0: # include_next sl@0: # include_next sl@0: # endif sl@0: # ifdef BOOST_TR1_NO_CONFIG_RECURSION sl@0: # undef BOOST_TR1_NO_CONFIG_RECURSION sl@0: # undef BOOST_TR1_NO_RECURSION sl@0: # endif sl@0: #else sl@0: # include BOOST_TR1_STD_HEADER(utility) sl@0: #endif sl@0: sl@0: #if defined(__GLIBCXX__) && !defined(BOOST_TR1_PATH) sl@0: # define BOOST_TR1_PATH(name) tr1/name sl@0: #endif sl@0: #if !defined(BOOST_TR1_PATH) sl@0: # define BOOST_TR1_PATH(name) name sl@0: #endif sl@0: sl@0: #define BOOST_TR1_HEADER(name) sl@0: sl@0: #ifdef BOOST_HAS_TR1 sl@0: // turn on support for everything: sl@0: # define BOOST_HAS_TR1_ARRAY sl@0: # define BOOST_HAS_TR1_COMPLEX_OVERLOADS sl@0: # define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG sl@0: # define BOOST_HAS_TR1_REFERENCE_WRAPPER sl@0: # define BOOST_HAS_TR1_RESULT_OF sl@0: # define BOOST_HAS_TR1_MEM_FN sl@0: # define BOOST_HAS_TR1_BIND sl@0: # define BOOST_HAS_TR1_FUNCTION sl@0: # define BOOST_HAS_TR1_HASH sl@0: # define BOOST_HAS_TR1_SHARED_PTR sl@0: # define BOOST_HAS_TR1_RANDOM sl@0: # define BOOST_HAS_TR1_REGEX sl@0: # define BOOST_HAS_TR1_TUPLE sl@0: # define BOOST_HAS_TR1_TYPE_TRAITS sl@0: # define BOOST_HAS_TR1_UTILITY sl@0: # define BOOST_HAS_TR1_UNORDERED_MAP sl@0: # define BOOST_HAS_TR1_UNORDERED_SET sl@0: sl@0: #endif sl@0: sl@0: #if defined(__MWERKS__) && (__MWERKS__ >= 0x3205) sl@0: // sl@0: // Very preliminary MWCW support, may not be right: sl@0: // sl@0: # define BOOST_HAS_TR1_SHARED_PTR sl@0: # define BOOST_HAS_TR1_REFERENCE_WRAPPER sl@0: # define BOOST_HAS_TR1_FUNCTION sl@0: # define BOOST_HAS_TR1_TUPLE sl@0: # define BOOST_HAS_TR1_RESULT_OF sl@0: #endif sl@0: sl@0: #ifdef BOOST_HAS_GCC_TR1 sl@0: // turn on support for everything in gcc 4.0.x: sl@0: # define BOOST_HAS_TR1_ARRAY sl@0: //# define BOOST_HAS_TR1_COMPLEX_OVERLOADS sl@0: //# define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG sl@0: # define BOOST_HAS_TR1_REFERENCE_WRAPPER sl@0: # define BOOST_HAS_TR1_RESULT_OF sl@0: # define BOOST_HAS_TR1_MEM_FN sl@0: # define BOOST_HAS_TR1_BIND sl@0: # define BOOST_HAS_TR1_FUNCTION sl@0: # define BOOST_HAS_TR1_HASH sl@0: # define BOOST_HAS_TR1_SHARED_PTR sl@0: //# define BOOST_HAS_TR1_RANDOM sl@0: //# define BOOST_HAS_TR1_REGEX sl@0: # define BOOST_HAS_TR1_TUPLE sl@0: # define BOOST_HAS_TR1_TYPE_TRAITS sl@0: # define BOOST_HAS_TR1_UTILITY sl@0: # define BOOST_HAS_TR1_UNORDERED_MAP sl@0: # define BOOST_HAS_TR1_UNORDERED_SET sl@0: sl@0: #endif sl@0: sl@0: #include sl@0: sl@0: #endif sl@0: