build: speed up configure for releases
authorEric Blake <eblake@redhat.com>
Mon, 24 Jan 2011 18:07:51 +0000 (11:07 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 20 Mar 2012 19:33:04 +0000 (13:33 -0600)
commit89bf03c9a1b11b75d7c9e44593493017bf8a3b99
tree80fd75ebc78d1dc5ffe15e9f80f020e9a4902b40
parent56673dbe8af479419f4df56fc8b883fb08012604
build: speed up configure for releases

Since most users won't be building with GNULIB_POSIXCHECK defined in
CFLAGS, and since we can make ./configure 10% (several seconds!) faster
by omitting the framework for a posix check, this patch makes it so
that the framework is omitted by default, while still giving
instructions for maintainers to re-enable it.

It's been a while since we've used GNULIB_POSIXCHECK; see this email:
https://lists.gnu.org/archive/html/coreutils/2012-03/msg00126.html
Some of those failures are because we are intentionally avoiding
specific gnulib modules (that is, we have chosen not to use things
like fprintf-posix), but until we work with gnulib to avoid particular
warnings, wiring up an automatic GNULIB_POSIXCHECK to happen during
'make my-distcheck' is not feasible.

* configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Conditionally
define, according to whether $GNULIB_POSIXCHECK is in environment.
configure.ac