This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

how to find the right place for installed scheme files?



>I want to make my app install some scheme files such that they will be
>found by module autoloading. I figure
>${guile_prefix}/share/guile/app/${appname} would be a good directory
>for this, but I am not sure how to find the place where guile was
>installed from an autoconf script. Can anyone suggest something?

The variable %guile-build-info holds an alist of the paths used when
Guile was built.  The Makefile variable $(pkgdatadir) gets included in
%load-path, so you can say:

    guile -c "(display (cdr (assq 'pkgdatadir %guile-build-info)))"

In tomorrow's snapshot, the `build-guile' utility will have an "info"
subcommand, so you can just say

    build-guile info pkgdatadir