From 05791050f9134cbded072e1273f82e619c102c3e Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand - Tux" Date: Thu, 25 Jul 2019 16:10:27 +0200 Subject: [PATCH] Configure: reuse "cached" value of "none" for dir When value of a directory (i.e. man1dir) is set to "none" because of: - '-D' option set on cmdline (i.e. -Dman1dir=none) OR - because value is reused from previous configure run And when the prefix is different from the previous configure run(*) then keep the value of "none". predefined/cached value does not contain the old prefix so there is no harm in keeping it. (*): due to another bug this also happens when prefix ends with a trailing slash See https://rt.perl.org/Ticket/Display.html?id=134284 --- dist/U/Prefixit.U | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/U/Prefixit.U b/dist/U/Prefixit.U index 05b32ab..2c87254 100644 --- a/dist/U/Prefixit.U +++ b/dist/U/Prefixit.U @@ -51,7 +51,7 @@ prefixit='case "$3" in none) eval "tp=\"\$$2\""; case "$tp" in - ""|" ") eval "$1=\"\$$2\"";; + ""|" "|none) eval "$1=\"\$$2\"";; *) eval "$1=";; esac;; esac;; -- 1.8.3.1