configure

branch
newapi
changeset 404
384f6d1f5784
parent 302
b00cbbfeec7a
--- a/configure	Sat Nov 30 20:33:16 2024 +0100
+++ b/configure	Wed Dec 04 08:55:49 2024 +0100
@@ -72,7 +72,7 @@
 Options:
   --debug                 add extra compile flags for debug builds
   --release               add extra compile flags for release builds
-  --toolkit=(libadwaita|gtk4|gtk3|gtk2|gtk2legacy|qt5|qt4|motif)
+  --toolkit=(libadwaita|gtk4|gtk3|gtk2|gtk2legacy|qt5|qt4|cocoa|motif)
 
 __EOF__
 }
@@ -672,6 +672,20 @@
 __EOF__
     return 0
 }
+checkopt_toolkit_cocoa()
+{
+    VERR=0
+    if dependency_error_cocoa ; then
+        VERR=1
+    fi
+    if [ $VERR -ne 0 ]; then
+        return 1
+    fi
+    cat >> "$TEMP_DIR/make.mk" << __EOF__
+TOOLKIT = cocoa
+__EOF__
+    return 0
+}
 checkopt_toolkit_motif()
 {
     VERR=0
@@ -816,6 +830,14 @@
             ERROR=1
             DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
         fi
+    elif [ "$OPT_TOOLKIT" = "cocoa" ]; then
+        echo "  toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
+        if checkopt_toolkit_cocoa ; then
+            :
+        else
+            ERROR=1
+            DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
+        fi
     elif [ "$OPT_TOOLKIT" = "motif" ]; then
         echo "  toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
         if checkopt_toolkit_motif ; then

mercurial