From e94593c666b97ff7885d35e1fafe35ba5643f082 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Thu, 31 Oct 2019 15:39:40 +0100 Subject: [PATCH] build: Prepare for guile 3. * configure.ac: Check for guile 3.0 too. * Makefile.am: Install in site-ccache. --- Makefile.am | 4 ++-- configure.ac | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 926d755..fd2f191 100644 --- a/Makefile.am +++ b/Makefile.am @@ -41,8 +41,8 @@ SUFFIXES = .scm .go .scm.go: $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<" -moddir=$(prefix)/share/guile/site/2.2 -godir=$(libdir)/guile/2.2/ccache +moddir=$(guilemoduledir) +godir=$(guileobjectdir) SOURCES = \ 8sync.scm \ diff --git a/configure.ac b/configure.ac index 004fec1..5114d4d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,10 @@ AC_INIT([8sync], [0.4.2], [cwebber@dustycloud.org]) -PKG_CHECK_MODULES([GUILE], [guile-2.2]) +GUILE_PKG([3.0 2.2]) +guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION" +guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache" +AC_SUBST([guilemoduledir]) +AC_SUBST([guileobjectdir]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) -- 2.31.1