Use AC_CONFIG_LIBOBJ_DIR and AC_REPLACE_FUNCS to adhere to autoconf standards
Remove dead targets from build system
Properly quote arguments for AC_LIBOBJ.
Check for perl and assign it to a var since it is needed for generating the protocol header.
Ignore .deps directories.
Use AS_IF instead of plain if/then/fi
fixup! Rename aclocal.m4 to acinlude.m4 and include make target
Introduce automake.