Ugly, not-to-be-pushed sucking in of all of Boost to get windows to work.
[dyninst.git] / external / boost / iostreams / detail / config / auto_link.hpp
1 // (C) Copyright Jonathan Turkanis 2003.
2 // Distributed under the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
4
5 // See http://www.boost.org/libs/iostreams for documentation.
6
7 // Adapted from <boost/config/auto_link.hpp> and from
8 // http://www.boost.org/more/separate_compilation.html, by John Maddock.
9
10 #ifndef BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED
11 #define BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED
12
13 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
14 # pragma once
15 #endif              
16
17 #if defined(BOOST_EXTERNAL_LIB_NAME)
18 # if defined(BOOST_MSVC) \
19      || defined(__BORLANDC__) \
20      || (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \
21      || (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200)) \
22      /**/
23 #  pragma comment(lib, BOOST_EXTERNAL_LIB_NAME)
24 # endif
25 # undef BOOST_EXTERNAL_LIB_NAME
26 #endif
27
28 //------------------Enable automatic library variant selection----------------// 
29
30 #if !defined(BOOST_IOSTREAMS_SOURCE) && \
31     !defined(BOOST_ALL_NO_LIB) && \
32     !defined(BOOST_IOSTREAMS_NO_LIB) \
33     /**/
34
35 // Set the name of our library, this will get undef'ed by auto_link.hpp
36 // once it's done with it.
37 # define BOOST_LIB_NAME boost_iostreams
38
39 // If we're importing code from a dll, then tell auto_link.hpp about it.
40 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
41 #  define BOOST_DYN_LINK
42 # endif
43
44 // And include the header that does the work.
45 # include <boost/config/auto_link.hpp>
46 #endif  // auto-linking disabled
47
48 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED