From 6108478a99884f38c8afd1d1f2a0de1580113bd2 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 16 Mar 2007 15:49:23 +1100 Subject: [PATCH] Use AC_SYS_LARGEFILE to enable largefile support rather than explicit -D_FILE_OFFSET_BITS=64 Taken from Redhat -5 sources. --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 1a1ce1a..1cac767 100644 --- a/configure.in +++ b/configure.in @@ -127,6 +127,9 @@ AC_ARG_ENABLE(mount, # Check whether user wants TCP wrappers support AC_TCP_WRAPPERS +# Arrange for large-file support +AC_SYS_LARGEFILE + AC_CONFIG_SRCDIR([support/include/config.h.in]) AC_CONFIG_HEADERS([support/include/config.h]) @@ -312,7 +315,7 @@ esac my_am_cflags="-Wall $ARCHFLAGS -pipe" -AC_SUBST([AM_CPPFLAGS], ["-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"]) +AC_SUBST([AM_CPPFLAGS], ["-I\${top_srcdir}/support/include"]) AC_SUBST([AM_CFLAGS], ["$my_am_cflags"]) # Make sure that $ACLOCAL_FLAGS are used during a rebuild -- 2.39.2