* configure.ac: Check for guile 3.0 too.
* Makefile.am: Install in site-ccache.
.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 \
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])