From: Neil Brown Date: Fri, 16 Mar 2007 04:49:23 +0000 (+1100) Subject: Use AC_SYS_LARGEFILE to enable largefile support X-Git-Tag: nfs-utils-1-1-0-rc1~67 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=6108478a99884f38c8afd1d1f2a0de1580113bd2;hp=da999b81b058bf66fa3dd0a9aed30b633e381998 Use AC_SYS_LARGEFILE to enable largefile support rather than explicit -D_FILE_OFFSET_BITS=64 Taken from Redhat -5 sources. --- 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