configure, doc/Makefile.in: fix out-of-directory build