configure boost unit test check: more quirks
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Aug 2011 10:20:26 +0000 (12:20 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Aug 2011 10:20:26 +0000 (12:20 +0200)
Define BOOST_AUTO_TEST_MAIN again. If not, it no longer works with
Boost 1.33. Also include auto_unit_test.hpp instead of unix_test.hpp,
which also, for some reason, makes a difference. Hopefully this now
work with Boost 1.33 through 1.47.

boost.m4

index d2dd704..b667071 100644 (file)
--- a/boost.m4
+++ b/boost.m4
@@ -99,8 +99,9 @@ int x = BOOST_VERSION;
                            LIBS="${saveLIBS} -l${l}"
                            AC_LINK_IFELSE([AC_LANG_SOURCE([[
 #define BOOST_TEST_DYN_LINK
+#define BOOST_AUTO_TEST_MAIN
 #define BOOST_TEST_MODULE configure
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 BOOST_AUTO_TEST_CASE( t ) 
 {
     BOOST_CHECK(1);