However, I've also noticed there's a wip-bpt-elisp branch in the main guile repo. This has the newest commits, but it seems to based on an older guile version.
Which branch should I use?
I've also failed to compile the Emacs branch that uses Guile. I'm getting the error:
gcc -c -Demacs -I. -I. -I../lib -I./../lib [many includes elided...] -I/usr/local/include/guile/2.2 -g3 -O2 vm-limit.c
In file included from vm-limit.c:21:0:
lisp.h:33:22: fatal error: libguile.h: No such file or directory
#include <libguile.h>
^
compilation terminated.
This rather looks like I've screwed up with autoconf somehow. I've set the environment variables suggested by the wiki page:
ACLOCAL_PATH=/home/wilfred/guile-emacs/guile/share/aclocal
PKG_CONFIG_PATH=/home/wilfred/guile-emacs/guile/lib/pkgconfig
LD_RUN_PATH=/home/wilfred/guile-emacs/guile/lib