Eric Blake wrote: > + * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
Your patch reordered the statements in such a way that ac_cv_header_sys_select_h can be tested before it is computed. This fixes it. 2009-12-31 Bruno Haible <br...@clisp.org> * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not afterwards. --- m4/sys_select_h.m4.orig Thu Dec 31 22:20:06 2009 +++ m4/sys_select_h.m4 Thu Dec 31 21:47:11 2009 @@ -45,13 +45,13 @@ ]) fi ]) + gl_CHECK_NEXT_HEADERS([sys/select.h]) if test $ac_cv_header_sys_select_h = yes; then HAVE_SYS_SELECT_H=1 else HAVE_SYS_SELECT_H=0 fi AC_SUBST([HAVE_SYS_SELECT_H]) - gl_CHECK_NEXT_HEADERS([sys/select.h]) if test $gl_cv_header_sys_select_h_selfcontained != yes; then gl_PREREQ_SYS_H_WINSOCK2 fi