> AC_DEFUN([gl_FUNC_CLOSE], > [ > ! m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [ > ! gl_PREREQ_SYS_H_WINSOCK2 > ! if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then > ! gl_REPLACE_CLOSE > ! fi > ! ]) > ])
I'm not so happy with this code. If we create a tests directory where the 'close' module is part of lib/ and 'sys_socket' is part of tests/, the code in lib/ will be compiled in a way that does not invoke the _gl_close_fd_maybe_socket function in tests/. But I don't have a good solution for it. Any ideas? Bruno