1 // (C) Copyright John Maddock 2001.
2 // (C) Copyright Peter Dimov 2001.
3 // (C) Copyright Jens Maurer 2001.
4 // (C) Copyright David Abrahams 2002 - 2003.
5 // (C) Copyright Aleksey Gurtovoy 2002 - 2003.
6 // (C) Copyright Guillaume Melquiond 2002 - 2003.
7 // (C) Copyright Beman Dawes 2003.
8 // (C) Copyright Martin Wille 2003.
9 // Use, modification and distribution are subject to the
10 // Boost Software License, Version 1.0. (See accompanying file
11 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
13 // See http://www.boost.org for most recent version.
15 // Intel compiler setup:
17 #include "boost/config/compiler/common_edg.hpp"
19 #if defined(__INTEL_COMPILER)
20 # define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
22 # define BOOST_INTEL_CXX_VERSION __ICL
24 # define BOOST_INTEL_CXX_VERSION __ICC
26 # define BOOST_INTEL_CXX_VERSION __ECC
29 #define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
30 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
32 #if (BOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER)
33 # define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
34 # define BOOST_NO_TEMPLATE_TEMPLATES
37 #if (BOOST_INTEL_CXX_VERSION <= 600) || !defined(BOOST_STRICT_CONFIG)
39 # if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
41 // Boost libraries assume strong standard conformance unless otherwise
42 // indicated by a config macro. As configured by Intel, the EDG front-end
43 // requires certain compiler options be set to achieve that strong conformance.
44 // Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt)
45 // and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for
46 // details as they apply to particular versions of the compiler. When the
47 // compiler does not predefine a macro indicating if an option has been set,
48 // this config file simply assumes the option has been set.
49 // Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if
50 // the compiler option is not enabled.
52 # define BOOST_NO_SWPRINTF
55 // Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)
57 # if defined(_MSC_VER) && (_MSC_VER <= 1200)
58 # define BOOST_NO_VOID_RETURNS
59 # define BOOST_NO_INTEGRAL_INT64_T
64 // See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864
65 #if BOOST_INTEL_CXX_VERSION < 700
66 # define BOOST_NO_INTRINSIC_WCHAR_T
68 // _WCHAR_T_DEFINED is the Win32 spelling
69 // _WCHAR_T is the Linux spelling
70 # if !defined(_WCHAR_T_DEFINED) && !defined(_WCHAR_T)
71 # define BOOST_NO_INTRINSIC_WCHAR_T
75 #if (BOOST_INTEL_CXX_VERSION <= 800) || !defined(BOOST_STRICT_CONFIG)
76 # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
79 #if _MSC_VER+0 >= 1000
81 # define BOOST_HAS_MS_INT64
83 # define BOOST_NO_SWPRINTF
85 # define BOOST_DISABLE_WIN32
88 // I checked version 6.0 build 020312Z, it implements the NRVO.
89 // Correct this as you find out which version of the compiler
90 // implemented the NRVO first. (Daniel Frey)
91 #if (BOOST_INTEL_CXX_VERSION >= 600)
92 # define BOOST_HAS_NRVO
97 // we don't support Intel prior to version 5.0:
98 #if BOOST_INTEL_CXX_VERSION < 500
99 # error "Compiler not supported or configured - please reconfigure"
102 // last known and checked version:
103 #if (BOOST_INTEL_CXX_VERSION > 800)
104 # if defined(BOOST_ASSERT_CONFIG)
105 # error "Unknown compiler version - please run the configure tests and report the results"
106 # elif defined(_MSC_VER)
107 # pragma message("Unknown compiler version - please run the configure tests and report the results")