configure: Fix check for whether architecture is already set.

The old one relied on Bash extensions to regular expressions
which a plain POSIX shell (such as /bin/dash) doesn't support.
This commit is contained in:
Augustin Cavalier 2024-08-24 01:42:55 -04:00
parent d998a69e4d
commit c7b5f2821c

10
configure vendored
View File

@ -982,8 +982,14 @@ else
# prefix was specified. The standard_gcc_settings call below will get
# the actual architecture.
if test "${HAIKU_PACKAGING_ARCHS#*$targetArch\b}" != "$HAIKU_PACKAGING_ARCHS"; then
# somehow we wound up with a duplicate arch; skip this one
for existingArch in $HAIKU_PACKAGING_ARCHS; do
if [ $existingArch = $targetArch ]; then
# somehow we wound up with a duplicate arch; skip this one
targetArch=
break
fi
done
if [ -z "$targetArch" ]; then
continue
fi