Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 611 Lines • ▼ Show 20 Lines | |||||
fi | fi | ||||
dnl Check for endianness | dnl Check for endianness | ||||
AC_C_BIGENDIAN | AC_C_BIGENDIAN | ||||
dnl Check for pthread compile/link requirements | dnl Check for pthread compile/link requirements | ||||
AX_PTHREAD | AX_PTHREAD | ||||
# Check for off_t vs off64_t before AC_SYS_LARGEFILE gets called as it will | # Check for Large File Supprot before AC_SYS_LARGEFILE gets called as it will | ||||
# change the output | # change the output. | ||||
AC_MSG_CHECKING(for if type off_t equals off64_t) | AC_MSG_CHECKING(for if LFS is enabled) | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> | ||||
#include <type_traits>]], | #include <type_traits>]], | ||||
[[ static_assert(std::is_same<off_t, off64_t>::value, ""); ]])], | [[ static_assert(sizeof(off_t) == 8, ""); ]])], | ||||
[ AC_MSG_RESULT(yes); need_wrap_fcntl=no; AC_DEFINE(OFF_T_EQUALS_OFF64_T, 1,[Define this symbol if type off_t equals off64_t]) ], | [ AC_MSG_RESULT(yes); need_wrap_fcntl=no; AC_DEFINE(HAVE_LARGE_FILE_SUPPORT, 1,[Define this symbol if LFS is enabled]) ], | ||||
[ AC_MSG_RESULT(no); need_wrap_fcntl=yes] | [ AC_MSG_RESULT(no); need_wrap_fcntl=yes] | ||||
) | ) | ||||
# The following macro will add the necessary defines to bitcoin-config.h, but | # The following macro will add the necessary defines to bitcoin-config.h, but | ||||
# they also need to be passed down to any subprojects. Pull the results out of | # they also need to be passed down to any subprojects. Pull the results out of | ||||
# the cache and add them to CPPFLAGS. | # the cache and add them to CPPFLAGS. | ||||
AC_SYS_LARGEFILE | AC_SYS_LARGEFILE | ||||
# detect POSIX or GNU variant of strerror_r | # detect POSIX or GNU variant of strerror_r | ||||
▲ Show 20 Lines • Show All 717 Lines • Show Last 20 Lines |