]> git.cworth.org Git - tar/blob - m4/close.m4
Imported Upstream version 1.21
[tar] / m4 / close.m4
1 # close.m4 serial 2
2 dnl Copyright (C) 2008 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_CLOSE],
8 [
9   m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [
10     gl_PREREQ_SYS_H_WINSOCK2
11     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
12       gl_REPLACE_CLOSE
13     fi
14   ])
15 ])
16
17 AC_DEFUN([gl_REPLACE_CLOSE],
18 [
19   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
20   if test $REPLACE_CLOSE != 1; then
21     AC_LIBOBJ([close])
22   fi
23   REPLACE_CLOSE=1
24   gl_REPLACE_FCLOSE
25 ])