I suspected that this is what has been causing problems with VERSION being undefined, so I added an "rm -f config.cache" to autogen.sh a few commits back.
If someone knows of a "proper" way to do this, I'd be grateful... though I don't expect there to be one.