summaryrefslogtreecommitdiffstats
path: root/bin/buildhdf5
diff options
context:
space:
mode:
Diffstat (limited to 'bin/buildhdf5')
-rwxr-xr-xbin/buildhdf521
1 files changed, 9 insertions, 12 deletions
diff --git a/bin/buildhdf5 b/bin/buildhdf5
index ac73df0..8ed4696 100755
--- a/bin/buildhdf5
+++ b/bin/buildhdf5
@@ -67,6 +67,7 @@ TIMESTAMP()
QUIT()
{
+ # print the closing time
TIMESTAMP
}
@@ -234,7 +235,7 @@ trap QUIT 0
#
MAKE=${MAKE:-'gmake'}
export MAKE
-CONFIGURE="CONFIG"
+CONFIG_CMD="CONFIG"
CONFIG_OP= # configure options
CONFIG_ONLY=no # default is configure and build
NOEXEC= # default to execute commands
@@ -250,6 +251,7 @@ while [ $# -gt 0 ]; do
;;
-szlib)
LOCATE_SZLIB
+ CONFIG_OP="$CONFIG_OP $WITH_SZLIB"
;;
-help)
USAGE
@@ -263,16 +265,16 @@ while [ $# -gt 0 ]; do
SRCDIRLIST="$1"
;;
-cxx)
- CONFIG_CXX="--enable-cxx"
+ CONFIG_OP="$CONFIG_OP --enable-cxx"
;;
-fortran)
- CONFIG_FORTRAN="--enable-fortran"
+ CONFIG_OP="$CONFIG_OP --enable-fortran"
;;
-pp)
- CONFIG_PARALLEL="--enable-parallel"
+ CONFIG_OP="$CONFIG_OP --enable-parallel"
;;
- *) # Quit parsing
- break
+ *) # pass it as a configure option
+ CONFIG_OP="$CONFIG_OP $1"
;;
esac
shift
@@ -296,14 +298,10 @@ if [ x-$SRCDIR = x-dummy ]; then
exit 1
fi
-# Setup Configure options
-CONFIG_OP="$WITH_SZLIB $CONFIG_FORTRAN $CONFIG_CXX $CONFIG_PARALLEL"
-
# Configure
# no configure if already done.
if [ ! -f config.status ]; then
- CONFIGURE="$CONFIGURE $CONFIG_OP $*"
- STEP "Configure HDF5..." "$CONFIGURE" "#config"
+ STEP "Configure HDF5..." "$CONFIG_CMD $CONFIG_OP" "#config"
else
STEP "Configure Skipped" "echo Configure Skipped" "#config"
fi
@@ -324,4 +322,3 @@ STEP "Testing HDF5 parallel parts..." "$MAKE check-p" "#test-p"
# all done
echo "No Errors encountered"
-TIMESTAMP