From f37487368372c5ab6207e756b4b4ae89c6d145c3 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 24 Mar 2009 23:28:06 +0100 Subject: Add experimental `--enable-guile-vm' configure option. * configure.ac (--enable-guile-vm): New option. (ENABLE_GUILE_VM): New Automake conditional. * guile-vm.am: New file. * src/guile/Makefile.am (SOURCES): New variable, formerly `nobase_dist_module_DATA'. (SOURCES_NOT_COMPILED): New. Include `guile-vm.am'. * NEWS: Update. --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0da5c01..a0617b9 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,10 @@ AM_INIT_AUTOMAKE([gnu no-define check-news readme-alpha]) AC_CONFIG_SRCDIR([src/guile/skribilo/reader.scm]) +# Options. +AC_ARG_ENABLE([guile-vm], + [AS_HELP_STRING([--enable-guile-vm], + [compile source files for use with Guile-VM (aka. Guile 2.x)])]) # GNU Gettext. AM_GNU_GETTEXT([external]) @@ -29,6 +33,11 @@ AC_ARG_WITH([guilemoduledir], GUILE_PROGS GUILE_SITE_DIR +# Guile-VM's compiler (aka. Guile 2.0.x). +AM_CONDITIONAL([ENABLE_GUILE_VM], + [test "x$enable_guile_vm" = "xyes" && \ + $GUILE_TOOLS compile --help 2>&1 >/dev/null]) + # Guile-Lint (http://www.geocities.com/user42_kevin/guile-lint/index.html) AC_PATH_PROG([GUILE_LINT], [guile-lint]) AC_SUBST([GUILE_LINT]) -- cgit v1.2.3