This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR libgomp/41418: fix libgomp without fortran enabled


* Bernhard Reutner-Fischer wrote on Sat, Oct 17, 2009 at 07:00:46PM CEST:
> On Sat, Oct 17, 2009 at 08:04:46AM +0200, Ralf Wildenhues wrote:
> >Ping <http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00681.html>

> >> --- a/libgomp/configure.ac
> >> +++ b/libgomp/configure.ac
> >> @@ -142,7 +142,12 @@ AM_MAINTAINER_MODE
> >>  # We need gfortran to compile parts of the library
> >>  # We can't use AC_PROG_FC because it expects a fully working gfortran.
> >>  #AC_PROG_FC(gfortran)
> >> -FC="$GFORTRAN"
> >> +case `echo $GFORTRAN` in
> 
> despite Jakub's ok, why spawn a subshell here?
> 
> case "x$GFORTRAN" in
> x-* | xno* ) FC=no ;;
> *) FC="$GFORTRAN ;;
> esac
> 
> just curious..

This does not get rid of leading spaces in $GFORTRAN.  Neither does
  case $GFORTRAN in

BTW.  One could do
  set x $GFORTRAN
  shift

oh well.

Cheers,
Ralf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]