From 5aa50c9ddfda05bdfc6941d445ecba3ef1985970 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 26 Dec 2025 10:56:15 +1030 Subject: [PATCH] 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. --- bfd/configure | 2 +- bfd/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.0