sl@0
|
1 |
// (C) Copyright John Maddock 2001.
|
sl@0
|
2 |
// (C) Copyright Jens Maurer 2001.
|
sl@0
|
3 |
// Use, modification and distribution are subject to the
|
sl@0
|
4 |
// Boost Software License, Version 1.0. (See accompanying file
|
sl@0
|
5 |
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
6 |
|
sl@0
|
7 |
// See http://www.boost.org for most recent version.
|
sl@0
|
8 |
|
sl@0
|
9 |
// config for libstdc++ v3
|
sl@0
|
10 |
// not much to go in here:
|
sl@0
|
11 |
|
sl@0
|
12 |
#ifdef __GLIBCXX__
|
sl@0
|
13 |
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCXX__)
|
sl@0
|
14 |
#else
|
sl@0
|
15 |
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCPP__)
|
sl@0
|
16 |
#endif
|
sl@0
|
17 |
|
sl@0
|
18 |
#if !defined(_GLIBCPP_USE_WCHAR_T) && !defined(_GLIBCXX_USE_WCHAR_T)
|
sl@0
|
19 |
# define BOOST_NO_CWCHAR
|
sl@0
|
20 |
# define BOOST_NO_CWCTYPE
|
sl@0
|
21 |
# define BOOST_NO_STD_WSTRING
|
sl@0
|
22 |
# define BOOST_NO_STD_WSTREAMBUF
|
sl@0
|
23 |
#endif
|
sl@0
|
24 |
|
sl@0
|
25 |
#if defined(__osf__) && !defined(_REENTRANT) \
|
sl@0
|
26 |
&& ( defined(_GLIBCXX_HAVE_GTHR_DEFAULT) || defined(_GLIBCPP_HAVE_GTHR_DEFAULT) )
|
sl@0
|
27 |
// GCC 3 on Tru64 forces the definition of _REENTRANT when any std lib header
|
sl@0
|
28 |
// file is included, therefore for consistency we define it here as well.
|
sl@0
|
29 |
# define _REENTRANT
|
sl@0
|
30 |
#endif
|
sl@0
|
31 |
|
sl@0
|
32 |
#ifdef __GLIBCXX__ // gcc 3.4 and greater:
|
sl@0
|
33 |
# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
|
sl@0
|
34 |
|| defined(_GLIBCXX__PTHREADS)
|
sl@0
|
35 |
//
|
sl@0
|
36 |
// If the std lib has thread support turned on, then turn it on in Boost
|
sl@0
|
37 |
// as well. We do this because some gcc-3.4 std lib headers define _REENTANT
|
sl@0
|
38 |
// while others do not...
|
sl@0
|
39 |
//
|
sl@0
|
40 |
# define BOOST_HAS_THREADS
|
sl@0
|
41 |
# else
|
sl@0
|
42 |
# define BOOST_DISABLE_THREADS
|
sl@0
|
43 |
# endif
|
sl@0
|
44 |
#elif defined(__GLIBCPP__) \
|
sl@0
|
45 |
&& !defined(_GLIBCPP_HAVE_GTHR_DEFAULT) \
|
sl@0
|
46 |
&& !defined(_GLIBCPP__PTHREADS)
|
sl@0
|
47 |
// disable thread support if the std lib was built single threaded:
|
sl@0
|
48 |
# define BOOST_DISABLE_THREADS
|
sl@0
|
49 |
#endif
|
sl@0
|
50 |
|
sl@0
|
51 |
#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT)
|
sl@0
|
52 |
// linux on arm apparently doesn't define _REENTRANT
|
sl@0
|
53 |
// so just turn on threading support whenever the std lib is thread safe:
|
sl@0
|
54 |
# define BOOST_HAS_THREADS
|
sl@0
|
55 |
#endif
|
sl@0
|
56 |
|
sl@0
|
57 |
|
sl@0
|
58 |
#if !defined(_GLIBCPP_USE_LONG_LONG) \
|
sl@0
|
59 |
&& !defined(_GLIBCXX_USE_LONG_LONG)\
|
sl@0
|
60 |
&& defined(BOOST_HAS_LONG_LONG)
|
sl@0
|
61 |
// May have been set by compiler/*.hpp, but "long long" without library
|
sl@0
|
62 |
// support is useless.
|
sl@0
|
63 |
# undef BOOST_HAS_LONG_LONG
|
sl@0
|
64 |
#endif
|
sl@0
|
65 |
|
sl@0
|
66 |
#if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0
|
sl@0
|
67 |
# define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx
|
sl@0
|
68 |
# define BOOST_HAS_SLIST
|
sl@0
|
69 |
# define BOOST_HAS_HASH
|
sl@0
|
70 |
# define BOOST_SLIST_HEADER <ext/slist>
|
sl@0
|
71 |
# define BOOST_HASH_SET_HEADER <ext/hash_set>
|
sl@0
|
72 |
# define BOOST_HASH_MAP_HEADER <ext/hash_map>
|
sl@0
|
73 |
#endif
|