diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-05-05 17:35:04 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-05-05 17:35:04 (GMT) |
commit | e984ec4948e97b5ed3bb4eff293570d1b9ec5e96 (patch) | |
tree | 4c47a024a95b2d0a7c94f73fd895a0f4c8ed94ad /src | |
parent | c8ec7a14bcebd842768b53df8b1e3843c752d04e (diff) | |
download | hdf5-e984ec4948e97b5ed3bb4eff293570d1b9ec5e96.zip hdf5-e984ec4948e97b5ed3bb4eff293570d1b9ec5e96.tar.gz hdf5-e984ec4948e97b5ed3bb4eff293570d1b9ec5e96.tar.bz2 |
[svn-r18710] Purpose:
Improve configure's large-file support control.
Description:
Modified configure to now attempt to add defines necessary for
supporting largefiles on all systems, instead of solely on linux. This
is in response to user requests to enable largefile support on Solaris
by default, as well as to give extra control on AIX (instead of just
jamming the necessary flag into the config files).
The old --enable-linux-lfs flag is being deprecated in favor of the
--enable-largefile flag (enabled by default), which can be used on all
platforms. --disable-linux-lfs can still be used to disable largefile
support (on linux) when the --enable-largefile flag is not specified.
On systems where large files cannot be supported in this manner,
configure will report as such.
Tested:
h5committest
AIX (NCSA's blue_print machine)
duty, liberty, and linew.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5config.h.in | 6 | ||||
-rw-r--r-- | src/Makefile.in | 2 | ||||
-rw-r--r-- | src/libhdf5.settings.in | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in index 0534b74..20db6ab 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -683,6 +683,12 @@ # endif #endif +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + /* Define to empty if `const' does not conform to ANSI C. */ #undef const diff --git a/src/Makefile.in b/src/Makefile.in index 43a0087..ff74368 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -270,12 +270,12 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTRUMENT = @INSTRUMENT@ INSTRUMENT_LIBRARY = @INSTRUMENT_LIBRARY@ +LARGEFILE = @LARGEFILE@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ -LINUX_LFS = @LINUX_LFS@ LIPO = @LIPO@ LL_PATH = @LL_PATH@ LN_S = @LN_S@ diff --git a/src/libhdf5.settings.in b/src/libhdf5.settings.in index 4f5b9b2..56637d7 100644 --- a/src/libhdf5.settings.in +++ b/src/libhdf5.settings.in @@ -65,5 +65,5 @@ Clear file buffers before write: @CLEARFILEBUF@ GPFS: @GPFS@ Strict File Format Checks: @STRICT_FORMAT_CHECKS@ Optimization Instrumentation: @INSTRUMENT@ - Linux Large File Support (LFS): @LINUX_LFS@ - H5dump Packed Bits: @PACKED_BITS@ + Large File Support (LFS): @LARGEFILE@ + H5dump Packed Bits: @PACKED_BITS@ |