PR libgomp/41418: fix libgomp without fortran enabled

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Sat Oct 17 06:04:00 GMT 2009


Ping <http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00681.html>

* Ralf Wildenhues wrote on Sun, Oct 11, 2009 at 01:09:06PM CEST:
> OK for trunk?  DaveK tested this on Cygwin without
> --enable-languages=fortran, see
> <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41418#c19>
> and I tested it on i686-pc-linux-gnu, with fortran enabled.
[...]

> Fix libgomp without --enable-languages=fortran.
> 
> libgomp/ChangeLog:
> 2009-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
> 
> 	PR libgomp/41418
> 	* configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
> 	or a hyphen (happens with fortran language disabled).
> 	* configure: Regenerate.

> --- 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
> +  -* | no* )
> +    FC=no ;;
> +  *)
> +    FC="$GFORTRAN" ;;
> +esac
>  AC_PROG_FC(gfortran)
>  FCFLAGS="$FCFLAGS -Wall"



More information about the Fortran mailing list