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
6 // Use, modification and distribution are subject to the
\r
7 // Boost Software License, Version 1.0. (See accompanying file
\r
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
\r
10 // See http://www.boost.org for most recent version.
\r
12 // locate which compiler we are using and define
\r
13 // BOOST_COMPILER_CONFIG as needed:
\r
15 #if defined(__GCCXML__)
\r
16 // GCC-XML emulates other compilers, it has to appear first here!
\r
17 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
\r
19 #elif defined __COMO__
\r
21 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
\r
23 #elif defined __DMC__
\r
25 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
\r
27 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
\r
29 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
\r
31 # elif defined __GNUC__
\r
33 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
\r
37 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
\r
41 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
\r
43 #elif defined __DECCXX
\r
44 // Compaq Tru64 Unix cxx
\r
45 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
\r
49 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
\r
51 #elif defined __BORLANDC__
\r
53 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
\r
55 #elif defined __MWERKS__
\r
56 // Metrowerks CodeWarrior
\r
57 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
\r
59 #elif defined __SUNPRO_CC
\r
60 // Sun Workshop Compiler C++
\r
61 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
\r
63 #elif defined __HP_aCC
\r
65 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
\r
67 #elif defined(__MRC__) || defined(__SC__)
\r
68 // MPW MrCpp or SCpp
\r
69 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
\r
71 #elif defined(__IBMCPP__)
\r
73 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
\r
75 #elif defined _MSC_VER
\r
76 // Microsoft Visual C++
\r
78 // Must remain the last #elif since some other vendors (Metrowerks, for
\r
79 // example) also #define _MSC_VER
\r
80 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
\r
82 #elif defined (BOOST_ASSERT_CONFIG)
\r
83 // this must come last - generate an error if we don't
\r
84 // recognise the compiler:
\r
85 # 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