summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 779d240..464bfdb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,9 +19,9 @@ GUILE_MODULE_REQUIRED([chickadee])
GUILE_MODULE_REQUIRED([catbird])
# 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])
+guilemodulepath="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
+guileobjectpath="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
+AC_SUBST([guilemodulepath])
+AC_SUBST([guileobjectpath])
AC_OUTPUT