Fix LV2 state:loadDefaultState
[ardour.git] / wscript
diff --git a/wscript b/wscript
index e30c3277d10ff628cf96cf3141e6aaf7269c3ec1..da86736a3d6c3e39fac97bc22bc1598515c2740a 100644 (file)
--- a/wscript
+++ b/wscript
@@ -383,6 +383,17 @@ int main() { return 0; }''',
 
     autowaf.set_basic_compiler_flags (conf,flags_dict)
 
+    #
+    # the transition table for the libardour transport state machine
+    # is larger than the default that is hard-coded in boost::mpl.
+    # These need to be defined before any boost headers are used,
+    # and just about the only way to be sure that is true is to define
+    # them on the "command line" here.
+    #
+    cxx_flags.append ('-DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS')
+    cxx_flags.append ('-DBOOST_MPL_LIMIT_VECTOR_SIZE=30')
+    cxx_flags.append ('-DBOOST_MPL_LIMIT_MAP_SIZE=30')
+    
     if conf.options.asan:
         conf.check_cxx(cxxflags=["-fsanitize=address", "-fno-omit-frame-pointer"], linkflags=["-fsanitize=address"])
         cxx_flags.append('-fsanitize=address')
@@ -1313,6 +1324,7 @@ const char* const ardour_config_info = "\\n\\
     write_config_text('Libjack linking',       conf.env['libjack_link'])
     write_config_text('Libjack metadata',      conf.is_defined ('HAVE_JACK_METADATA'))
     write_config_text('Lua Binding Doc',       conf.is_defined('LUABINDINGDOC'))
+    write_config_text('Lua Commandline Tool',  conf.is_defined('HAVE_READLINE') and not (conf.is_defined('WINDOWS_VST_SUPPORT') and conf.env['build_target'] != 'mingw'))
     write_config_text('LV2 UI embedding',      conf.is_defined('HAVE_SUIL'))
     write_config_text('LV2 support',           conf.is_defined('LV2_SUPPORT'))
     write_config_text('LV2 extensions',        conf.is_defined('LV2_EXTENDED'))