>>> "RW" == Ralf Wildenhues <[EMAIL PROTECTED]> writes:
[...] RW> OK to apply? Sure. Thank for implementing this. RW> 2006-10-14 Ralf Wildenhues <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>. [...] 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