diff options
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | src/lib/Makefile.am | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9cc54367..fc046d85 100644 --- a/configure.ac +++ b/configure.ac @@ -316,6 +316,16 @@ AM_CONDITIONAL([HAVE_TWISTER], [true]) fi +# should experimental code be compiled (code that may not yet compile / have passing test cases)? +AC_MSG_CHECKING(whether to compile experimental code) +AC_ARG_ENABLE([experimental], + [AS_HELP_STRING([--enable-experimental], [enable compiling experimental code])], + [enable_experimental=${enableval}], + [enable_experimental=no]) +AC_MSG_RESULT($enable_experimental) +AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"]) + + AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 9235863b..1189abeb 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -78,9 +78,11 @@ check_PROGRAMS = \ test_merchant_api_new \ test_merchant_api +if HAVE_EXPERIMENTAL if HAVE_TWISTER check_PROGRAMS += test_merchant_api_twisted endif +endif endif |