1 | // Boost compiler configuration selection header file
|
---|
2 |
|
---|
3 | // (C) Copyright John Maddock 2001 - 2003.
|
---|
4 | // (C) Copyright Martin Wille 2003.
|
---|
5 | // (C) Copyright Guillaume Melquiond 2003.
|
---|
6 | // Use, modification and distribution are subject to the
|
---|
7 | // Boost Software License, Version 1.0. (See accompanying file
|
---|
8 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
---|
9 |
|
---|
10 | // See http://www.boost.org for most recent version.
|
---|
11 |
|
---|
12 | // locate which compiler we are using and define
|
---|
13 | // BOOST_COMPILER_CONFIG as needed:
|
---|
14 |
|
---|
15 | # if defined __COMO__
|
---|
16 | // Comeau C++
|
---|
17 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
|
---|
18 |
|
---|
19 | #elif defined __DMC__
|
---|
20 | // Digital Mars C++
|
---|
21 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
|
---|
22 |
|
---|
23 | #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
|
---|
24 | // Intel
|
---|
25 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
|
---|
26 |
|
---|
27 | # elif defined __GNUC__
|
---|
28 | // GNU C++:
|
---|
29 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
|
---|
30 |
|
---|
31 | #elif defined __KCC
|
---|
32 | // Kai C++
|
---|
33 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
|
---|
34 |
|
---|
35 | #elif defined __sgi
|
---|
36 | // SGI MIPSpro C++
|
---|
37 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
|
---|
38 |
|
---|
39 | #elif defined __DECCXX
|
---|
40 | // Compaq Tru64 Unix cxx
|
---|
41 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
|
---|
42 |
|
---|
43 | #elif defined __ghs
|
---|
44 | // Greenhills C++
|
---|
45 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
|
---|
46 |
|
---|
47 | #elif defined __BORLANDC__
|
---|
48 | // Borland
|
---|
49 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
|
---|
50 |
|
---|
51 | #elif defined __MWERKS__
|
---|
52 | // Metrowerks CodeWarrior
|
---|
53 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
|
---|
54 |
|
---|
55 | #elif defined __SUNPRO_CC
|
---|
56 | // Sun Workshop Compiler C++
|
---|
57 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
|
---|
58 |
|
---|
59 | #elif defined __HP_aCC
|
---|
60 | // HP aCC
|
---|
61 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
|
---|
62 |
|
---|
63 | #elif defined(__MRC__) || defined(__SC__)
|
---|
64 | // MPW MrCpp or SCpp
|
---|
65 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
|
---|
66 |
|
---|
67 | #elif defined(__IBMCPP__)
|
---|
68 | // IBM Visual Age
|
---|
69 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
|
---|
70 |
|
---|
71 | #elif defined _MSC_VER
|
---|
72 | // Microsoft Visual C++
|
---|
73 | //
|
---|
74 | // Must remain the last #elif since some other vendors (Metrowerks, for
|
---|
75 | // example) also #define _MSC_VER
|
---|
76 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
|
---|
77 |
|
---|
78 | #elif defined (BOOST_ASSERT_CONFIG)
|
---|
79 | // this must come last - generate an error if we don't
|
---|
80 | // recognise the compiler:
|
---|
81 | # 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)"
|
---|
82 |
|
---|
83 | #endif
|
---|