[libvirt] [PATCH] build: speed up non-maintainer builds

* configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Use to reduce time spent in configure. --- This skips out on the bulk of the 'declared without a macro' checks during configure time (they are only useful if you are going to run with CFLAGS=-DGNULIB_POSIXCHECK=1, but that's a maintainer action); it also results in a smaller config.h (no HAVE_RAW_DECL substitutions). Worth including in 0.8.8? configure.ac | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 3cd824a..7172b92 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,11 @@ dnl Make automake keep quiet about wildcards & other GNUmake-isms AM_INIT_AUTOMAKE([-Wno-portability]) AM_MAINTAINER_MODE([enable]) +# Maintainer note - comment this line out if you plan to rerun +# GNULIB_POSIXCHECK testing to see if libvirt should be using more modules. +# Leave it uncommented for normal releases, for faster ./configure. +gl_ASSERT_NO_GNULIB_POSIXCHECK + # Use the silent-rules feature when possible. m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])]) AM_SILENT_RULES([yes]) -- 1.7.4

On Fri, Feb 11, 2011 at 12:45:36PM -0700, Eric Blake wrote:
* configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Use to reduce time spent in configure. ---
This skips out on the bulk of the 'declared without a macro' checks during configure time (they are only useful if you are going to run with CFLAGS=-DGNULIB_POSIXCHECK=1, but that's a maintainer action); it also results in a smaller config.h (no HAVE_RAW_DECL substitutions).
Worth including in 0.8.8?
Hum, that's an improvement and I'm a bit vary of the build side effect, I would feel a bit safer if we just waited a bit to push this after the release, okay ? Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 02/13/2011 09:29 PM, Daniel Veillard wrote:
On Fri, Feb 11, 2011 at 12:45:36PM -0700, Eric Blake wrote:
* configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Use to reduce time spent in configure. ---
This skips out on the bulk of the 'declared without a macro' checks during configure time (they are only useful if you are going to run with CFLAGS=-DGNULIB_POSIXCHECK=1, but that's a maintainer action); it also results in a smaller config.h (no HAVE_RAW_DECL substitutions).
Worth including in 0.8.8?
Hum, that's an improvement and I'm a bit vary of the build side effect, I would feel a bit safer if we just waited a bit to push this after the release, okay ?
It's now after the release, so taking this as an ACK, I've pushed it. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Daniel Veillard
-
Eric Blake