Autotools: remove useless m4 macros, add ARG_ENABLE to toggle engines bulding