     s += "const char * const avmfeatures = \"\"\n"
     for each ( feature in FEATURES.feature )
         s += showFeature(feature);
+    for each ( feature in FEATURES.tweak )
+        s += showFeature(feature);
     s += ";\n\n"
     s += "#endif // AVMSHELL_BUILD\n";
     print('writing avmfeatures.cpp');

    s += "def featureSettings(o):\n";
    s += "    args = \"\"\n";
    for each ( feature in FEATURES.feature )
        s += configureFeature(feature);
    s += "    return args\n";


        return res;
    }

    var len = 0;
    if (feature.name.indexOf("AVMFEATURE_") == 0)
        len = 11;
    else if (feature.name.indexOf("AVMTWEAK_") == 0)
        len = 9;

    if (len > 0) {
        var enable = "-D" + feature.name + "=1 ";
        var disable = "-D" + feature.name + "=0 ";
        var dependent = complement(feature.name, FEATURES["at-most-one"]) +
                        complement(feature.name, FEATURES["exactly-one"]);
        var feature = feature.name.substring(len).toLowerCase().replace(/_/g,"-");

        // features without dependencies can be explicitly enabled or disabled
        if (dependent == "") {
