From: Alan Modra Date: Fri, 26 Dec 2025 00:26:15 +0000 (+1030) Subject: Re: bfd ASSOCIATED_VECS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa50c9ddfda05bdfc6941d445ecba3ef1985970;p=thirdparty%2Fbinutils-gdb.git Re: bfd ASSOCIATED_VECS What I committed in f4e835a40c wasn't wrong but it wasn't elegant. Unlike looking for a word separated by spaces, it isn't necessary to prepend and append the separators in the match string. * configure.ac (assocvecs): Tidy uniquify code. * configure: Regenerate. --- diff --git a/bfd/configure b/bfd/configure index e30030e5e13..0caff54a9e0 100755 --- a/bfd/configure +++ b/bfd/configure @@ -16170,7 +16170,7 @@ if test x${all_targets} = xtrue ; then selarchs= f= for i in $assocvecs ; do - case "&${f}," in + case "${f}" in *"&${i},"*) ;; *) f="${f}&${i}," ;; esac diff --git a/bfd/configure.ac b/bfd/configure.ac index c264cc215af..d30ccd60ebf 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -711,7 +711,7 @@ if test x${all_targets} = xtrue ; then selarchs= f= for i in $assocvecs ; do - case "&${f}," in + case "${f}" in *"&${i},"*) ;; *) f="${f}&${i}," ;; esac