File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 590590
591591if test x$use_boost = xyes; then
592592
593- BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB $BOOST_PROGRAM_OPTIONS_LIB $BOOST_THREAD_LIB"
593+ BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB $BOOST_PROGRAM_OPTIONS_LIB $BOOST_THREAD_LIB $BOOST_CHRONO_LIB "
594594
595595dnl Boost >= 1.50 uses sleep_for rather than the now-deprecated sleep, however
596596dnl it was broken from 1.50 to 1.52 when backed by nanosleep. Use sleep_for if
597597dnl a working version is available, else fall back to sleep. sleep was removed
598598dnl after 1.56.
599599dnl If neither is available, abort.
600- dnl If sleep_for is used, boost_chrono becomes a requirement.
601- if test x$ax_cv_boost_chrono = xyes; then
602600TEMP_LIBS="$LIBS"
603- LIBS="$BOOST_LIBS $BOOST_CHRONO_LIB $ LIBS"
601+ LIBS="$BOOST_LIBS $LIBS"
604602TEMP_CPPFLAGS="$CPPFLAGS"
605603CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
606604AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [
@@ -613,12 +611,11 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
613611 choke me
614612 #endif
615613 ] ] ) ] ,
616- [ boost_sleep=yes; BOOST_LIBS="$BOOST_LIBS $BOOST_CHRONO_LIB";
614+ [ boost_sleep=yes;
617615 AC_DEFINE ( HAVE_WORKING_BOOST_SLEEP_FOR , 1 , [ Define this symbol if boost sleep_for works] ) ] ,
618616 [ boost_sleep=no] )
619617LIBS="$TEMP_LIBS"
620618CPPFLAGS="$TEMP_CPPFLAGS"
621- fi
622619
623620if test x$boost_sleep != xyes; then
624621TEMP_LIBS="$LIBS"
You can’t perform that action at this time.
0 commit comments