1 // (C) Copyright John Maddock 2003.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/config for the most recent version.
8 #ifndef BOOST_LINK_TEST_HPP
9 #define BOOST_LINK_TEST_HPP
11 #include <boost/config.hpp>
14 // set up code to determine our compilers options,
15 // we will check that these are the same in the
19 static const bool dyn_link = true;
21 static const bool dyn_link = false;
23 #if defined(_DLL) || defined(_RTLDLL)
24 static const bool dyn_rtl = true;
26 static const bool dyn_rtl = false;
28 #if defined(BOOST_HAS_THREADS)
29 static const bool has_threads = true;
31 static const bool has_threads = false;
34 static const bool debug = true;
36 static const bool debug = false;
38 #if defined(__STL_DEBUG) || defined(_STLP_DEBUG)
39 static const bool stl_debug = true;
41 static const bool stl_debug = false;
45 // set up import and export options:
47 #if defined(BOOST_DYN_LINK)
48 # ifdef BOOST_CONFIG_SOURCE
49 # define BOOST_CONFIG_DECL BOOST_SYMBOL_EXPORT
51 # define BOOST_CONFIG_DECL BOOST_SYMBOL_IMPORT
54 #ifndef BOOST_CONFIG_DECL
55 # define BOOST_CONFIG_DECL
59 // define our entry point:
61 bool BOOST_CONFIG_DECL check_options(
69 // set up automatic linking:
71 #if !defined(BOOST_CONFIG_SOURCE) && !defined(BOOST_CONFIG_NO_LIB)
72 # define BOOST_LIB_NAME link_test
73 # include <boost/config/auto_link.hpp>
76 #ifndef BOOST_NO_CXX11_EXTERN_TEMPLATE
96 #ifdef BOOST_CONFIG_SOURCE
97 template BOOST_SYMBOL_EXPORT int test_free_proc<int>(int);
98 template BOOST_SYMBOL_EXPORT int tester<int>::test();
100 extern template BOOST_SYMBOL_IMPORT int test_free_proc<int>(int);
101 extern template BOOST_SYMBOL_IMPORT int tester<int>::test();
104 #endif // BOOST_NO_CXX11_EXTERN_TEMPLATE
106 #endif // BOOST_LINK_TEST_HPP