File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
# ===========================================================================
2
- # http ://www.gnu.org/software/autoconf-archive/ax_boost_chrono.html
2
+ # https ://www.gnu.org/software/autoconf-archive/ax_boost_chrono.html
3
3
# ===========================================================================
4
4
#
5
5
# SYNOPSIS
8
8
#
9
9
# DESCRIPTION
10
10
#
11
- # Test for System library from the Boost C++ libraries. The macro requires
11
+ # Test for Chrono library from the Boost C++ libraries. The macro requires
12
12
# a preceding call to AX_BOOST_BASE. Further documentation is available at
13
13
# <http://randspringer.de/boost/index.html>.
14
14
#
29
29
# and this notice are preserved. This file is offered as-is, without any
30
30
# warranty.
31
31
32
- # serial 1
32
+ # serial 4
33
33
34
34
AC_DEFUN ( [ AX_BOOST_CHRONO ] ,
35
35
[
@@ -68,7 +68,7 @@ AC_DEFUN([AX_BOOST_CHRONO],
68
68
CXXFLAGS_SAVE=$CXXFLAGS
69
69
70
70
AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ @%:@ include <boost/chrono.hpp>] ] ,
71
- [ [ boost::chrono::system_clock::time_point time;] ] ) ] ,
71
+ [ [ boost::chrono::system_clock::time_point* time = new boost::chrono::system_clock::time_point; delete time;] ] ) ] ,
72
72
ax_cv_boost_chrono=yes , ax_cv_boost_chrono=no )
73
73
CXXFLAGS=$CXXFLAGS_SAVE
74
74
AC_LANG_POP ( [ C++] )
Original file line number Diff line number Diff line change 1
- # ================================================================================
2
- # http ://www.gnu.org/software/autoconf-archive/ax_boost_unit_test_framework.html
3
- # ================================================================================
1
+ # =================================================================================
2
+ # https ://www.gnu.org/software/autoconf-archive/ax_boost_unit_test_framework.html
3
+ # =================================================================================
4
4
#
5
5
# SYNOPSIS
6
6
#
29
29
# and this notice are preserved. This file is offered as-is, without any
30
30
# warranty.
31
31
32
- # serial 19
32
+ # serial 21
33
33
34
34
AC_DEFUN ( [ AX_BOOST_UNIT_TEST_FRAMEWORK ] ,
35
35
[
@@ -66,7 +66,7 @@ AC_DEFUN([AX_BOOST_UNIT_TEST_FRAMEWORK],
66
66
[ AC_LANG_PUSH ( [ C++] )
67
67
AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ @%:@ include <boost/test/unit_test.hpp>] ] ,
68
68
[ [ using boost::unit_test::test_suite;
69
- test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" ); return 0; ] ] ) ] ,
69
+ test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" ); if (test == NULL) { return 1; } else { return 0; } ] ] ) ] ,
70
70
ax_cv_boost_unit_test_framework=yes , ax_cv_boost_unit_test_framework=no )
71
71
AC_LANG_POP ( [ C++] )
72
72
] )
You can’t perform that action at this time.
0 commit comments