1 // Boost compiler configuration selection header file
3 // (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
4 // distribute this software is granted provided this copyright notice appears
5 // in all copies. This software is provided "as is" without express or implied
6 // warranty, and with no claim as to its suitability for any purpose.
8 // See http://www.boost.org for most recent version.
10 // locate which compiler we are using and define
11 // BOOST_COMPILER_CONFIG as needed:
15 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
17 # elif defined __COMO__
19 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
23 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
27 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
29 #elif defined __DECCXX
30 // Compaq Tru64 Unix cxx
31 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
35 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
37 #elif defined __BORLANDC__
39 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
41 #elif defined(__ICL) || defined(__ICC)
43 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
45 #elif defined __MWERKS__
46 // Metrowerks CodeWarrior
47 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
49 #elif defined __SUNPRO_CC
50 // Sun Workshop Compiler C++
51 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
53 #elif defined __HP_aCC
55 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
57 #elif defined(__MRC__) || defined(__SC__)
59 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
61 #elif defined(__IBMCPP__)
63 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
65 #elif defined _MSC_VER
66 // Microsoft Visual C++
68 // Must remain the last #elif since some other vendors (Metrowerks, for
69 // example) also #define _MSC_VER
70 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
72 #elif defined (BOOST_ASSERT_CONFIG)
73 // this must come last - generate an error if we don't
74 // recognise the compiler:
75 # error "Unknown compiler - please configure and report the results to boost.org"