From: Adam Dickmeiss Date: Wed, 17 Aug 2011 10:20:26 +0000 (+0200) Subject: configure boost unit test check: more quirks X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=9d331ef6b322bc17ffcd4c04728cc39b0b317e13;p=m4-moved-to-github.git configure boost unit test check: more quirks 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. --- diff --git a/boost.m4 b/boost.m4 index d2dd704..b667071 100644 --- 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 +#include BOOST_AUTO_TEST_CASE( t ) { BOOST_CHECK(1);