rewriting autoconf and automake