The newest gnu linker does not automatically search for functions in dependent libraries. This means that -lm has to be added to LIBS if the application source code contains math functions.
Check for libm in configure - ensures that it is added to LIBS
I fixed this in current SVN, thanks for reporting. best