From: Felix Janda Date: Mon, 31 Oct 2016 23:40:40 +0000 (+1100) Subject: configure: error out when LFS does not work X-Git-Tag: v4.9.0-rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebe750ed747cbc59a5675193cdcbc3459ebda107;p=thirdparty%2Fxfsprogs-dev.git configure: error out when LFS does not work Signed-off-by: Felix Janda Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/configure.ac b/configure.ac index f6a3b4bef..b88ab7f16 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,7 @@ AC_MULTILIB($enable_lib64) AC_RT($enable_librt) AC_SYS_LARGEFILE +AC_NEED_LFS AC_PACKAGE_NEED_UUID_H AC_PACKAGE_NEED_UUIDCOMPARE diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index 6de665931..13394b683 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -266,6 +266,22 @@ AC_DEFUN([AC_HAVE_MREMAP], AC_SUBST(have_mremap) ]) +# +# Check if transparent LFS is enabled +# +AC_DEFUN([AC_NEED_LFS], + [ AC_MSG_CHECKING([whether large file support works]) + AC_TRY_COMPILE([ +#include + ], [ + int i[sizeof(off_t)-8]; + ], AC_MSG_RESULT(yes), + [AC_MSG_RESULT(no) + echo + echo 'FATAL ERROR: C library does not support transparent LFS.' + exit 1]) + ]) + # # Check if we need to override the system struct fsxattr with # the internal definition. This /only/ happens if the system