For some reason I had a compile error on commit cbdf6b32c3f21ea90b231c3c2a6fbf75eedcf759:
sgminer.c: In function write_config:
sgminer.c:4352:20: error: X13MODOLD_KERNNAME undeclared (first use in this function)
You'll need do
make clean
./autogen.sh <<<<<<<< mandatory
./configure
make