src/test/resources/golden-sample/configure2

changeset 83
868e0d4b0a57
parent 77
439902ff0af3
--- a/src/test/resources/golden-sample/configure2	Fri Oct 06 19:44:05 2023 +0200
+++ b/src/test/resources/golden-sample/configure2	Fri Oct 06 20:22:19 2023 +0200
@@ -536,7 +536,7 @@
 #
 
 echo >> "$TEMP_DIR/flags.mk"
-# Target: dav
+echo "configuring target: dav"
 echo "# flags for target dav" >> "$TEMP_DIR/flags.mk"
 TEMP_CFLAGS=
 TEMP_CXXFLAGS=
@@ -588,7 +588,8 @@
 fi
 
 # Option: --toolkit
-if [ -z $OPT_TOOLKIT ]; then
+if [ -z "$OPT_TOOLKIT" ]; then
+    echo "auto-detecting option 'toolkit'"
     SAVED_ERROR="$ERROR"
     SAVED_DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED"
     ERROR=1
@@ -615,10 +616,12 @@
     done
     if [ $ERROR -ne 0 ]; then
         SAVED_ERROR=1
+        SAVED_DEPENDENCIES_FAILED="option 'toolkit' $SAVED_DEPENDENCIES_FAILED"
     fi
     ERROR="$SAVED_ERROR"
     DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED"
 else
+    echo "checking option toolkit = $OPT_TOOLKIT"
     if false; then
         false
     elif [ "$OPT_TOOLKIT" = "gtk3" ]; then
@@ -627,6 +630,7 @@
             :
         else
             ERROR=1
+            DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
         fi
     elif [ "$OPT_TOOLKIT" = "cli" ]; then
         echo "  toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
@@ -634,6 +638,7 @@
             :
         else
             ERROR=1
+            DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
         fi
     elif [ "$OPT_TOOLKIT" = "gtk2" ]; then
         echo "  toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
@@ -641,6 +646,7 @@
             :
         else
             ERROR=1
+            DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
         fi
     elif [ "$OPT_TOOLKIT" = "wpf" ]; then
         echo "  toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
@@ -648,6 +654,7 @@
             :
         else
             ERROR=1
+            DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
         fi
     fi
 fi
@@ -679,7 +686,7 @@
 fi
 
 echo >> "$TEMP_DIR/flags.mk"
-# Target
+echo "configuring global target"
 echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk"
 TEMP_CFLAGS=
 TEMP_CXXFLAGS=

mercurial