diff options
author | David Bremner <david@tethera.net> | 2019-01-16 22:11:31 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2019-02-01 07:59:12 -0400 |
commit | a38853518eba567375ad7ea8bb3a5ecfb86dbd62 (patch) | |
tree | 382331eda45d6158994728dd199557e7b0646888 /configure | |
parent | 617b36f3d1e9ccdf4f0a44baba84a3d8ac76afcf (diff) |
configure: don't use special variable BASH
bash, in it's wisdom, sets that variable when invoked as /bin/sh, but
then doesn't act as bash, at least not to the degree we need to run
scripts.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -53,7 +53,7 @@ fi # Set several defaults (optionally specified by the user in # environment variables) -BASH=${BASH:-bash} +BASHCMD=${BASHCMD:-bash} PERL=${PERL:-perl} CC=${CC:-cc} CXX=${CXX:-c++} @@ -560,13 +560,13 @@ else fi printf "Checking for bash... " -if command -v ${BASH} > /dev/null; then +if command -v ${BASHCMD} > /dev/null; then have_bash=1 - bash_absolute=$(command -v ${BASH}) + bash_absolute=$(command -v ${BASHCMD}) printf "Yes (%s).\n" "$bash_absolute" else have_bash=0 - printf "No. (%s not found)\n" "${BASH}" + printf "No. (%s not found)\n" "${BASHCMD}" fi printf "Checking for perl... " |