From d0709b6aeec6b00e71011502fa311751fc138147 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 26 Jan 2010 07:57:21 +0000 Subject: [PATCH] configure.ac: Test for executability of GFORTRAN. 2010-01-20 Paolo Bonzini * configure.ac: Test for executability of GFORTRAN. * configure: Regenerate. From-SVN: r156232 --- libgomp/ChangeLog | 5 +++++ libgomp/configure | 6 +++++- libgomp/configure.ac | 6 +++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 4bd7efa6ecd..a20b4976aad 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2010-01-20 Paolo Bonzini + + * configure.ac: Test for executability of GFORTRAN. + * configure: Regenerate. + 2010-01-05 Rainer Orth * configure: Regenerate. diff --git a/libgomp/configure b/libgomp/configure index 02e2861fb5d..23625003a23 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -11459,7 +11459,11 @@ case `echo $GFORTRAN` in -* | no* ) FC=no ;; *) - FC="$GFORTRAN" ;; + if test -x "$GFORTRAN"; then + FC="$GFORTRAN" + else + FC=no + fi ;; esac ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' diff --git a/libgomp/configure.ac b/libgomp/configure.ac index 792c9f52068..96c958af6e7 100644 --- a/libgomp/configure.ac +++ b/libgomp/configure.ac @@ -146,7 +146,11 @@ case `echo $GFORTRAN` in -* | no* ) FC=no ;; *) - FC="$GFORTRAN" ;; + if test -x "$GFORTRAN"; then + FC="$GFORTRAN" + else + FC=no + fi ;; esac AC_PROG_FC(gfortran) FCFLAGS="$FCFLAGS -Wall"