aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-30 02:52:37 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-30 02:52:37 -0500
commit128dff66839fcc5d02bd2b61592eec486919e404 (patch)
tree0a661fd401fb8f191e74d590c4f9c666a9fabf17
parentautoconf-wrapper: clean up old error message (diff)
downloadautotools-wrappers-128dff66839fcc5d02bd2b61592eec486919e404.tar.gz
autotools-wrappers-128dff66839fcc5d02bd2b61592eec486919e404.tar.bz2
autotools-wrappers-128dff66839fcc5d02bd2b61592eec486919e404.zip
autoconf-wrapper: export WANT_AUTOCONF to the full version
When exporting the WANT_AUTOCONF version based on what we picked, use the full version instead of the short 2.1 or 2.5 values since they may expand into an unrelated version (since we accept many versions as an alias to 2.5). Practically speaking, there shouldn't be a difference, but this will make things a bit more clear. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xac-wrapper.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh
index ca23928..6cb436b 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -183,9 +183,8 @@ fi
if [ -z "${WANT_AUTOCONF}" ] ; then
for v in ${vers} ; do
auto_ver=${v%:*}
- want_ver=${v#*:}
if [ "${binary}" = "${full_argv0}-${auto_ver}" ] ; then
- export WANT_AUTOCONF="${want_ver}"
+ export WANT_AUTOCONF="${auto_ver}"
break
fi
done