autoconf-patches
[Top][All Lists]
Advanced

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

Re: reorganized config.status


From: Ralf Wildenhues
Subject: Re: reorganized config.status
Date: Sat, 13 Aug 2005 10:24:26 +0200
User-agent: Mutt/1.5.9i

[ only to autoconf-patches ]

* Stepan Kasal wrote on Sat, Aug 13, 2005 at 09:16:08AM CEST:
> On Sat, Aug 13, 2005 at 12:00:13AM +0200, Ralf Wildenhues wrote:
> > Hmm.  But this:
> > | AC_CONFIG_COMMANDS_PRE([dnl
> > | m4_ifndef([AH_HEADER], [AC_CONFIG_HEADERS([config.h])])
> > | AC_SUBST([CONFIG_H], ["AH_HEADER"])
> > | ])
> > 
> > would not be correct, right?
> 
> I don't see any problem.  It should work.  I think that AC_CONFIG_COMMANDS_PRE
> is the last opportunity to call AC_SUBST and AC_CONFIG_FOOS.
> 
> But it is not documented, yet.
> 
> > Quoting 'info Autoconf Configuration\ Headers:
> > | The `AC_CONFIG_HEADERS' macro selects this kind of output.  It should
> > | be called right after `AC_INIT'.
> 
> This doesn't seem correct.  As far as Autoconf is concerned, AC_CONFIG_HEADERS
> might be called just before AC_OUTPUT.
> OTOH, it's a good custom to call it at the top.
> Perhaps some package could test for AH_HEADER...
> 
> Are you willing to prepare another patch and do these two doc enhancements?

How about this?

Cheers,
Ralf

        * doc/autoconf.texi (Configuration Actions, Configuration Headers):
        Update limitations about when to call AC_CONFIG_FOOS, esp.
        AC_CONFIG_HEADER.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.925
diff -u -r1.925 autoconf.texi
--- doc/autoconf.texi   6 Jul 2005 21:39:31 -0000       1.925
+++ doc/autoconf.texi   13 Aug 2005 08:21:18 -0000
@@ -2025,7 +2025,9 @@
 @end table
 
 All these macros can be called multiple times, with different
address@hidden, of course!
address@hidden, of course!  Since they have to appear before 
@file{config.status}
+is created, they may be called no later than in an argument to
address@hidden
 
 
 @node Configuration Files
@@ -2648,8 +2650,9 @@
 operating systems.  As an alternative to passing @option{-D} options to
 the compiler, @command{configure} scripts can create a C header file
 containing @samp{#define} directives.  The @code{AC_CONFIG_HEADERS}
-macro selects this kind of output.  It should be called right after
address@hidden
+macro selects this kind of output.  It is a good idea to call it right after
address@hidden, but it needs to be called no later than in
address@hidden
 
 The package should @samp{#include} the configuration header file before
 any other header files, to prevent inconsistencies in declarations (for




reply via email to

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