Use AC_CONFIG_MACRO_DIR.  This allows using autoreconf instead of our own autogen.sh.  Closes: #282.