Chris@16
|
1 // Copyright (c) 2004 Hartmut Kaiser
|
Chris@16
|
2 //
|
Chris@16
|
3 // Use, modification and distribution is subject to the Boost Software
|
Chris@16
|
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
5 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6
|
Chris@16
|
7 #ifndef BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
|
Chris@16
|
8 #define BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
|
Chris@16
|
9
|
Chris@16
|
10 #include <boost/config.hpp>
|
Chris@16
|
11 #include <boost/version.hpp>
|
Chris@16
|
12
|
Chris@16
|
13 // Support for autolinking.
|
Chris@16
|
14 #if BOOST_VERSION >= 103100 // works beginning from Boost V1.31.0
|
Chris@16
|
15
|
Chris@16
|
16 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
17 // enable automatic library variant selection
|
Chris@16
|
18 #if !defined(BOOST_PROGRAM_OPTIONS_SOURCE) && !defined(BOOST_ALL_NO_LIB) && \
|
Chris@16
|
19 !defined(BOOST_PROGRAM_OPTIONS_NO_LIB)
|
Chris@16
|
20
|
Chris@16
|
21 // Set the name of our library, this will get undef'ed by auto_link.hpp
|
Chris@16
|
22 // once it's done with it:
|
Chris@16
|
23 #define BOOST_LIB_NAME boost_program_options
|
Chris@16
|
24 // tell the auto-link code to select a dll when required:
|
Chris@16
|
25 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK)
|
Chris@16
|
26 # define BOOST_DYN_LINK
|
Chris@16
|
27 #endif
|
Chris@16
|
28
|
Chris@16
|
29 // And include the header that does the work:
|
Chris@16
|
30 #include <boost/config/auto_link.hpp>
|
Chris@16
|
31
|
Chris@16
|
32 #endif // auto-linking disabled
|
Chris@16
|
33
|
Chris@16
|
34 #endif // BOOST_VERSION
|
Chris@16
|
35
|
Chris@16
|
36 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
37 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK)
|
Chris@16
|
38 // export if this is our own source, otherwise import:
|
Chris@16
|
39 #ifdef BOOST_PROGRAM_OPTIONS_SOURCE
|
Chris@16
|
40 # define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_EXPORT
|
Chris@16
|
41 #else
|
Chris@16
|
42 # define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_IMPORT
|
Chris@16
|
43 #endif // BOOST_PROGRAM_OPTIONS_SOURCE
|
Chris@16
|
44 #endif // DYN_LINK
|
Chris@16
|
45
|
Chris@16
|
46 #ifndef BOOST_PROGRAM_OPTIONS_DECL
|
Chris@16
|
47 #define BOOST_PROGRAM_OPTIONS_DECL
|
Chris@16
|
48 #endif
|
Chris@16
|
49
|
Chris@16
|
50
|
Chris@16
|
51 #endif // PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
|
Chris@16
|
52
|