link_test.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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)
  5. // See http://www.boost.org/libs/config for the most recent version.
  6. #define BOOST_CONFIG_SOURCE
  7. #include "link_test.hpp"
  8. #include <iostream>
  9. #include <iomanip>
  10. bool BOOST_CONFIG_DECL check_options(
  11. bool m_dyn_link,
  12. bool m_dyn_rtl,
  13. bool m_has_threads,
  14. bool m_debug,
  15. bool m_stlp_debug)
  16. {
  17. if(m_dyn_link != dyn_link)
  18. {
  19. std::cout << "Dynamic link options do not match" << std::endl;
  20. std::cout << "Application setting = " << m_dyn_link << " Library setting = " << dyn_link << std::endl;
  21. return false;
  22. }
  23. if(m_dyn_rtl != dyn_rtl)
  24. {
  25. std::cout << "Runtime library options do not match" << std::endl;
  26. std::cout << "Application setting = " << m_dyn_rtl << " Library setting = " << dyn_rtl << std::endl;
  27. return false;
  28. }
  29. if(m_has_threads != has_threads)
  30. {
  31. std::cout << "Threading options do not match" << std::endl;
  32. std::cout << "Application setting = " << m_has_threads << " Library setting = " << has_threads << std::endl;
  33. return false;
  34. }
  35. if(m_debug != debug)
  36. {
  37. std::cout << "Debug options do not match" << std::endl;
  38. std::cout << "Application setting = " << m_debug << " Library setting = " << debug << std::endl;
  39. return false;
  40. }
  41. if(m_stlp_debug != stl_debug)
  42. {
  43. std::cout << "STLPort debug options do not match" << std::endl;
  44. std::cout << "Application setting = " << m_stlp_debug << " Library setting = " << stl_debug << std::endl;
  45. return false;
  46. }
  47. return true;
  48. }