coreutils
[Top][All Lists]
Advanced

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

[PATCH] build: speed up configure for releases


From: Eric Blake
Subject: [PATCH] build: speed up configure for releases
Date: Wed, 14 Mar 2012 14:44:57 -0600

At this point, we're pretty good about picking up gnulib dependencies
without having to be warned about them.  The time spent in configure
to check for declarations is pretty expensive, and really only needs
to be done by a maintainer every once in a while, rather than by
every downstream client on every configure run.

* configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Comment out,
with a note why.
---

I've been camping on this one for a long time; I guess it would be
even more impressive if I compared benchmark numbers of the timing
difference between using this patch and omitting it.

 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 07597e6..16ee28e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,9 @@ AC_CONFIG_HEADERS([lib/config.h:lib/config.hin])
 AM_INIT_AUTOMAKE([1.11.1 no-dist-gzip dist-xz color-tests parallel-tests])
 AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.

+dnl Comment this nest line out to use GNULIB_POSIXCHECK during development.
+gl_ASSERT_NO_GNULIB_POSIXCHECK
+
 AC_PROG_CC_STDC
 AM_PROG_CC_C_O
 AC_PROG_CPP
-- 
1.7.7.6




reply via email to

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