`depends_on 'automake' => :build` should be `depends_on :automake` (which implies :build). Also, same for autoconf.