Run aclocal before autoheader It looks ike autoheader inspects ./aclocal.m4 (produced by aclocal) but not ./aclocal (which is read by aclocal), so it doesn't pick up our custom defines unless we run aclocal first.