test/configure2

changeset 105
4b3e655339cb
parent 102
bc7837852b7c
child 113
24f32dbd88cd
--- 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"

mercurial