autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New macro AC_FC_IMPLICIT_NONE to disable Fortran implicit int.


From: Ralf Wildenhues
Subject: Re: New macro AC_FC_IMPLICIT_NONE to disable Fortran implicit int.
Date: Sat, 5 Mar 2011 12:36:03 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

* Ralf Wildenhues wrote on Sat, Mar 05, 2011 at 09:37:55AM CET:
>     New macros AC_{F77,FC}_IMPLICIT_NONE to disable Fortran implicit int.
>     
>     * lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): New internal
>     macro.
>     (AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE): New macros.
>     * doc/autoconf.texi (Fortran Compiler): Document them.
>     * NEWS: Update.

> --- a/doc/autoconf.texi
> +++ b/doc/autoconf.texi
> @@ -8259,6 +8259,19 @@ Fortran Compiler
>  message.
>  @end defmac
>  
> address@hidden AC_F77_IMPLICIT_NONE (@ovar{action-if-success}, @
> +  @dvar{action-if-failure, AC_MSG_FAILURE})
> address@hidden AC_FC_IMPLICIT_NONE (@ovar{action-if-success}, @
> +  @dvar{action-if-failure, AC_MSG_FAILURE})
> address@hidden
> address@hidden
> +
> +Try to disallow implicit declarations in the Fortran compiler.  If
> +successful, the @var{action-if-success} is called and any needed flags
> +are added to @code{FCFLAGS}.  Otherwise, @var{action-if-failure} is
> +called, which defaults to failing with an error message.
> address@hidden defmac

Gah, I managed to both post an outdated diff which lacked the cache
variable documentation, and to forget mentioning FFLAGS.  Here's how
the text looks now, after fixing it up:

  Try to disallow implicit declarations in the Fortran compiler.  If
  successful, @var{action-if-success} is called and any needed flags
  are added to @code{FFLAGS} or @code{FCFLAGS}, respectively.  Otherwise,
  @var{action-if-failure} is called, which defaults to failing with an error
  message.

  The result of these macros are cached in the
  @code{ac_cv_f77_implicit_none} and @code{ac_cv_fc_implicit_none}
  variables, respectively.

Sorry about that,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]