autoconf
[Top][All Lists]
Advanced

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

Re: How to get a literal #undef into config.h


From: Keith Marshall
Subject: Re: How to get a literal #undef into config.h
Date: Tue, 25 Oct 2005 19:52:51 +0100

On Tuesday 25 October 2005 3:45 pm, Brian wrote:
> Great thanks for the tips. I see its a bit chicken and egg, but is there a
> reason config.h couldn't just define HAVE_CONFIG_H?

Because your source file is expected to use logic like this:--

  #ifdef  HAVE_CONFIG_H
  #include "config.h"
  #endif

so if it isn't defined on the command line, config.h will never get the 
chance to define *anything*.

HTH.

Regards,
Keith.




reply via email to

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