2003-10-04 11:29:20 +00:00
|
|
|
// (C) Copyright John Maddock 2001.
|
|
|
|
// (C) Copyright Jens Maurer 2001.
|
|
|
|
// Use, modification and distribution are subject to the
|
|
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
// config for libstdc++ v3
|
|
|
|
// not much to go in here:
|
|
|
|
|
2004-05-03 11:26:53 +00:00
|
|
|
#ifdef __GLIBCXX__
|
|
|
|
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCXX__)
|
|
|
|
#else
|
2001-09-18 11:13:39 +00:00
|
|
|
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCPP__)
|
2004-05-03 11:26:53 +00:00
|
|
|
#endif
|
2001-09-18 11:13:39 +00:00
|
|
|
|
2004-05-03 11:26:53 +00:00
|
|
|
#if !defined(_GLIBCPP_USE_WCHAR_T) && !defined(_GLIBCXX_USE_WCHAR_T)
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_CWCHAR
|
|
|
|
# define BOOST_NO_CWCTYPE
|
2001-09-20 19:38:55 +00:00
|
|
|
# define BOOST_NO_STD_WSTRING
|
2002-07-28 11:06:51 +00:00
|
|
|
# define BOOST_NO_STD_WSTREAMBUF
|
2001-09-18 11:13:39 +00:00
|
|
|
#endif
|
2004-06-27 15:31:23 +00:00
|
|
|
|
2005-07-13 15:24:04 +00:00
|
|
|
#if defined(__osf__) && !defined(_REENTRANT) \
|
|
|
|
&& ( defined(_GLIBCXX_HAVE_GTHR_DEFAULT) || defined(_GLIBCPP_HAVE_GTHR_DEFAULT) )
|
|
|
|
// GCC 3 on Tru64 forces the definition of _REENTRANT when any std lib header
|
2004-10-07 13:07:33 +00:00
|
|
|
// file is included, therefore for consistency we define it here as well.
|
|
|
|
# define _REENTRANT
|
|
|
|
#endif
|
|
|
|
|
2004-06-27 15:31:23 +00:00
|
|
|
#ifdef __GLIBCXX__ // gcc 3.4 and greater:
|
2005-09-03 11:04:21 +00:00
|
|
|
# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
|
|
|
|
|| defined(_GLIBCXX__PTHREADS)
|
2004-06-27 15:31:23 +00:00
|
|
|
//
|
|
|
|
// If the std lib has thread support turned on, then turn it on in Boost
|
|
|
|
// as well. We do this because some gcc-3.4 std lib headers define _REENTANT
|
|
|
|
// while others do not...
|
|
|
|
//
|
|
|
|
# define BOOST_HAS_THREADS
|
|
|
|
# else
|
|
|
|
# define BOOST_DISABLE_THREADS
|
|
|
|
# endif
|
2005-09-03 11:04:21 +00:00
|
|
|
#elif defined(__GLIBCPP__) \
|
|
|
|
&& !defined(_GLIBCPP_HAVE_GTHR_DEFAULT) \
|
|
|
|
&& !defined(_GLIBCPP__PTHREADS)
|
2005-01-31 17:06:43 +00:00
|
|
|
// disable thread support if the std lib was built single threaded:
|
|
|
|
# define BOOST_DISABLE_THREADS
|
2004-06-27 15:31:23 +00:00
|
|
|
#endif
|
|
|
|
|
2005-07-10 10:22:20 +00:00
|
|
|
#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT)
|
|
|
|
// linux on arm apparently doesn't define _REENTRANT
|
|
|
|
// so just turn on threading support whenever the std lib is thread safe:
|
|
|
|
# define BOOST_HAS_THREADS
|
|
|
|
#endif
|
|
|
|
|
2001-09-18 11:13:39 +00:00
|
|
|
|
2004-05-03 11:26:53 +00:00
|
|
|
#if !defined(_GLIBCPP_USE_LONG_LONG) \
|
|
|
|
&& !defined(_GLIBCXX_USE_LONG_LONG)\
|
|
|
|
&& defined(BOOST_HAS_LONG_LONG)
|
2001-10-31 19:36:49 +00:00
|
|
|
// May have been set by compiler/*.hpp, but "long long" without library
|
|
|
|
// support is useless.
|
|
|
|
# undef BOOST_HAS_LONG_LONG
|
|
|
|
#endif
|