automake
[Top][All Lists]
Advanced

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

Re: question about DEFAULT_INCLUDES and -I.


From: Ralf Wildenhues
Subject: Re: question about DEFAULT_INCLUDES and -I.
Date: Wed, 26 Apr 2006 10:54:31 +0200
User-agent: Mutt/1.5.11

Hi Harald,

* Harald Dunkel wrote on Wed, Apr 26, 2006 at 10:44:55AM CEST:
> 
> it seems that DEFAULT_INCLUDES is set deeply within
> automake.pl to
> 
>       DEFAULT_INCLUDES = -I. -I$(srcdir)

Only if not using the Automake option `nostdinc'.

> What is the reasoning here?

It's a way to make it possible to treat headers living in `.' and
headers living in `$(srcdir)' equally.
(There may be more reasons I'm unaware of.)

> Doesn't this undermine the difference between
> 
>       #include "myheader.h"
> and
>       #include <myheader.h>
> ?

If you have headers in the source or build tree that have the same names
as installed headers, but should _not_ be preferred over them, then yes,
you should use `nostdinc' to control this.  But this is a situation you,
the developer, can have complete knowledge about.

Cheers,
Ralf




reply via email to

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