|
|
|
@ -5014,6 +5014,40 @@ fi
@@ -5014,6 +5014,40 @@ fi
|
|
|
|
|
CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS" |
|
|
|
|
LDFLAGS="$BOOST_LDFLAGS $LDFLAGS" |
|
|
|
|
|
|
|
|
|
# add workaround for problematic boost version |
|
|
|
|
ac_ext=cpp |
|
|
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
|
|
|
|
|
|
|
# taken from ax_boost_base.m4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
#include <boost/version.hpp> |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < (106000))])); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
QBT_ADD_DEFINES="$QBT_ADD_DEFINES BOOST_NO_CXX11_RVALUE_REFERENCES" |
|
|
|
|
fi |
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
|
|
ac_ext=cpp |
|
|
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-boost-system was given. |
|
|
|
|