summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-04-23 22:02:46 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-04-23 22:02:46 (GMT)
commit6b4bfb60db8262d4321b729bab46f726157c02e7 (patch)
tree6810cb9a5a6966449e0ebcb7bc638f77866932cc /fortran
parentf1fca69547262adac2e841e76c4ac9df5f32b2f5 (diff)
downloadhdf5-6b4bfb60db8262d4321b729bab46f726157c02e7.zip
hdf5-6b4bfb60db8262d4321b729bab46f726157c02e7.tar.gz
hdf5-6b4bfb60db8262d4321b729bab46f726157c02e7.tar.bz2
[svn-r5239] Purpose:
Fix Description: Needed to test if the test programs LINK not just COMPILE... Solution: Changed the macro from COMPILE to LINK.
Diffstat (limited to 'fortran')
-rwxr-xr-xfortran/configure20
-rw-r--r--fortran/configure.in4
2 files changed, 12 insertions, 12 deletions
diff --git a/fortran/configure b/fortran/configure
index f4da7f4..69a35ca 100755
--- a/fortran/configure
+++ b/fortran/configure
@@ -8355,13 +8355,13 @@ MPI_Comm_c2f(); return 0;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -8381,7 +8381,7 @@ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
echo "$as_me:$LINENO: checking for MPI_Info_c2f and MPI_Info_f2c functions" >&5
echo $ECHO_N "checking for MPI_Info_c2f and MPI_Info_f2c functions... $ECHO_C" >&6
@@ -8405,13 +8405,13 @@ MPI_Info_c2f(); return 0;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -8431,7 +8431,7 @@ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ac_ext=f90
ac_compile='${F9X-f90} -c $FFLAGS conftest.$ac_ext 1>&5'
diff --git a/fortran/configure.in b/fortran/configure.in
index 62533ed..4ce66dc 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -549,7 +549,7 @@ if test -n "$PARALLEL"; then
dnl Change to the C language
AC_LANG_C
- AC_TRY_COMPILE([
+ AC_TRY_LINK([
#include <mpi.h>
],
[MPI_Comm_c2f(); return 0;],
@@ -560,7 +560,7 @@ if test -n "$PARALLEL"; then
)
AC_MSG_CHECKING([for MPI_Info_c2f and MPI_Info_f2c functions])
- AC_TRY_COMPILE([
+ AC_TRY_LINK([
#include <mpi.h>
],
[MPI_Info_c2f(); return 0;],