aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTomi Ollila <tomi.ollila@iki.fi>2021-12-07 21:11:41 +0200
committerDavid Bremner <david@tethera.net>2021-12-11 07:17:42 -0400
commitab8d0e572537006a4e1dafa266075ed0d848c80f (patch)
tree155ab3e465e2ebf9fe7c5597cb6851de3acf4b3c /configure
parenta06b76b9b3c1212b17d2bb170bdd511711f578f8 (diff)
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
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