diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-01-18 13:09:45 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-01-18 13:09:45 +0000 |
commit | 239bfe72fbfcc36d9cf9b1819416fe0bbacbd52c (patch) | |
tree | f49cfda687191acc098245818215bdd622c888ab /lib/make | |
parent | 149f6242b7df617822f36970dcf057530f036df2 (diff) |
New way of testing whether g77 uses libg2c
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1999 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r-- | lib/make/known-architectures/linux | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index 56209318..065d1d3a 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -63,23 +63,23 @@ else fi # find out if we have egcs or not, LIBS is either g2c or f2c - LINUX_F77= + LINUX_G77_USES_LIBG2C= if test -n "$F77" ; then - if g77 -v 2>&1 | grep 'egcs\|gcc version 2\.95' > /dev/null; then - LINUX_F77=egcs + if test -n "`g77 -v 2>&1 | grep g2c`" ; then + LINUX_G77_USES_LIBG2C=yes else - LINUX_F77=noegcs + LINUX_G77_USES_LIBG2C=no fi fi #Set the appropriate flags case "$LINUX_F90_COMP" in gnu77) - if test "$LINUX_F77" = "egcs" ; then + if test "$LINUX_G77_USES_LIBG2C" = "yes" ; then : ${LIBS="g2c m"} fi - if test "$LINUX_F77" = "noegcs" ; then + if test "$LINUX_G77_USES_LIBG2C" = "no" ; then : ${LIBS="f2c m"} fi : ${F77_DEBUG_FLAGS="-g"} @@ -88,10 +88,10 @@ else : ${F90_WARN_FLAGS="-Wall"} ;; pacific) - if test "$LINUX_F77" = "egcs" ; then + if test "$LINUX_G77_USES_LIBG2C" = "yes" ; then : ${LIBS="vast90 g2c m"} fi - if test "$LINUX_F77" = "noegcs" ; then + if test "$LINUX_G77_USES_LIBG2C" = "no" ; then : ${LIBS="vast90 f2c m"} fi : ${F77_DEBUG_FLAGS="-g"} |