1 // Boost compiler configuration selection header file
\r
3 // (C) Copyright John Maddock 2001 - 2003.
\r
4 // (C) Copyright Martin Wille 2003.
\r
5 // (C) Copyright Guillaume Melquiond 2003.
\r
7 // Distributed under the Boost Software License, Version 1.0.
\r
8 // (See accompanying file LICENSE_1_0.txt or copy at
\r
9 // http://www.boost.org/LICENSE_1_0.txt)
\r
11 // See http://www.boost.org/ for most recent version.
\r
14 // one identification macro for each of the
\r
15 // compilers we support:
\r
17 # define BOOST_CXX_GCCXML 0
\r
18 # define BOOST_CXX_COMO 0
\r
19 # define BOOST_CXX_DMC 0
\r
20 # define BOOST_CXX_INTEL 0
\r
21 # define BOOST_CXX_GNUC 0
\r
22 # define BOOST_CXX_KCC 0
\r
23 # define BOOST_CXX_SGI 0
\r
24 # define BOOST_CXX_TRU64 0
\r
25 # define BOOST_CXX_GHS 0
\r
26 # define BOOST_CXX_BORLAND 0
\r
27 # define BOOST_CXX_CW 0
\r
28 # define BOOST_CXX_SUNPRO 0
\r
29 # define BOOST_CXX_HPACC 0
\r
30 # define BOOST_CXX_MPW 0
\r
31 # define BOOST_CXX_IBMCPP 0
\r
32 # define BOOST_CXX_MSVC 0
\r
33 # define BOOST_CXX_PGI 0
\r
36 // locate which compiler we are using and define
\r
37 // BOOST_COMPILER_CONFIG as needed:
\r
39 #if defined(__GCCXML__)
\r
40 // GCC-XML emulates other compilers, it has to appear first here!
\r
41 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
\r
43 #elif defined __COMO__
\r
45 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
\r
47 #elif defined __DMC__
\r
49 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
\r
51 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
\r
53 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
\r
55 # elif defined __GNUC__
\r
57 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
\r
61 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
\r
65 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
\r
67 #elif defined __DECCXX
\r
68 // Compaq Tru64 Unix cxx
\r
69 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
\r
73 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
\r
75 #elif defined __CODEGEARC__
\r
76 // CodeGear - must be checked for before Borland
\r
77 # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
\r
79 #elif defined __BORLANDC__
\r
81 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
\r
83 #elif defined __MWERKS__
\r
84 // Metrowerks CodeWarrior
\r
85 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
\r
87 #elif defined __SUNPRO_CC
\r
88 // Sun Workshop Compiler C++
\r
89 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
\r
91 #elif defined __HP_aCC
\r
93 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
\r
95 #elif defined(__MRC__) || defined(__SC__)
\r
96 // MPW MrCpp or SCpp
\r
97 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
\r
99 #elif defined(__IBMCPP__)
\r
101 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
\r
103 #elif defined(__PGI)
\r
104 // Portland Group Inc.
\r
105 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
\r
107 #elif defined _MSC_VER
\r
108 // Microsoft Visual C++
\r
110 // Must remain the last #elif since some other vendors (Metrowerks, for
\r
111 // example) also #define _MSC_VER
\r
112 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
\r
114 #elif defined (BOOST_ASSERT_CONFIG)
\r
115 // this must come last - generate an error if we don't
\r
116 // recognise the compiler:
\r
117 # error "Unknown compiler - please configure (http://www.boost.org/libs/config/config.htm#configuring) and report the results to the main boost mailing list (http://www.boost.org/more/mailing_lists.htm#main)"
\r