From: Tomi Ollila <tomi.ollila@iki.fi>
Date: Tue, 7 Dec 2021 19:11:41 +0000 (+0200)
Subject: configure: have bash_absolute and perl_absolute always defined
X-Git-Tag: 0.35_rc0~70
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ab8d0e572537006a4e1dafa266075ed0d848c80f;p=notmuch

configure: have bash_absolute and perl_absolute always defined

Since set -u is used, without bash or perl, configure would fail.

This has gone unnoticed as (almost) everyone always had both
bash and perl installed (and in $PATH).

Thanks to FreeBSD ports this bug became visible; this change is
verbatim copy of `patch-configure` in FreeBSD ports tree.
---

diff --git a/configure b/configure
index 7d9df370..d399457a 100755
--- a/configure
+++ b/configure
@@ -734,6 +734,7 @@ if command -v ${BASHCMD} > /dev/null; then
     printf "Yes (%s).\n" "$bash_absolute"
 else
     have_bash=0
+    bash_absolute=
     printf "No. (%s not found)\n" "${BASHCMD}"
 fi
 
@@ -744,6 +745,7 @@ if command -v ${PERL} > /dev/null; then
     printf "Yes (%s).\n" "$perl_absolute"
 else
     have_perl=0
+    perl_absolute=
     printf "No. (%s not found)\n" "${PERL}"
 fi