make sure we compile boot code in (guile), not (guile-user)
authorAndy Wingo <wingo@pobox.com>
Fri, 24 Apr 2009 21:10:31 +0000 (23:10 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 24 Apr 2009 21:10:31 +0000 (23:10 +0200)
commit9c35c5796cbffda57d76499048e8b8f82db943eb
tree8dff1988305e1445cb3dbffd5fbd8c352659550d
parent34ad4f83ca4310e84226d6bd06feb03006c736cc
make sure we compile boot code in (guile), not (guile-user)

* libguile/eval.h:
* libguile/eval.c (scm_m_eval_when): Define a cheap eval-when, used
  before syncase has booted.

* module/Makefile.am: Reorder to put (system vm) and (system repl)
  modules after the compiler, as they are not needed at runtime.

* module/ice-9/boot-9.scm: Move the eval-when earlier, to be the first
  thing -- so when we recompile Guile we do so all in the '(guile)
  module, not '(guile-user).

* module/ice-9/compile-psyntax.scm: Rewrite to assume that psyntax.scm
  will eval-when to set its module, etc. Have everything in a let --
  otherwise the `format' call is in (guile), but `target' was defined
  in (guile-user). Also, write in an eval-when to the expanded file.

* module/ice-9/psyntax-pp.scm: Regenerate.

* module/ice-9/networking.scm:
* module/ice-9/psyntax.scm:
* module/ice-9/r4rs.scm: Sprinkles of eval-when, for flavor.
libguile/eval.c
libguile/eval.h
module/Makefile.am
module/ice-9/boot-9.scm
module/ice-9/compile-psyntax.scm
module/ice-9/networking.scm
module/ice-9/posix.scm
module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm
module/ice-9/r4rs.scm