# HG changeset patch # User Rik # Date 1658866867 25200 # Node ID 60f32b7455e31275e2abea28df8dbcc306246aa4 # Parent 7d4cf04665e6234d2dfe4866719bd1ddb0b9985a configure.ac: Add new option "--disable-vm-evaluator" * configure.ac: Add new option "--disable-vm-evaluator" to control compiling of upcoming virtual machine evaluator. diff -r 7d4cf04665e6 -r 60f32b7455e3 configure.ac --- a/configure.ac Wed Jul 20 16:37:58 2022 +0200 +++ b/configure.ac Tue Jul 26 13:21:07 2022 -0700 @@ -1371,6 +1371,30 @@ #endif ]]) +### Configure Bison as push or pull parser. + +ENABLE_COMMAND_LINE_PUSH_PARSER=yes +AC_ARG_ENABLE([command-line-push-parser], + [AS_HELP_STRING([--disable-command-line-push-parser], + [don't use Bison's push parser interface in the command line REPL])], + [if test "$enableval" = no; then ENABLE_COMMAND_LINE_PUSH_PARSER=no; fi], []) +if test $ENABLE_COMMAND_LINE_PUSH_PARSER = yes; then + AC_DEFINE(OCTAVE_ENABLE_COMMAND_LINE_PUSH_PARSER, 1, + [Define to 1 to use Bison's push parser interface in the command line REPL.]) +fi + +### Configuring building of *experimental* Virtual Machine evaluator + +ENABLE_VM_EVALUATOR=yes +AC_ARG_ENABLE([vm-evaluator], + [AS_HELP_STRING([--disable-vm-evaluator], + [don't compile *experimental* virtual machine evaluator])], + [if test "$enableval" = no; then ENABLE_VM_EVALUATOR=no; fi], []) +if test $ENABLE_VM_EVALUATOR = yes; then + AC_DEFINE(OCTAVE_ENABLE_VM_EVALUATOR, 1, + [Define to 1 to build experimental Virtual Machine evaluator.]) +fi + ### Check for the Qhull library. QHULL_CPPFLAGS= @@ -1459,18 +1483,6 @@ ## Find a termlib to use. OCTAVE_CHECK_LIB_TERMLIB -### Use push parser by default now. - -ENABLE_COMMAND_LINE_PUSH_PARSER=yes -AC_ARG_ENABLE([command-line-push-parser], - [AS_HELP_STRING([--disable-command-line-push-parser], - [don't use Bison's push parser interface in the command line REPL])], - [if test "$enableval" = no; then ENABLE_COMMAND_LINE_PUSH_PARSER=no; fi], []) -if test $ENABLE_COMMAND_LINE_PUSH_PARSER = yes; then - AC_DEFINE(OCTAVE_ENABLE_COMMAND_LINE_PUSH_PARSER, 1, - [Define to 1 to use Bison's push parser interface in the command line REPL.]) -fi - ### Check for ZLIB library. OCTAVE_CHECK_LIB(z, ZLIB,