Improve configure.in so it can be used outside the Samba source tree.