automake-patches
[Top][All Lists]
Advanced

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

Re: Use AC_FC_SRCEXT in Automake


From: Alexandre Duret-Lutz
Subject: Re: Use AC_FC_SRCEXT in Automake
Date: Sun, 15 Oct 2006 22:04:33 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

>>> "RW" == Ralf Wildenhues <address@hidden> writes:

[...]

 RW> OK to apply?

Sure.  Thank for implementing this.

 RW> 2006-10-14  Ralf Wildenhues  <address@hidden>

 RW> * lib/am/depend2.am (%SOURCEFLAG%): New substitution, goes
 RW> right before the expanded source file name.
 RW> * automake.in (%sourceflags): New global: per-extension flag
 RW> to denote that the next compiler argument is the source file.
 RW> (scan_autoconf_traces): Trace AC_FC_SRCEXT; initialize
 RW> %sourceflags accordingly.
 RW> (handle_single_transform): Store source file extension in...
 RW> (%lang_specific_files): ...this and...
 RW> (handle_languages): ...adjust here.  Pass flag in SOURCEFLAG.
 RW> * doc/automake.texi (Optional): Add AC_FC_SRCEXT.
 RW> (Fortran 9x Support): Update.
 RW> * tests/fort2.test: New test.
 RW> * tests/Makefile.am: Adjust.
 RW> * NEWS: Update.
 RW> Suggested by Steven G. Johnson <address@hidden>.

[...]

 RW> +      elsif ($macro eq 'AC_FC_SRCEXT')
 RW> +        {
 RW> +    my $suffix = $args[1];

Maybe add here
  # These flags are used as %SOURCEFLAG% in depend2.am, where the trailing
  # space is important.
It took me some time to figure this out.

 RW> +    $sourceflags{'.' . $suffix} = '$(FCFLAGS_' . $suffix . ') '
 RW> +      if ($suffix eq 'f90' || $suffix eq 'f95');
 RW> +  }

[...]

-- 
Alexandre Duret-Lutz

Shared books are happy books.     http://www.bookcrossing.com/friend/gadl





reply via email to

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