RE: PATCH: only generate dependencies if using gcc

"Bostock James" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <84E219D8B81E5F4688C4A8992426CD8301317B43@fr-par-mail01.comverse.com>
> From: Stipe Tolj
> Sent: 07 July 2008 19:17
> 
> Stipe Tolj schrieb:
> >
> > Can you point out why you need to omit the .depend file creation if
the
> > compiler is not gcc?
> 
> i.e. the Intel CC handles the options and can build without changes.
> 
The native compilers for AIX, HP-UX and Solaris do not handle these
options. If a compiler other than gcc supports these options, though,
then my patch goes from a quick fix to an ugly and inaccurate quick fix
:(

Other solutions would be to:
- have autoconf try to detect whether the compiler supports -MM,
- use the X11 makedepend utility,
- use automake.

My preference would be for the last of these. What do other people
think?

-james
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.