summaryrefslogtreecommitdiffstats
path: root/fortran/configure
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-04-24 21:08:43 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-04-24 21:08:43 (GMT)
commit0c936cb87645f03b88801d42f7080445101b22e0 (patch)
tree32886da9bdbb378496ca23f077aaee2b2d6caa13 /fortran/configure
parent57c41e622b4123f983b6a86c982f9bbf7bdb3373 (diff)
downloadhdf5-0c936cb87645f03b88801d42f7080445101b22e0.zip
hdf5-0c936cb87645f03b88801d42f7080445101b22e0.tar.gz
hdf5-0c936cb87645f03b88801d42f7080445101b22e0.tar.bz2
[svn-r6748] Purpose:
Bug Fix Description: In parallel mode, the MPI libraries were being added to the LDFLAGS variable instead of the LIBS variable. This was playing havoc with the h5fc script (the order you specify libraries is important to some compilers). Solution: The AC_CHECK_FLIB macro was placing these libraries into the LDFLAGS instead of LIBS, which is where they should have gone. Replaced LDFLAGS with LIBS in that case. Platforms tested: Modi4 (Parallel & Fortran) Arabica (Fortran) Verbena (Fortran, no C++ since it's not affected) Ran "make check-install" after installation... Misc. update:
Diffstat (limited to 'fortran/configure')
-rwxr-xr-xfortran/configure12
1 files changed, 6 insertions, 6 deletions
diff --git a/fortran/configure b/fortran/configure
index 5f4949a..929ee46 100755
--- a/fortran/configure
+++ b/fortran/configure
@@ -9270,8 +9270,8 @@ cat >conftest.$ac_ext <<EOF
EOF
if test -n "mpi"; then
- saved_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -lmpi"
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS -lmpi"
fi
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
@@ -9286,7 +9286,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
:
else
- LDFLAGS="$saved_LDFLAGS"
+ LIBS="$saved_LIBS"
PARALLEL=no
fi
cd ..
@@ -9352,8 +9352,8 @@ cat >conftest.$ac_ext <<EOF
EOF
if test -n "mpio"; then
- saved_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -lmpio"
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS -lmpio"
fi
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
@@ -9368,7 +9368,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
:
else
- LDFLAGS="$saved_LDFLAGS"
+ LIBS="$saved_LIBS"
PARALLEL=no
fi
cd ..