update-copyright: generalize comment handling
[gnulib.git] / m4 / close.m4
index edfcfec..b1189f5 100644 (file)
@@ -1,12 +1,17 @@
-# close.m4 serial 1
-dnl Copyright (C) 2008 Free Software Foundation, Inc.
+# close.m4 serial 3
+dnl Copyright (C) 2008-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
 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
+  ])
 ])
 
 AC_DEFUN([gl_REPLACE_CLOSE],
@@ -16,4 +21,5 @@ AC_DEFUN([gl_REPLACE_CLOSE],
     AC_LIBOBJ([close])
   fi
   REPLACE_CLOSE=1
+  gl_REPLACE_FCLOSE
 ])