I faced this problem too.

Running autogen.sh first fixed the problem.
--

Kaushal Modi