[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] Properly detecting large file support

From: Neal H Walfield
Subject: [patch] Properly detecting large file support
Date: Wed, 15 Aug 2001 03:27:25 +0200
User-agent: Mutt/1.3.18i

This patch properly detects large file support.  Before, GNU/Parted only
checked to see if large file support was on.  This now looks to see if
large file support is available.

This has been test on both GNU/Hurd and GNU/Linux.

2001-08-15  Marcus Brinkmann  <address@hidden>

        * configure.in: Correctly detect large file support using
        AC_SYS_LARGEFILE, not getconf LFS_CFLAGS.

--- configure.in.old    Wed Aug 15 01:25:30 2001
+++ configure.in        Wed Aug 15 01:28:05 2001
@@ -94,10 +94,12 @@
-dnl `getconf LFS_CFLAGS` gets the flags to tell the compiler to make off_t
-dnl big (LFS == large file support).
+dnl This test must come as early as possible after the compiler configuration
+dnl tests, because the choice of the file model can (in principle) affect
+dnl whether functions and headers are available, whether they work, etc.
+CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
 AC_CHECK_SIZEOF(off_t, 64, [
        #include <stdio.h>
        #include <sys/types.h>

Attachment: pgpmh5NSjFZ26.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]