Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // (C) Copyright John Maddock 2001. |
| 2 | // (C) Copyright Jens Maurer 2001 - 2003. |
| 3 | // (C) Copyright Peter Dimov 2002. |
| 4 | // (C) Copyright Aleksey Gurtovoy 2002 - 2003. |
| 5 | // (C) Copyright David Abrahams 2002. |
| 6 | // Use, modification and distribution are subject to the |
| 7 | // Boost Software License, Version 1.0. (See accompanying file |
| 8 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 9 | |
| 10 | // See http://www.boost.org for most recent version. |
| 11 | |
| 12 | // Sun C++ compiler setup: |
| 13 | |
| 14 | # if __SUNPRO_CC <= 0x500 |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 15 | # define NDNBOOST_NO_MEMBER_TEMPLATES |
| 16 | # define NDNBOOST_NO_FUNCTION_TEMPLATE_ORDERING |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 17 | # endif |
| 18 | |
| 19 | # if (__SUNPRO_CC <= 0x520) |
| 20 | // |
| 21 | // Sunpro 5.2 and earler: |
| 22 | // |
| 23 | // although sunpro 5.2 supports the syntax for |
| 24 | // inline initialization it often gets the value |
| 25 | // wrong, especially where the value is computed |
| 26 | // from other constants (J Maddock 6th May 2001) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 27 | # define NDNBOOST_NO_INCLASS_MEMBER_INITIALIZATION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 28 | |
| 29 | // Although sunpro 5.2 supports the syntax for |
| 30 | // partial specialization, it often seems to |
| 31 | // bind to the wrong specialization. Better |
| 32 | // to disable it until suppport becomes more stable |
| 33 | // (J Maddock 6th May 2001). |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 34 | # define NDNBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 35 | # endif |
| 36 | |
| 37 | # if (__SUNPRO_CC <= 0x530) |
| 38 | // Requesting debug info (-g) with Boost.Python results |
| 39 | // in an internal compiler error for "static const" |
| 40 | // initialized in-class. |
| 41 | // >> Assertion: (../links/dbg_cstabs.cc, line 611) |
| 42 | // while processing ../test.cpp at line 0. |
| 43 | // (Jens Maurer according to Gottfried Ganssauge 04 Mar 2002) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 44 | # define NDNBOOST_NO_INCLASS_MEMBER_INITIALIZATION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 45 | |
| 46 | // SunPro 5.3 has better support for partial specialization, |
| 47 | // but breaks when compiling std::less<shared_ptr<T> > |
| 48 | // (Jens Maurer 4 Nov 2001). |
| 49 | |
| 50 | // std::less specialization fixed as reported by George |
| 51 | // Heintzelman; partial specialization re-enabled |
| 52 | // (Peter Dimov 17 Jan 2002) |
| 53 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 54 | //# define NDNBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 55 | |
| 56 | // integral constant expressions with 64 bit numbers fail |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 57 | # define NDNBOOST_NO_INTEGRAL_INT64_T |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 58 | # endif |
| 59 | |
| 60 | # if (__SUNPRO_CC < 0x570) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 61 | # define NDNBOOST_NO_TEMPLATE_TEMPLATES |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 62 | // see http://lists.boost.org/MailArchives/boost/msg47184.php |
| 63 | // and http://lists.boost.org/MailArchives/boost/msg47220.php |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 64 | # define NDNBOOST_NO_INCLASS_MEMBER_INITIALIZATION |
| 65 | # define NDNBOOST_NO_SFINAE |
| 66 | # define NDNBOOST_NO_ARRAY_TYPE_SPECIALIZATIONS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 67 | # endif |
| 68 | # if (__SUNPRO_CC <= 0x580) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 69 | # define NDNBOOST_NO_IS_ABSTRACT |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 70 | # endif |
| 71 | |
| 72 | # if (__SUNPRO_CC <= 0x5100) |
| 73 | // Sun 5.10 may not correctly value-initialize objects of |
| 74 | // some user defined types, as was reported in April 2010 |
| 75 | // (CR 6947016), and confirmed by Steve Clamage. |
| 76 | // (Niels Dekker, LKEB, May 2010). |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 77 | # define NDNBOOST_NO_COMPLETE_VALUE_INITIALIZATION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 78 | # endif |
| 79 | |
| 80 | // |
| 81 | // Dynamic shared object (DSO) and dynamic-link library (DLL) support |
| 82 | // |
| 83 | #if __SUNPRO_CC > 0x500 |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 84 | # define NDNBOOST_SYMBOL_EXPORT __global |
| 85 | # define NDNBOOST_SYMBOL_IMPORT __global |
| 86 | # define NDNBOOST_SYMBOL_VISIBLE __global |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 87 | #endif |
| 88 | |
| 89 | |
| 90 | |
| 91 | // |
| 92 | // Issues that effect all known versions: |
| 93 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 94 | #define NDNBOOST_NO_TWO_PHASE_NAME_LOOKUP |
| 95 | #define NDNBOOST_NO_ADL_BARRIER |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 96 | |
| 97 | // |
| 98 | // C++0x features |
| 99 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 100 | # define NDNBOOST_HAS_LONG_LONG |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 101 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 102 | #define NDNBOOST_NO_CXX11_AUTO_DECLARATIONS |
| 103 | #define NDNBOOST_NO_CXX11_AUTO_MULTIDECLARATIONS |
| 104 | #define NDNBOOST_NO_CXX11_CHAR16_T |
| 105 | #define NDNBOOST_NO_CXX11_CHAR32_T |
| 106 | #define NDNBOOST_NO_CXX11_CONSTEXPR |
| 107 | #define NDNBOOST_NO_CXX11_DECLTYPE |
| 108 | #define NDNBOOST_NO_CXX11_DECLTYPE_N3276 |
| 109 | #define NDNBOOST_NO_CXX11_DEFAULTED_FUNCTIONS |
| 110 | #define NDNBOOST_NO_CXX11_DELETED_FUNCTIONS |
| 111 | #define NDNBOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS |
| 112 | #define NDNBOOST_NO_CXX11_EXTERN_TEMPLATE |
| 113 | #define NDNBOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS |
| 114 | #define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST |
| 115 | #define NDNBOOST_NO_CXX11_LAMBDAS |
| 116 | #define NDNBOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS |
| 117 | #define NDNBOOST_NO_CXX11_NOEXCEPT |
| 118 | #define NDNBOOST_NO_CXX11_NULLPTR |
| 119 | #define NDNBOOST_NO_CXX11_RANGE_BASED_FOR |
| 120 | #define NDNBOOST_NO_CXX11_RAW_LITERALS |
| 121 | #define NDNBOOST_NO_CXX11_RVALUE_REFERENCES |
| 122 | #define NDNBOOST_NO_CXX11_SCOPED_ENUMS |
| 123 | #define NDNBOOST_NO_SFINAE_EXPR |
| 124 | #define NDNBOOST_NO_CXX11_STATIC_ASSERT |
| 125 | #define NDNBOOST_NO_CXX11_TEMPLATE_ALIASES |
| 126 | #define NDNBOOST_NO_CXX11_UNICODE_LITERALS |
| 127 | #define NDNBOOST_NO_CXX11_VARIADIC_TEMPLATES |
| 128 | #define NDNBOOST_NO_CXX11_VARIADIC_MACROS |
| 129 | #define NDNBOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX |
| 130 | #define NDNBOOST_NO_CXX11_USER_DEFINED_LITERALS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 131 | |
| 132 | // |
| 133 | // Version |
| 134 | // |
| 135 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 136 | #define NDNBOOST_COMPILER "Sun compiler version " NDNBOOST_STRINGIZE(__SUNPRO_CC) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 137 | |
| 138 | // |
| 139 | // versions check: |
| 140 | // we don't support sunpro prior to version 4: |
| 141 | #if __SUNPRO_CC < 0x400 |
| 142 | #error "Compiler not supported or configured - please reconfigure" |
| 143 | #endif |
| 144 | // |
| 145 | // last known and checked version is 0x590: |
| 146 | #if (__SUNPRO_CC > 0x590) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 147 | # if defined(NDNBOOST_ASSERT_CONFIG) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 148 | # error "Unknown compiler version - please run the configure tests and report the results" |
| 149 | # endif |
| 150 | #endif |