From 2122aa973ed2c829caee5b010a60ad01922a3650 Mon Sep 17 00:00:00 2001
From: Paolo Bonzini <bonzini@gnu.org>
Date: Tue, 26 Jan 2010 21:32:28 +0000
Subject: [PATCH] configure.ac: Test for executability of _the first word_ of
 GFORTRAN.

2010-01-26  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Test for executability of _the first word_ of GFORTRAN.
	* configure: Regenerate.

From-SVN: r156264
---
 libgomp/ChangeLog    | 5 +++++
 libgomp/configure    | 3 ++-
 libgomp/configure.ac | 3 ++-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 4b20087ff71f..eab2079b699f 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
+
+	* configure.ac: Test for executability of _the first word_ of GFORTRAN.
+	* configure: Regenerate.
+
 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
 
 	PR fortran/42866
diff --git a/libgomp/configure b/libgomp/configure
index 23625003a233..d2018b8c1948 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -11459,7 +11459,8 @@ case `echo $GFORTRAN` in
   -* | no* )
     FC=no ;;
   *)
-    if test -x "$GFORTRAN"; then
+    set dummy $GFORTRAN; ac_word=$2
+    if test -x "$ac_word"; then
       FC="$GFORTRAN"
     else
       FC=no
diff --git a/libgomp/configure.ac b/libgomp/configure.ac
index 96c958af6e75..fefffe9652ea 100644
--- a/libgomp/configure.ac
+++ b/libgomp/configure.ac
@@ -146,7 +146,8 @@ case `echo $GFORTRAN` in
   -* | no* )
     FC=no ;;
   *)
-    if test -x "$GFORTRAN"; then
+    set dummy $GFORTRAN; ac_word=$2
+    if test -x "$ac_word"; then
       FC="$GFORTRAN"
     else
       FC=no
-- 
GitLab