Hi Bruno, Paul, * Bruno Haible wrote on Tue, Oct 05, 2010 at 11:40:04PM CEST: > + (cd $(top_builddir) && ./config.status --file=-) < > $(srcdir)/time.in.h | \ > + sed -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ > -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ > - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > - < $(srcdir)/time.in.h; \ > + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ > } > $...@-t && \ > mv $...@-t $@ > MOSTLYCLEANFILES += time.h time.h-t
The remaining sed script could be replaced by AC_SUBST_FILE instances, although you'd need to modify the gnulib sources then. In order to address the fairly large config.status startup overhead, an alternative would be to just declare the headers AC_CONFIG_FILES, then they'd be generated normally after configure has run. Modifying the Autoconf code to be more efficient here is a lot trickier (at least more work), and as soon as Libtool is in the game, its config.status bits are where the most overhead comes from. Cheers, Ralf
