AC_CHECK_HEADER seems problematic. Try custom test.