From 0902392b509d0ab16c9f38f1a3eaf1ffdb57fc5b Mon Sep 17 00:00:00 2001
From: abd <abd@opencascade.com>
Date: Tue, 23 Sep 2008 06:49:02 +0000
Subject: [PATCH] Fix compilation problem on Calibre 5 configuration (f77 vs
 gfortran)

---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 685997223..61de2b9d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,7 +122,8 @@ AC_F77_LIBRARY_LDFLAGS
 AC_PROG_FC
 AC_FC_LIBRARY_LDFLAGS
 if test "X$FC" != "X" ; then
-   fortran_ok=yes
+    fortran_ok=yes
+    F77=$FC
 fi
 
 dnl AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])