summaryrefslogtreecommitdiff
path: root/source3/configure.in
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-24 04:52:40 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-24 04:52:40 +0000
commite5948ffd7f276b4c3ee6916d1dc6c5d8b28ad557 (patch)
treed00f1054ea55aef07b0c9c0964a5f0201944a326 /source3/configure.in
parente59d7a7f801b2946acd173b62f99fe939649fc9f (diff)
downloadsamba-e5948ffd7f276b4c3ee6916d1dc6c5d8b28ad557.tar.gz
samba-e5948ffd7f276b4c3ee6916d1dc6c5d8b28ad557.tar.bz2
samba-e5948ffd7f276b4c3ee6916d1dc6c5d8b28ad557.zip
automatically detect changes in the system type and exit, telling
the user to remove config.cache (This used to be commit f123172c42b1f9ac73e57856e4ee8715fdfb76cd)
Diffstat (limited to 'source3/configure.in')
-rw-r--r--source3/configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 80f93a3b1a..214682a830 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -22,6 +22,14 @@ case "$host_os" in
*next2*) AC_DEFINE(NEXT2);;
esac
+if test x"$ac_cv_canonical_host" != x &&
+ test x"$ac_cv_canonical_host" != x"$host"; then
+ echo "system config has changed - remove config.cache"; exit 1;
+fi
+
+AC_CACHE_VAL(ac_cv_canonical_host, ac_cv_canonical_host=$host;)
+
+
AC_INLINE
AC_HEADER_STDC
AC_HEADER_DIRENT