From 826250abd07946231f63f0f0331d4c8327794c1a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 20 Feb 2003 16:16:05 +0000 Subject: [PATCH] Newer g77 don't write "GNU F77" any more. git-svn-id: https://svn.dealii.org/trunk@7204 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 3 ++- deal.II/configure | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index b8997ce327..42d5b20948 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -632,7 +632,8 @@ AC_DEFUN(DEAL_II_DETERMINE_F77_BRAND, dnl [ if test "x$F77" != "x" ; then F77_VERSION_STRING="`($F77 -v 2>&1)`" - if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" ; then + if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" -o \ + -n "`echo $F77_VERSION_STRING | grep \"gcc version\"`" ; then dnl Yes, this is a GNU g77 version. find out the right version G77_VERSION_STRING="`($F77 -v 2>&1) | grep \"gcc version\"`" case "$G77_VERSION_STRING" in diff --git a/deal.II/configure b/deal.II/configure index 7887e57711..562f25134e 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -6490,7 +6490,8 @@ if test "x$F77" != "x" ; then if test "x$F77" != "x" ; then F77_VERSION_STRING="`($F77 -v 2>&1)`" - if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" ; then + if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" -o \ + -n "`echo $F77_VERSION_STRING | grep \"gcc version\"`" ; then G77_VERSION_STRING="`($F77 -v 2>&1) | grep \"gcc version\"`" case "$G77_VERSION_STRING" in *"egcs-1.1"*) -- 2.39.5