From 96ba24a7da70f7149a071c98be37461df50b83e7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 30 Jan 2022 03:07:45 -0500 Subject: autoconf-wrapper: make sure we break on first match, not last The intention was that we break on the first match in WANT_AUTOCONF, so add that missing break statement. In practice, people only ever set one value in WANT_AUTOCONF, so that's probably why no one has ever noticed this bug before. Signed-off-by: Mike Frysinger --- ac-wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ac-wrapper.sh b/ac-wrapper.sh index 4682082..57324bb 100755 --- a/ac-wrapper.sh +++ b/ac-wrapper.sh @@ -117,6 +117,7 @@ if [ -n "${WANT_AUTOCONF}" ] ; then if [ -x "${full_argv0}-${wx}" ] ; then binary="${full_argv0}-${wx}" v="x" + break elif [ "${wx}" = "2.5" ] ; then if [ "${auto_ver}" = "2.13" ] ; then # The "2.5" alias accepts every version except 2.13. @@ -125,6 +126,7 @@ if [ -n "${WANT_AUTOCONF}" ] ; then if [ -x "${full_argv0}-${auto_ver}" ] ; then binary="${full_argv0}-${auto_ver}" v="x" + break fi fi done -- cgit v1.2.3-65-gdbad