summaryrefslogtreecommitdiff
path: root/source3/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'source3/configure.in')
-rw-r--r--source3/configure.in16
1 files changed, 7 insertions, 9 deletions
diff --git a/source3/configure.in b/source3/configure.in
index ba9ae375fe..74c962652f 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -5268,25 +5268,23 @@ fi
#
# As a gating factor for large file support, in order to
# use <4GB files we must have the following minimal support
-# available.
-# long long, and a 64 bit off_t or off64_t.
-# If we don't have all of these then disable large
-# file support.
+# available: a 64 bit off_t
+# If we don't have all of these then fail the build
#
AC_MSG_CHECKING([if large file support can be enabled])
AC_TRY_COMPILE([
-#if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
+#if (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8))
#include <sys/types.h>
#else
__COMPILE_ERROR_
#endif
],
[int i],
-samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes,samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no)
-if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
- AC_DEFINE(HAVE_EXPLICIT_LARGEFILE_SUPPORT,1,[Whether large file support can be enabled])
+samba_cv_HAVE_LARGEFILE_SUPPORT=yes,samba_cv_HAVE_LARGEFILE_SUPPORT=no)
+if test x"$samba_cv_HAVE_LARGEFILE_SUPPORT" != x"yes"; then
+ AC_MSG_ERROR(["large file support support not available: sizeof(off_t) != 8"])
fi
-AC_MSG_RESULT([$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT])
+AC_MSG_RESULT([$samba_cv_HAVE_LARGEFILE_SUPPORT])
#################################################