diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-10 19:58:55 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-10 20:39:13 +0300 |
commit | 218818d2366c1ed01b4ded1b12faf299eaf93859 (patch) | |
tree | 3bc649b77cdef2dddf47e057c1cb1a474a1114d6 /src/Makefile.am | |
parent | e906e318c552d89fdd7d56045cc0fe15a5853547 (diff) | |
download | idest-218818d2366c1ed01b4ded1b12faf299eaf93859.tar.gz idest-218818d2366c1ed01b4ded1b12faf299eaf93859.tar.bz2 |
Search for Guile files in the %load-path. Implement startup files.
* NEWS: Document Guile startup files.
* src/Makefile.am (AM_CPPFLAGS): Define GUILE_SITE and PKG_SITE.
* src/guile.c (guile_load): Second argument controls whether to
search for the file in the %load-path.
(load_path_prepend,try_file)
(load_startup_file): New functions.
(guile_init): Load startup files.
Unless guile_script contains directory separators, look it up
in the %load-path.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 1d51cfa..ed125b6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -39,3 +39,7 @@ DISTCLEANFILES= | |||
39 | sitedir = @GUILE_SITE@/$(PACKAGE) | 39 | sitedir = @GUILE_SITE@/$(PACKAGE) |
40 | site_DATA= | 40 | site_DATA= |
41 | include ../gint/gint.mk | 41 | include ../gint/gint.mk |
42 | |||
43 | AM_CPPFLAGS=\ | ||
44 | -DGUILE_SITE=\"@GUILE_SITE@\"\ | ||
45 | -DPKG_SITE=\"$(sitedir)\" \ No newline at end of file | ||