44ee7cd
From: John Snow <jsnow@redhat.com>
44ee7cd
Date: Wed, 28 Oct 2015 13:56:40 -0400
44ee7cd
Subject: [PATCH] configure: disallow ccache during compile tests
44ee7cd
44ee7cd
If the user is using ccache during the configuration step,
44ee7cd
it may interfere with some of the configuration tests,
44ee7cd
particularly the "Is ccache interfering with macro analysis" step,
44ee7cd
which is a bit of a poetic problem.
44ee7cd
44ee7cd
1) Disallow ccache from reading from the cache during configure,
44ee7cd
   but don't disable it entirely to allow us to see if it causes other
44ee7cd
   problems.
44ee7cd
44ee7cd
2) Force off CCACHE_CPP2 during the ccache test to get a deterministic
44ee7cd
   answer over whether or not we need to enable that feature later.
44ee7cd
44ee7cd
Signed-off-by: John Snow <jsnow@redhat.com>
44ee7cd
Message-Id: <1446055000-29150-1-git-send-email-jsnow@redhat.com>
44ee7cd
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
44ee7cd
(cherry picked from commit 5e4dfd3d4e87e0464d599ecef06aa8fe78420a9b)
44ee7cd
---
44ee7cd
 configure | 3 +++
44ee7cd
 1 file changed, 3 insertions(+)
44ee7cd
44ee7cd
diff --git a/configure b/configure
44ee7cd
index 69a5e2d..b29c923 100755
44ee7cd
--- a/configure
44ee7cd
+++ b/configure
44ee7cd
@@ -8,6 +8,9 @@
44ee7cd
 CLICOLOR_FORCE= GREP_OPTIONS=
44ee7cd
 unset CLICOLOR_FORCE GREP_OPTIONS
44ee7cd
 
44ee7cd
+# Don't allow CCACHE, if present, to use cached results of compile tests!
44ee7cd
+export CCACHE_RECACHE=yes
44ee7cd
+
44ee7cd
 # Temporary directory used for files created while
44ee7cd
 # configure runs. Since it is in the build directory
44ee7cd
 # we can safely blow away any previous version of it