mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Try to work around intermittent autogen failure on hydra.nixos.org
* autogen.sh (check_version): Try to handle odd systems where /bin/sh does not define the "command" builtin.
This commit is contained in:
parent
83fc9009c6
commit
c532a8015e
1 changed files with 8 additions and 1 deletions
|
|
@ -82,7 +82,14 @@ check_version ()
|
||||||
printf '%s' "(using $uprog0=$uprog) "
|
printf '%s' "(using $uprog0=$uprog) "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
command -v $uprog > /dev/null || return 1
|
## /bin/sh should always define the "command" builtin, but for
|
||||||
|
## some odd reason sometimes it does not on hydra.nixos.org.
|
||||||
|
## /bin/sh = "BusyBox v1.27.2", "built-in shell (ash)". ?
|
||||||
|
if command -v command > /dev/null; then
|
||||||
|
command -v $uprog > /dev/null || return 1
|
||||||
|
else
|
||||||
|
$uprog --version > /dev/null 2>&1 || return 1
|
||||||
|
fi
|
||||||
have_version=`get_version $uprog` || return 4
|
have_version=`get_version $uprog` || return 4
|
||||||
|
|
||||||
have_maj=`major_version $have_version`
|
have_maj=`major_version $have_version`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue