From 7fea014bce1f8dc50d3991a422d5dd21652961da Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 24 Jul 1996 17:02:18 +0000 Subject: [PATCH] added back check for config.cache from other host type --- configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.in b/configure.in index d8ccee2ac..42b746ff6 100644 --- a/configure.in +++ b/configure.in @@ -246,6 +246,15 @@ dnl What kind of beastie are we being run on? dnl Barf if config.cache was generated on another host. dnl AC_CANONICAL_HOST +if test -n "$sudo_cv_oldhost" -a "$sudo_cv_oldhost" != "$host"; then + echo "" + echo "Fatal Error: config.cache exists from another platform!" + echo "Please remove it and re-run configure." + echo "" + exit 1 +fi +AC_MSG_CHECKING(host type against cached value (if any)) +AC_CACHE_VAL(sudo_cv_oldhost, sudo_cv_oldhost="$host") dnl dnl We want to be able to differentiate between different rev's -- 2.40.0