Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // (C) Copyright John Maddock 2001 - 2003. |
| 2 | // (C) Copyright Jens Maurer 2001 - 2003. |
| 3 | // (C) Copyright Aleksey Gurtovoy 2002. |
| 4 | // (C) Copyright David Abrahams 2002 - 2003. |
| 5 | // (C) Copyright Toon Knapen 2003. |
| 6 | // (C) Copyright Boris Gubenko 2006 - 2007. |
| 7 | // Use, modification and distribution are subject to the |
| 8 | // Boost Software License, Version 1.0. (See accompanying file |
| 9 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 10 | |
| 11 | // See http://www.boost.org for most recent version. |
| 12 | |
| 13 | // HP aCC C++ compiler setup: |
| 14 | |
| 15 | #if defined(__EDG__) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 16 | #include "ndnboost/config/compiler/common_edg.hpp" |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | #if (__HP_aCC <= 33100) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 20 | # define NDNBOOST_NO_INTEGRAL_INT64_T |
| 21 | # define NDNBOOST_NO_OPERATORS_IN_NAMESPACE |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 22 | # if !defined(_NAMESPACE_STD) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 23 | # define NDNBOOST_NO_STD_LOCALE |
| 24 | # define NDNBOOST_NO_STRINGSTREAM |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 25 | # endif |
| 26 | #endif |
| 27 | |
| 28 | #if (__HP_aCC <= 33300) |
| 29 | // member templates are sufficiently broken that we disable them for now |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 30 | # define NDNBOOST_NO_MEMBER_TEMPLATES |
| 31 | # define NDNBOOST_NO_DEPENDENT_NESTED_DERIVATIONS |
| 32 | # define NDNBOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 33 | #endif |
| 34 | |
| 35 | #if (__HP_aCC <= 38000) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 36 | # define NDNBOOST_NO_TWO_PHASE_NAME_LOOKUP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 37 | #endif |
| 38 | |
| 39 | #if (__HP_aCC > 50000) && (__HP_aCC < 60000) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 40 | # define NDNBOOST_NO_UNREACHABLE_RETURN_DETECTION |
| 41 | # define NDNBOOST_NO_TEMPLATE_TEMPLATES |
| 42 | # define NDNBOOST_NO_SWPRINTF |
| 43 | # define NDNBOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS |
| 44 | # define NDNBOOST_NO_IS_ABSTRACT |
| 45 | # define NDNBOOST_NO_MEMBER_TEMPLATE_FRIENDS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 46 | #endif |
| 47 | |
| 48 | // optional features rather than defects: |
| 49 | #if (__HP_aCC >= 33900) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 50 | # define NDNBOOST_HAS_LONG_LONG |
| 51 | # define NDNBOOST_HAS_PARTIAL_STD_ALLOCATOR |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 52 | #endif |
| 53 | |
| 54 | #if (__HP_aCC >= 50000 ) && (__HP_aCC <= 53800 ) || (__HP_aCC < 31300 ) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 55 | # define NDNBOOST_NO_MEMBER_TEMPLATE_KEYWORD |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 56 | #endif |
| 57 | |
| 58 | // This macro should not be defined when compiling in strict ansi |
| 59 | // mode, but, currently, we don't have the ability to determine |
| 60 | // what standard mode we are compiling with. Some future version |
| 61 | // of aCC6 compiler will provide predefined macros reflecting the |
| 62 | // compilation options, including the standard mode. |
| 63 | #if (__HP_aCC >= 60000) || ((__HP_aCC > 38000) && defined(__hpxstd98)) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 64 | # define NDNBOOST_NO_TWO_PHASE_NAME_LOOKUP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 65 | #endif |
| 66 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 67 | #define NDNBOOST_COMPILER "HP aCC version " NDNBOOST_STRINGIZE(__HP_aCC) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 68 | |
| 69 | // |
| 70 | // versions check: |
| 71 | // we don't support HP aCC prior to version 33000: |
| 72 | #if __HP_aCC < 33000 |
| 73 | # error "Compiler not supported or configured - please reconfigure" |
| 74 | #endif |
| 75 | |
| 76 | // |
| 77 | // Extended checks for supporting aCC on PA-RISC |
| 78 | #if __HP_aCC > 30000 && __HP_aCC < 50000 |
| 79 | # if __HP_aCC < 38000 |
| 80 | // versions prior to version A.03.80 not supported |
| 81 | # error "Compiler version not supported - version A.03.80 or higher is required" |
| 82 | # elif !defined(__hpxstd98) |
| 83 | // must compile using the option +hpxstd98 with version A.03.80 and above |
| 84 | # error "Compiler option '+hpxstd98' is required for proper support" |
| 85 | # endif //PA-RISC |
| 86 | #endif |
| 87 | |
| 88 | // |
| 89 | // C++0x features |
| 90 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 91 | // See boost\config\suffix.hpp for NDNBOOST_NO_LONG_LONG |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 92 | // |
| 93 | #if !defined(__EDG__) |
| 94 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 95 | #define NDNBOOST_NO_CXX11_AUTO_DECLARATIONS |
| 96 | #define NDNBOOST_NO_CXX11_AUTO_MULTIDECLARATIONS |
| 97 | #define NDNBOOST_NO_CXX11_CHAR16_T |
| 98 | #define NDNBOOST_NO_CXX11_CHAR32_T |
| 99 | #define NDNBOOST_NO_CXX11_CONSTEXPR |
| 100 | #define NDNBOOST_NO_CXX11_DECLTYPE |
| 101 | #define NDNBOOST_NO_CXX11_DECLTYPE_N3276 |
| 102 | #define NDNBOOST_NO_CXX11_DEFAULTED_FUNCTIONS |
| 103 | #define NDNBOOST_NO_CXX11_DELETED_FUNCTIONS |
| 104 | #define NDNBOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS |
| 105 | #define NDNBOOST_NO_CXX11_EXTERN_TEMPLATE |
| 106 | #define NDNBOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS |
| 107 | #define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST |
| 108 | #define NDNBOOST_NO_CXX11_LAMBDAS |
| 109 | #define NDNBOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS |
| 110 | #define NDNBOOST_NO_CXX11_NOEXCEPT |
| 111 | #define NDNBOOST_NO_CXX11_NULLPTR |
| 112 | #define NDNBOOST_NO_CXX11_RANGE_BASED_FOR |
| 113 | #define NDNBOOST_NO_CXX11_RAW_LITERALS |
| 114 | #define NDNBOOST_NO_CXX11_RVALUE_REFERENCES |
| 115 | #define NDNBOOST_NO_CXX11_SCOPED_ENUMS |
| 116 | #define NDNBOOST_NO_SFINAE_EXPR |
| 117 | #define NDNBOOST_NO_CXX11_STATIC_ASSERT |
| 118 | #define NDNBOOST_NO_CXX11_TEMPLATE_ALIASES |
| 119 | #define NDNBOOST_NO_CXX11_UNICODE_LITERALS |
| 120 | #define NDNBOOST_NO_CXX11_VARIADIC_TEMPLATES |
| 121 | #define NDNBOOST_NO_CXX11_USER_DEFINED_LITERALS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 122 | |
| 123 | /* |
| 124 | See https://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1443331 and |
| 125 | https://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1443436 |
| 126 | */ |
| 127 | |
| 128 | #if (__HP_aCC < 62500) || !defined(HP_CXX0x_SOURCE) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 129 | #define NDNBOOST_NO_CXX11_VARIADIC_MACROS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 130 | #endif |
| 131 | |
| 132 | #endif |
| 133 | |
| 134 | // |
| 135 | // last known and checked version for HP-UX/ia64 is 61300 |
| 136 | // last known and checked version for PA-RISC is 38000 |
| 137 | #if ((__HP_aCC > 61300) || ((__HP_aCC > 38000) && defined(__hpxstd98))) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 138 | # if defined(NDNBOOST_ASSERT_CONFIG) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 139 | # error "Unknown compiler version - please run the configure tests and report the results" |
| 140 | # endif |
| 141 | #endif |