Boost is now unneeded, thanks to the fix for PR253, contributed by Reid Spencer!
[oota-llvm.git] / include / boost / config / select_platform_config.hpp
1 //  Boost compiler configuration selection header file
2
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.
7
8 //  See http://www.boost.org for most recent version.
9
10 // locate which platform we are on and define BOOST_PLATFORM_CONFIG as needed.
11 // Note that we define the headers to include using "header_name" not
12 // <header_name> in order to prevent macro expansion within the header
13 // name (for example "linux" is a macro on linux systems).
14
15 #if defined(linux) || defined(__linux) || defined(__linux__)
16 // linux:
17 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/linux.hpp"
18
19 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
20 // BSD:
21 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/bsd.hpp"
22
23 #elif defined(sun) || defined(__sun)
24 // solaris:
25 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/solaris.hpp"
26
27 #elif defined(__sgi)
28 // SGI Irix:
29 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/irix.hpp"
30
31 #elif defined(__hpux)
32 // hp unix:
33 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/hpux.hpp"
34
35 #elif defined(__CYGWIN__)
36 // cygwin is not win32:
37 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/cygwin.hpp"
38
39 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
40 // win32:
41 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp"
42
43 #elif defined(__BEOS__)
44 // BeOS
45 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/beos.hpp"
46
47 #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
48 // MacOS
49 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/macos.hpp"
50
51 #elif defined(__IBMCPP__)
52 // IBM
53 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/aix.hpp"
54
55 #elif defined(__amigaos__)
56 // AmigaOS
57 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/amigaos.hpp"
58
59 #else
60
61 #  if defined(unix) \
62       || defined(__unix) \
63       || defined(_XOPEN_SOURCE) \
64       || defined(_POSIX_SOURCE)
65
66    // generic unix platform:
67
68 #  ifndef BOOST_HAS_UNISTD_H
69 #     define BOOST_HAS_UNISTD_H
70 #  endif
71
72 #  include <boost/config/posix_features.hpp>
73
74 #  endif
75
76 #  if defined (BOOST_ASSERT_CONFIG)
77       // this must come last - generate an error if we don't
78       // recognise the platform:
79 #     error "Unknown platform - please configure and report the results to boost.org"
80 #  endif
81
82 #endif
83
84