aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2004-11-08 10:34:19 +0000
committertradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2004-11-08 10:34:19 +0000
commit065fb3c740b34ad80a35349f53d8044cb12b3973 (patch)
treeed7a8a3b99d5c4a5a791e9f61cdb541616e336b7
parent95a1a982583fe685ab638b08e567410f64101971 (diff)
Test the makefile variable HDF5_LFS_FLAGS to check for HDF5 LFS support.
This makefile variable is set by the Cactus HDF5 configure script. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@210 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r--src/make.code.defn6
-rw-r--r--src/make.configuration.deps6
2 files changed, 4 insertions, 8 deletions
diff --git a/src/make.code.defn b/src/make.code.defn
index 623786d..2f68abd 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -5,8 +5,6 @@
SRCS = Startup.c Output.c Write.c DumpGH.c RecoverGH.c
# Extend CFLAGS if HDF5 library was built with LFS support
-LFS_support := $(shell grep -s _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
-
-ifneq ($(strip $(LFS_support)),)
- CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+ifneq ($(strip $(HDF5_LFS_FLAGS)),)
+ CFLAGS += $(HDF5_LFS_FLAGS)
endif
diff --git a/src/make.configuration.deps b/src/make.configuration.deps
index 9fc3215..ce5e922 100644
--- a/src/make.configuration.deps
+++ b/src/make.configuration.deps
@@ -1,8 +1,6 @@
# Extend CFLAGS if HDF5 library was built with LFS support
-LFS_support := $(shell grep -s _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
-
-ifneq ($(strip $(LFS_support)),)
- CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+ifneq ($(strip $(HDF5_LFS_FLAGS)),)
+ CFLAGS += $(HDF5_LFS_FLAGS)
endif
# general linking rule