aboutsummaryrefslogtreecommitdiff
path: root/HDF5.sh
diff options
context:
space:
mode:
Diffstat (limited to 'HDF5.sh')
-rw-r--r--HDF5.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/HDF5.sh b/HDF5.sh
index b1f2462..8c31ddc 100644
--- a/HDF5.sh
+++ b/HDF5.sh
@@ -144,7 +144,12 @@ if [ -z "${HDF5_DIR}" -o "${HDF5_DIR}" = 'BUILD' ]; then
echo "HDF5: Configuring..."
cd ${NAME}
- ./configure --prefix=${HDF5_DIR} --with-zlib=${ZLIB_DIR} --enable-cxx=${HDF5_ENABLE_CXX} $(if [ -n "${FC}" ]; then echo '' "--enable-fortran=${HDF5_ENABLE_FORTRAN}"; fi)
+ # Do not build Fortran API if it has been disabled, or if
+ # there is no Fortran 90 compiler.
+ # Do not build C++ API if it has been disabled.
+ # Do not build shared library executables if we want to link
+ # statically.
+ ./configure --prefix=${HDF5_DIR} --with-zlib=${ZLIB_DIR} --enable-cxx=${HDF5_ENABLE_CXX} $(if [ -n "${FC}" ]; then echo '' "--enable-fortran=${HDF5_ENABLE_FORTRAN}"; fi) $(if echo '' "${LDFLAGS}" | grep -q '[-]static'; then echo '' '--disable-shared --enable-static-exec'; fi)
echo "HDF5: Building..."
${MAKE}