bug-guile
[Top][All Lists]
Advanced

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

[PATCH] Save config.cache before tests which are likely to fail.


From: Ralf Wildenhues
Subject: [PATCH] Save config.cache before tests which are likely to fail.
Date: Sat, 12 Feb 2011 10:56:20 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Guile's configure script takes fairly long.  On a system without
automatic build dependency installation, it is amplified by the fact
that your user might be both impatient and not read the build
instructions, thus needs to rerun configure several times only to find
out there is another dependency to install.  Still, there is help even
for such kinds of misguided figures such as me: save the temporary
config.cache file (if one is used anyway) before embarking upon the set
of tests that are likely to error out.  That way, the second and further
reruns are much faster.

The downside of this patch is that, when fixing the errors requires
changing to precious variables (such as CPPFLAGS or so), the user will
need to 'rm -f config.cache' to keep configure happy.

* configure.ac: Call AC_CACHE_SAVE before the gmp tests.
---

Hello,

Which alternative do you prefer?
See 'info Autoconf --index AC_CACHE_SAVE' for more information.

Thanks for maintaining guile,
Ralf

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

diff --git a/configure.ac b/configure.ac
index 69f35e2..2cd8b4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -855,6 +855,7 @@ main (void)
   esac
 fi
 
+AC_CACHE_SAVE
 
 dnl GMP tests
 AC_LIB_HAVE_LINKFLAGS([gmp],
-- 
1.7.4.1.gd5c55



reply via email to

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