Make sure that you have installed automake, autobuild, autogen, autoconf, make, m4. Then run in project root:
$ autoreconf