Run version check via eval

... otherwise it fails for autoconf/automake; for some reason, newer
Ubuntu 18.10 adds extra quoting around '${SHELL}' in
$ac_cv_path_AUTOCONF.

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2019-01-28 00:26:37 -08:00
parent ea07954745
commit 88a08bd2fd

View File

@ -18,7 +18,7 @@ AC_DEFUN([CTNG_PROG_VERSION],
[ac_cv_path_$1="$$1"
CTNG_PATH_ABSNAME([ac_cv_path_$1])
CTNG_MSG_LOG_ENVVAR([ac_cv_path_$1])
ver=$($ac_cv_path_$1 --version 2>/dev/null)
ver=$(eval $ac_cv_path_$1 --version 2>/dev/null)
CTNG_MSG_LOG([looking for '[$5]' regexp in])
CTNG_MSG_LOG_ENVVAR([ver], [version info for $ac_cv_path_$1])
ver=$(AS_ECHO(["$ver"]) | $EGREP '[$5]')