Added autoconf/automake support.

This way we can check for required dependencies and minimum versions.
No functional changes have been done to the Makefile yet.