summaryrefslogtreecommitdiffabout
path: root/src/Makefile.am
authorSergey Poznyakoff <gray@gnu.org.ua>2011-07-10 16:58:55 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-07-10 17:39:13 (GMT)
commit218818d2366c1ed01b4ded1b12faf299eaf93859 (patch) (side-by-side diff)
tree3bc649b77cdef2dddf47e057c1cb1a474a1114d6 /src/Makefile.am
parente906e318c552d89fdd7d56045cc0fe15a5853547 (diff)
downloadidest-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') (more/less context) (ignore whitespace changes)
-rw-r--r--src/Makefile.am4
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=
sitedir = @GUILE_SITE@/$(PACKAGE)
site_DATA=
include ../gint/gint.mk
+
+AM_CPPFLAGS=\
+ -DGUILE_SITE=\"@GUILE_SITE@\"\
+ -DPKG_SITE=\"$(sitedir)\" \ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.