The following line causes a ./configure failure on MinGW:
# Need to link against rt on Solaris
AC_SEARCH_LIBS([sched_yield], [rt], [], [AC_MSG_FAILURE([sched_yield was not found on your system])])
It's specific to Solaris and should be moved to m4/acx_check_suncc.m4