use autoreconf hook instead of manual call