Bruno Haible <bruno <at> clisp.org> writes: > > 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.
Thanks for catching that. Huh. gl_CHECK_NEXT_HEADERS invokes AC_CHECK_HEADERS under the hood. That means several other .m4 file can probably be simplified: m4/arpa_inet_h.m4 m4/getopt.m4 m4/langinfo_h.m4 m4/sched_h.m4 m4/spawn_h.m4 m4/sys_file_h.m4 m4/sys_ioctl_h.m4 m4/sys_socket_h.m4 m4/sys_times_h.m4 m4/sys_utsname_h.m4 m4/sysexits.m4 m4/unistd_h.m4 m4/wchar.m4 m4/wctype.m4 -- Eric Blake