Peter Daniel Kirchner wrote:
>
> Mystery solved!
>
> Those using non-"dist" sources (e.g. from cvs) and not using BOTH gcc and GNU
> make need to run
> automake --include-deps
> instead of
> automake
>
> Per http://www.fsf.org/manual/automake/html_mono/automake.html#SEC29
> Automake's automatic dependency tracking currently requires the use of both
> GNU make and gcc. make
> dist runs automake --include-deps to remove the Gnu make + gcc requirement
> for the distribution.
>
> We could also add "AUTOMAKE_OPTIONS = no-dependencies " to the Makefile.am
> files, but that would
> preclude those who happen to be using gcc and Gnu make from having
> dynamically updated dependencies.
>
> whew!
> pete
>
Jari's suggestion of using automake -a -i
worked for me except that I had to edit
one file (DXApplication.C) and override
the following block of code:
#if defined(OS2) || NeedNestedPrototypes
int (*func)(Display *);
#else
int (*func)();
#endif
The SGI compiler I'm using chokes on
nested prototypes and needs the "else"
option.
I just restored the block above and
did a clean remake using automake --include-deps.
The makefile now works (as it did with -a -i), but
the compile still chokes at DXApplication.C.
I'm trying to track down where and how NeedNestedPrototypes
is set. I'm new to all these autotools, so perhaps you can
point me in the right direction.
Richard