autoconf: separate build and source trees
We currently don't support the distinction GNU build tools makes between source trees and build trees. This results in test suite and build failures when a user runs `./configure` outside the source directory.
issue