diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-03-20 22:13:27 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-03-20 23:26:18 +0100 |
commit | 9437fd7399425ed281e1bfc13240288ba9078caa (patch) | |
tree | 35112a154d9a5281e2433e65f6ff0a60cc881b41 /configure.ac | |
parent | 6809d9377b0bd2cf71811637663f2ec0cbe531e5 (diff) | |
download | guix-9437fd7399425ed281e1bfc13240288ba9078caa.tar guix-9437fd7399425ed281e1bfc13240288ba9078caa.tar.gz |
build: Install .go files to $libdir/guile/X.Y.
* configure.ac: Define and substitute 'guileobjectdir'.
* Makefile.am (nobase_nodist_guilemodule_DATA): Remove $(GOBJECTS).
(nobase_nodist_guileobject_DATA): New variable.
(guix_install_go_files): Adjust accordingly.
(install-data-hook): Likewise.
* scripts/guix.in (config-lookup): Add 'exec_prefix' and
'guileobjectdir'. Add '_' in VAR-REF-REGEXP.
(maybe-augment-load-paths!): Distinguish OBJECT-DIR from MODULE-DIR.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 76f52e0ec3..2b4620c44b 100644 --- a/configure.ac +++ b/configure.ac @@ -85,9 +85,11 @@ if test "x$GUILE_EFFECTIVE_VERSION" = "x2.0"; then PKG_CHECK_MODULES([GUILE], [guile-2.0 >= 2.0.9]) fi -dnl Installation directory for .scm and .go files. +dnl Installation directories for .scm and .go files. guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION" +guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache" AC_SUBST([guilemoduledir]) +AC_SUBST([guileobjectdir]) dnl The GnuTLS bindings are necessary for substitutes over HTTPS and for 'guix dnl pull', among other things. |