From 2c97e7f471073c6cef70c3dcbd1fdd34754cc18f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 6 Dec 2022 13:47:03 -0700 Subject: [PATCH] Remove extraneous "(cached)" line when the -C option is used. We do not need to call AC_CACHE_VAL() to ensure that a variable is cached, its name just needs to match the pattern *_cv_*. --- configure | 9 +-------- configure.ac | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 27ede416a..d9f456bf3 100755 --- a/configure +++ b/configure @@ -17464,14 +17464,7 @@ if test -n "$sudo_cv_prev_host"; then as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5 fi fi -if test ${sudo_cv_prev_host+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) sudo_cv_prev_host="$host" ;; -esac -fi - +sudo_cv_prev_host="$host" if test -n "$host_os"; then OS=`echo $host_os | sed 's/[0-9].*//'` diff --git a/configure.ac b/configure.ac index 569467663..ee5256ec6 100644 --- a/configure.ac +++ b/configure.ac @@ -1778,7 +1778,7 @@ if test -n "$sudo_cv_prev_host"; then AC_MSG_ERROR([config.cache was created on a different host; remove it and re-run configure.]) fi fi -AC_CACHE_VAL(sudo_cv_prev_host, sudo_cv_prev_host="$host") +sudo_cv_prev_host="$host" dnl dnl We want to be able to differentiate between different rev's