mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
d998a69e4d
commit
c7b5f2821c
10
configure
vendored
10
configure
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user