I removed the autoconf list from the followups. Dependency tracking
doesn't involve autoconf.
Martin> First of all, an automake-generated makefile refuses to work
Martin> if there is no C source file specified in Makefile.am (only
Martin> Fortran source files).
Could you submit a bug report to the automake Gnats? Mark it
"critical/high". We need to fix this before the next release.
There should be a link to Gnats from http://sourceware.cygnus.com/automake/
Thanks.
Martin> Unfortunately, that approach doesn't work for Fortran INCLUDE
Martin> statements, and I have not yet found a tool that parses such
Martin> statements like e.g. makedepend parses #include's.
I think the goal here should be to have the Fortran compiler generate
the include information -- it can list both the files included via
#include and those included via INCLUDE. This way you get complete
dependency tracking as a side effect of compilation.
Writing a patch to g77 to do this shouldn't be all that hard.
Martin> - whether such a thing like Fortran dependency tracking is
Martin> desirable at all in automake/autoconf,
Yes.
Martin> - if yes, which solution we should go for ?
When possible, fix the compilers. When not possible, maybe living
with less than perfect information is the only approach.
Martin> P.S. This problem seems to be trivial compared to providing
Martin> dependency tracking support for Fortran 90 modules. But
Martin> that's a different issue...
This should also be solvable if the compiler is intelligent.
Tom