--- a/test/configure2 Sat Jan 20 15:37:16 2024 +0100 +++ b/test/configure2 Sat Jan 20 15:47:39 2024 +0100 @@ -206,6 +206,26 @@ done return 0 } +istoolchain() +{ + for t in $TOOLCHAIN + do + if [ "$t" = "$1" ]; then + return 0 + fi + done + return 1 +} +notistoolchain() +{ + for t in $TOOLCHAIN + do + if [ "$t" = "$1" ]; then + return 1 + fi + done + return 0 +} # generate vars.mk @@ -401,7 +421,7 @@ if notisplatform "bsd"; then break fi - if isplatform "macos"; then + if isplatform "macos" || istoolchain "macos"; then break fi TEMP_CFLAGS="$TEMP_CFLAGS -DBSD"