config.hpp 1.7 KB

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