This patch compiles Scheme code under data-directory/. Another option would have been to compile them from gdb/Makefile, and then simply copy them to data-directory/. It seemed more consistent to handle everything under data-directory/ though. WDYT? Thanks, Ludo’. gdb/ 2014-06-20 Ludovic Courtès * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro. * configure.ac ["${have_libguile}" != no]: Use it. * configure: Regenerate. * data-directory/Makefile.in (GUILE_FILES): Rename to... (GUILE_SOURCE_FILES): ... this. New variable. (GUILE_COMPILED_FILES): New variable. (GUILE_FILES, GUILD, GUILD_COMPILE_FLAGS, COMPILE_SCM_FILE) (.SUFFIXES): New variables. (stamp-guile): Depend on $(GUILE_SOURCE_FILES). Build all of $(GUILE_SOURCE_FILES) with $(COMPILE_SCM_FILE). * guile/guile.c (boot_guile_support, handle_boot_error): New functions. (initialize_scheme_side): Use them and 'scm_c_catch' in lieu of 'gdbscm_safe_source_script'. * guile/lib/gdb.scm: Remove 'add-to-load-path' call. * guile/lib/boot.scm: Augment '%load-path' and '%load-compiled-path'. Remove 'load' call, and use 'load-compiled' for 'gdb.go'. * guile/lib/init.scm (%initialize): Remove 'add-to-load-path' call. --- gdb/acinclude.m4 | 28 ++++++++++++++++++++++ gdb/configure | 30 ++++++++++++++++++++++++ gdb/configure.ac | 3 +++ gdb/data-directory/Makefile.in | 48 +++++++++++++++++++++++++++++++------- gdb/guile/guile.c | 53 ++++++++++++++++++++++++++++-------------- gdb/guile/lib/gdb.scm | 3 --- gdb/guile/lib/gdb/boot.scm | 16 +++++++++---- gdb/guile/lib/gdb/init.scm | 3 --- 8 files changed, 147 insertions(+), 37 deletions(-)