sl@0: // (C) Copyright John Maddock 2001 - 2003. sl@0: // (C) Copyright Darin Adler 2001 - 2002. sl@0: // (C) Copyright Jens Maurer 2001 - 2002. sl@0: // (C) Copyright Beman Dawes 2001 - 2003. sl@0: // (C) Copyright Douglas Gregor 2002. sl@0: // (C) Copyright David Abrahams 2002 - 2003. sl@0: // (C) Copyright Synge Todo 2003. 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: // See http://www.boost.org for most recent version. sl@0: sl@0: // GNU C++ compiler setup: sl@0: sl@0: #if __GNUC__ < 3 sl@0: # if __GNUC_MINOR__ == 91 sl@0: // egcs 1.1 won't parse shared_ptr.hpp without this: sl@0: # define BOOST_NO_AUTO_PTR sl@0: # endif sl@0: # if __GNUC_MINOR__ < 95 sl@0: // sl@0: // Prior to gcc 2.95 member templates only partly sl@0: // work - define BOOST_MSVC6_MEMBER_TEMPLATES sl@0: // instead since inline member templates mostly work. sl@0: // sl@0: # define BOOST_NO_MEMBER_TEMPLATES sl@0: # if __GNUC_MINOR__ >= 9 sl@0: # define BOOST_MSVC6_MEMBER_TEMPLATES sl@0: # endif sl@0: # endif sl@0: sl@0: # if __GNUC_MINOR__ < 96 sl@0: # define BOOST_NO_SFINAE sl@0: # endif sl@0: sl@0: # if __GNUC_MINOR__ <= 97 sl@0: # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS sl@0: # define BOOST_NO_OPERATORS_IN_NAMESPACE sl@0: # endif sl@0: sl@0: # define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE sl@0: # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL sl@0: # define BOOST_NO_IS_ABSTRACT sl@0: #elif __GNUC__ == 3 sl@0: // sl@0: // gcc-3.x problems: sl@0: // sl@0: // Bug specific to gcc 3.1 and 3.2: sl@0: // sl@0: # if ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2)) sl@0: # define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS sl@0: # endif sl@0: # if __GNUC_MINOR__ < 4 sl@0: # define BOOST_NO_IS_ABSTRACT sl@0: # endif sl@0: #endif sl@0: sl@0: #ifndef __EXCEPTIONS sl@0: # define BOOST_NO_EXCEPTIONS sl@0: #endif sl@0: sl@0: sl@0: // sl@0: // Threading support: Turn this on unconditionally here (except for sl@0: // those platforms where we can know for sure). It will get turned off again sl@0: // later if no threading API is detected. sl@0: // sl@0: #if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__) sl@0: # define BOOST_HAS_THREADS sl@0: #endif sl@0: sl@0: // sl@0: // gcc has "long long" sl@0: // sl@0: #define BOOST_HAS_LONG_LONG sl@0: sl@0: // sl@0: // gcc implements the named return value optimization since version 3.1 sl@0: // sl@0: #if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 ) sl@0: #define BOOST_HAS_NRVO sl@0: #endif sl@0: sl@0: #define BOOST_COMPILER "GNU C++ version " __VERSION__ sl@0: sl@0: // sl@0: // versions check: sl@0: // we don't know gcc prior to version 2.90: sl@0: #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90) sl@0: # error "Compiler not configured - please reconfigure" sl@0: #endif sl@0: // sl@0: // last known and checked version is 4.0 (Pre-release): sl@0: #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 0)) sl@0: # if defined(BOOST_ASSERT_CONFIG) sl@0: # error "Unknown compiler version - please run the configure tests and report the results" sl@0: # else sl@0: // we don't emit warnings here anymore since there are no defect macros defined for sl@0: // gcc post 3.4, so any failures are gcc regressions... sl@0: //# warning "Unknown compiler version - please run the configure tests and report the results" sl@0: # endif sl@0: #endif sl@0: sl@0: