tsuna / boost.m4

M4 macros to use Boost with the autotools
http://wiki.github.com/tsuna/boost.m4/
GNU General Public License v3.0
87 stars 52 forks source link

Add Boost.Atomic #94

Closed DrMcCoy closed 6 years ago

DrMcCoy commented 7 years ago

Part of the changes I did on boost.m4 in https://github.com/xoreos/xoreos but never got around creating pull requests for. Sorry.

This adds a simple test for Boost.Atomic. However, due to the way the Boost library (or at least several versions of them) don't include all necessary headers, and those need to be included before the boost header, the CXX-PROLOGUE parameter handling in BOOST_FIND_LIB is changed a bit.

pieterlexis commented 6 years ago

after merge note: this breaks for unit test:

|....
| /* end confdefs.h.  */
| using boost::unit_test::test_suite;
|                test_suite* init_unit_test_suite(int argc, char ** argv)
|                { return NULL; }
| #include <boost/test/unit_test.hpp>
| int
| main ()
| {
| BOOST_CHECK(2 == 2);
|   ;
|   return 0;
| }
configure:19170: error: cannot compile a test that uses Boost unit_test_framework

Looking now