]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added test for CC value not matching cache
authorGuido van Rossum <guido@python.org>
Thu, 9 Mar 1995 14:09:54 +0000 (14:09 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 9 Mar 1995 14:09:54 +0000 (14:09 +0000)
configure.in

index 0ef0473fbf2f1d9118ebb47c4c6775c27543c543..78ec997994d0db171126351f4997a33ba44cfca3 100644 (file)
@@ -17,6 +17,13 @@ AC_ARG_WITH(gcc, [--without-gcc             never use gcc], [
        esac], [without_gcc=no])
 AC_MSG_RESULT($without_gcc)
 
+# If the user switches compilers, we can't believe the cache
+if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
+then
+  AC_ERROR(cached CC is different -- throw away $cache_file
+(it is also a good idea to do 'make clean' before compiling))
+fi
+
 AC_PROG_CC
 AC_PROG_RANLIB
 AC_SUBST(AR)