|
|
@ -411,6 +411,10 @@ AX_GCC_FUNC_ATTRIBUTE([dllimport])
|
|
|
|
|
|
|
|
|
|
|
|
if test x$use_glibc_compat != xno; then
|
|
|
|
if test x$use_glibc_compat != xno; then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#glibc absorbed clock_gettime in 2.17. librt (its previous location) is safe to link
|
|
|
|
|
|
|
|
#in anyway for back-compat.
|
|
|
|
|
|
|
|
AC_CHECK_LIB([rt],[clock_gettime],, AC_MSG_ERROR(lib missing))
|
|
|
|
|
|
|
|
|
|
|
|
#__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)
|
|
|
@ -424,7 +428,8 @@ if test x$use_glibc_compat != xno; then
|
|
|
|
[ fdelt_type="long int"])
|
|
|
|
[ fdelt_type="long int"])
|
|
|
|
AC_MSG_RESULT($fdelt_type)
|
|
|
|
AC_MSG_RESULT($fdelt_type)
|
|
|
|
AC_DEFINE_UNQUOTED(FDELT_TYPE, $fdelt_type,[parameter and return value type for __fdelt_chk])
|
|
|
|
AC_DEFINE_UNQUOTED(FDELT_TYPE, $fdelt_type,[parameter and return value type for __fdelt_chk])
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
AC_SEARCH_LIBS([clock_gettime],[rt])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test x$TARGET_OS != xwindows; then
|
|
|
|
if test x$TARGET_OS != xwindows; then
|
|
|
@ -491,8 +496,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]],
|
|
|
|
[ AC_MSG_RESULT(no)]
|
|
|
|
[ AC_MSG_RESULT(no)]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
AC_SEARCH_LIBS([clock_gettime],[rt])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for visibility attribute])
|
|
|
|
AC_MSG_CHECKING([for visibility attribute])
|
|
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
|
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
|
|
|
int foo_def( void ) __attribute__((visibility("default")));
|
|
|
|
int foo_def( void ) __attribute__((visibility("default")));
|
|
|
|