The patch I'm going to attach fixes the configure.in autoconf script to properly support cross-compiling; the current code is not correct (and my post in the URL field shows why).
Created attachment 3848 [details]
Patch to fix autotools
Much appreciated! I have applied your fix in the git repository.