|
|
@ -335,12 +335,12 @@ if test x$use_glibc_compat != xno; then |
|
|
|
#__fdelt_chk's params and return type have changed from long unsigned int to long int. |
|
|
|
#__fdelt_chk's params and return type have changed from long unsigned int to long int. |
|
|
|
# See which one is present here. |
|
|
|
# See which one is present here. |
|
|
|
AC_MSG_CHECKING(__fdelt_chk type) |
|
|
|
AC_MSG_CHECKING(__fdelt_chk type) |
|
|
|
AC_TRY_COMPILE([#ifdef _FORTIFY_SOURCE |
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef _FORTIFY_SOURCE |
|
|
|
#undef _FORTIFY_SOURCE |
|
|
|
#undef _FORTIFY_SOURCE |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#define _FORTIFY_SOURCE 2 |
|
|
|
#define _FORTIFY_SOURCE 2 |
|
|
|
#include <sys/select.h> |
|
|
|
#include <sys/select.h> |
|
|
|
extern "C" long unsigned int __fdelt_warn(long unsigned int);],[], |
|
|
|
extern "C" long unsigned int __fdelt_warn(long unsigned int);]],[[]])], |
|
|
|
[ fdelt_type="long unsigned int"], |
|
|
|
[ fdelt_type="long unsigned int"], |
|
|
|
[ fdelt_type="long int"]) |
|
|
|
[ fdelt_type="long int"]) |
|
|
|
AC_MSG_RESULT($fdelt_type) |
|
|
|
AC_MSG_RESULT($fdelt_type) |
|
|
@ -392,8 +392,8 @@ AC_CHECK_DECLS([le32toh, le64toh, htole32, htole64, be32toh, be64toh, htobe32, h |
|
|
|
|
|
|
|
|
|
|
|
dnl Check for MSG_NOSIGNAL |
|
|
|
dnl Check for MSG_NOSIGNAL |
|
|
|
AC_MSG_CHECKING(for MSG_NOSIGNAL) |
|
|
|
AC_MSG_CHECKING(for MSG_NOSIGNAL) |
|
|
|
AC_TRY_COMPILE([#include <sys/socket.h>], |
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], |
|
|
|
[ int f = MSG_NOSIGNAL; ], |
|
|
|
[[ int f = MSG_NOSIGNAL; ]])], |
|
|
|
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MSG_NOSIGNAL, 1,[Define this symbol if you have MSG_NOSIGNAL]) ], |
|
|
|
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MSG_NOSIGNAL, 1,[Define this symbol if you have MSG_NOSIGNAL]) ], |
|
|
|
[ AC_MSG_RESULT(no)] |
|
|
|
[ AC_MSG_RESULT(no)] |
|
|
|
) |
|
|
|
) |
|
|
@ -535,16 +535,16 @@ TEMP_LIBS="$LIBS" |
|
|
|
LIBS="$BOOST_LIBS $BOOST_CHRONO_LIB $LIBS" |
|
|
|
LIBS="$BOOST_LIBS $BOOST_CHRONO_LIB $LIBS" |
|
|
|
TEMP_CPPFLAGS="$CPPFLAGS" |
|
|
|
TEMP_CPPFLAGS="$CPPFLAGS" |
|
|
|
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
|
|
|
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
|
|
|
AC_TRY_LINK([ |
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
|
|
|
#include <boost/thread/thread.hpp> |
|
|
|
#include <boost/thread/thread.hpp> |
|
|
|
#include <boost/version.hpp> |
|
|
|
#include <boost/version.hpp> |
|
|
|
],[ |
|
|
|
]],[[ |
|
|
|
#if BOOST_VERSION >= 105000 && (!defined(BOOST_HAS_NANOSLEEP) || BOOST_VERSION >= 105200) |
|
|
|
#if BOOST_VERSION >= 105000 && (!defined(BOOST_HAS_NANOSLEEP) || BOOST_VERSION >= 105200) |
|
|
|
boost::this_thread::sleep_for(boost::chrono::milliseconds(0)); |
|
|
|
boost::this_thread::sleep_for(boost::chrono::milliseconds(0)); |
|
|
|
#else |
|
|
|
#else |
|
|
|
choke me |
|
|
|
choke me |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
], |
|
|
|
]])], |
|
|
|
[boost_sleep=yes; BOOST_LIBS="$BOOST_LIBS $BOOST_CHRONO_LIB"; |
|
|
|
[boost_sleep=yes; BOOST_LIBS="$BOOST_LIBS $BOOST_CHRONO_LIB"; |
|
|
|
AC_DEFINE(HAVE_WORKING_BOOST_SLEEP_FOR, 1, [Define this symbol if boost sleep_for works])], |
|
|
|
AC_DEFINE(HAVE_WORKING_BOOST_SLEEP_FOR, 1, [Define this symbol if boost sleep_for works])], |
|
|
|
[boost_sleep=no]) |
|
|
|
[boost_sleep=no]) |
|
|
@ -557,17 +557,17 @@ TEMP_LIBS="$LIBS" |
|
|
|
LIBS="$BOOST_LIBS $LIBS" |
|
|
|
LIBS="$BOOST_LIBS $LIBS" |
|
|
|
TEMP_CPPFLAGS="$CPPFLAGS" |
|
|
|
TEMP_CPPFLAGS="$CPPFLAGS" |
|
|
|
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
|
|
|
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" |
|
|
|
AC_TRY_LINK([ |
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
|
|
|
#include <boost/version.hpp> |
|
|
|
#include <boost/version.hpp> |
|
|
|
#include <boost/thread.hpp> |
|
|
|
#include <boost/thread.hpp> |
|
|
|
#include <boost/date_time/posix_time/posix_time_types.hpp> |
|
|
|
#include <boost/date_time/posix_time/posix_time_types.hpp> |
|
|
|
],[ |
|
|
|
]],[[ |
|
|
|
#if BOOST_VERSION <= 105600 |
|
|
|
#if BOOST_VERSION <= 105600 |
|
|
|
boost::this_thread::sleep(boost::posix_time::milliseconds(0)); |
|
|
|
boost::this_thread::sleep(boost::posix_time::milliseconds(0)); |
|
|
|
#else |
|
|
|
#else |
|
|
|
choke me |
|
|
|
choke me |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
], |
|
|
|
]])], |
|
|
|
[boost_sleep=yes; AC_DEFINE(HAVE_WORKING_BOOST_SLEEP, 1, [Define this symbol if boost sleep works])], |
|
|
|
[boost_sleep=yes; AC_DEFINE(HAVE_WORKING_BOOST_SLEEP, 1, [Define this symbol if boost sleep works])], |
|
|
|
[boost_sleep=no]) |
|
|
|
[boost_sleep=no]) |
|
|
|
LIBS="$TEMP_LIBS" |
|
|
|
LIBS="$TEMP_LIBS" |
|
|
|