summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-10-31 20:19:03 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-10-31 20:19:03 (GMT)
commit284b19a05fc6fdfff21e4c60d6396a3e75ca211a (patch)
tree0e7414efe7c3b1d7d039ac69f8c806587e1128c5
parent350fa2af782285de92e947cb29ab0c207867aacb (diff)
downloadhdf5-284b19a05fc6fdfff21e4c60d6396a3e75ca211a.zip
hdf5-284b19a05fc6fdfff21e4c60d6396a3e75ca211a.tar.gz
hdf5-284b19a05fc6fdfff21e4c60d6396a3e75ca211a.tar.bz2
[svn-r2782] Purpose:
Feature Description: This will run the parallel test files for Fortran when --enable-parallel is specified Platforms tested: Modi4
-rw-r--r--fortran/Makefile.in2
-rwxr-xr-xfortran/configure22
-rw-r--r--fortran/configure.in9
3 files changed, 22 insertions, 11 deletions
diff --git a/fortran/Makefile.in b/fortran/Makefile.in
index 3cc04e9..2a79406 100644
--- a/fortran/Makefile.in
+++ b/fortran/Makefile.in
@@ -15,7 +15,7 @@ srcdir=@srcdir@
@COMMENCE@
# Subdirectories in build-order (not including `examples')
-SUBDIRS=src test
+SUBDIRS=src test @TESTPARALLEL@
##############################################################################
## T A R G E T S
diff --git a/fortran/configure b/fortran/configure
index 7b9f4f8..55991d4 100755
--- a/fortran/configure
+++ b/fortran/configure
@@ -2540,6 +2540,10 @@ fi
;;
esac
+if test -n "$PARALLEL"; then
+ TESTPARALLEL=testpar
+fi
+
ADD_PARALLEL_FILES=""
if test -n "$PARALLEL"; then
cat >> confdefs.h <<\EOF
@@ -2548,23 +2552,23 @@ EOF
echo $ac_n "checking prefix for running on one processor""... $ac_c" 1>&6
-echo "configure:2552: checking prefix for running on one processor" >&5
+echo "configure:2556: checking prefix for running on one processor" >&5
echo "$ac_t""$RUNSERIAL" 1>&6
echo $ac_n "checking prefix for running in parallel""... $ac_c" 1>&6
-echo "configure:2555: checking prefix for running in parallel" >&5
+echo "configure:2559: checking prefix for running in parallel" >&5
echo "$ac_t""$RUNPARALLEL" 1>&6
echo $ac_n "checking whether a simple MPI-IO program can be linked""... $ac_c" 1>&6
-echo "configure:2559: checking whether a simple MPI-IO program can be linked" >&5
+echo "configure:2563: checking whether a simple MPI-IO program can be linked" >&5
cat > conftest.$ac_ext <<EOF
-#line 2561 "configure"
+#line 2565 "configure"
#include "confdefs.h"
int main() {
MPI_Init();MPI_File_open();
; return 0; }
EOF
-if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
@@ -2592,7 +2596,7 @@ fi
echo $ac_n "checking make""... $ac_c" 1>&6
-echo "configure:2596: checking make" >&5
+echo "configure:2600: checking make" >&5
if test "`${MAKE-make} --version -f /dev/null 2>/dev/null |\
sed -n 1p|cut -c1-8`" = "GNU Make"; then
@@ -2609,7 +2613,7 @@ fi
if test -z "$DEPEND"; then
echo $ac_n "checking how to include a makefile""... $ac_c" 1>&6
-echo "configure:2613: checking how to include a makefile" >&5
+echo "configure:2617: checking how to include a makefile" >&5
cat >makeinc <<EOF
foo:
@@ -2792,7 +2796,7 @@ ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "config/depend1 config/depend2 config/depend3 config/depend4 \
config/dependN config/commence config/conclude Makefile \
src/H5fortran_types.f90 src/Makefile test/Makefile \
- examples/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+ testpar/Makefile examples/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
@@ -2912,7 +2916,7 @@ cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"config/depend1 config/depend2 config/depend3 config/depend4 \
config/dependN config/commence config/conclude Makefile \
src/H5fortran_types.f90 src/Makefile test/Makefile \
- examples/Makefile"}
+ testpar/Makefile examples/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
diff --git a/fortran/configure.in b/fortran/configure.in
index 8181693..c367674 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -429,6 +429,13 @@ case "X-$enable_parallel" in
esac
dnl ----------------------------------------------------------------------
+dnl Should the `testpar' directory participate in the build?
+dnl
+if test -n "$PARALLEL"; then
+ TESTPARALLEL=testpar
+fi
+
+dnl ----------------------------------------------------------------------
dnl Print some other parallel information and do some sanity checks.
dnl
ADD_PARALLEL_FILES=""
@@ -584,7 +591,7 @@ no_create=yes
AC_OUTPUT(config/depend1 config/depend2 config/depend3 config/depend4 \
config/dependN config/commence config/conclude Makefile \
src/H5fortran_types.f90 src/Makefile test/Makefile \
- examples/Makefile)
+ testpar/Makefile examples/Makefile)
no_create=$saved_no_create
dnl Then the stamp2 file for H5config.h