This would appear to be a problem in OpenJDK's configure.ac file, not in Autoconf itself, no? So you should send a bug report to the OpenJDK folks.
- AC_LINK_IFELSE unexpectedly fails on Ubuntu 12.04 David Pointon
- Re: AC_LINK_IFELSE unexpectedly fails on Ubuntu 12.04 Paul Eggert
- Re: AC_LINK_IFELSE unexpectedly fails on Ubuntu 12.... David Pointon
- Re: AC_LINK_IFELSE unexpectedly fails on Ubuntu 12.04 Russ Allbery