The autogen script is launching autotools during src_compile, and is not going to make use of econf facilities; it should be replaced with autotools.eclass usage, since it also lacks dependencies over autotools packages.
Fixed in CVS, thanks for reporting the problem.