input below lines to "%build" section of spec file:
aclocal
automake
libtoolize --force --copy
autoconf