summaryrefslogtreecommitdiffstats
path: root/fortran/configure.in
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-09-09 21:51:35 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-09-09 21:51:35 (GMT)
commite5d5634456062b7a55700534fe7985d3ec3bd4fc (patch)
tree028004c84e3ee7c96342cf3af3fc55432c16a78c /fortran/configure.in
parent85ebef607feb03b8e33deca2dce09a378a67963b (diff)
downloadhdf5-e5d5634456062b7a55700534fe7985d3ec3bd4fc.zip
hdf5-e5d5634456062b7a55700534fe7985d3ec3bd4fc.tar.gz
hdf5-e5d5634456062b7a55700534fe7985d3ec3bd4fc.tar.bz2
[svn-r5916] Purpose:
Bug Fix Description: Sometimes, we needed to pick up a header file in the current build directory. Solution: Added a test to see if the compiler can handle the "-I." option so that it will get that header file. Platforms tested: Modi4
Diffstat (limited to 'fortran/configure.in')
-rw-r--r--fortran/configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/fortran/configure.in b/fortran/configure.in
index e894841..8385b03 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -407,6 +407,18 @@ AC_CACHE_SAVE
dnl Change back to the Fortran 90 language
AC_LANG_FORTRAN9X
+dnl See if the compiler will support the "-I." option
+FFLAGS_saved=$FFLAGS
+FFLAGS="$FFLAGS -I."
+
+AC_MSG_CHECKING(if compiler supports -I. option)
+AC_TRY_FCOMPILE([
+ program conftest
+ end
+], AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+ FFLAGS="$FFLAGS_saved")
+
dnl ----------------------------------------------------------------------
dnl The following variables are used to distinguish between building a
dnl serial and parallel library.