diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-19 23:27:12 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-19 23:27:12 +0200 |
commit | 26fbe7f1e68bb0c96da32491efcf3696fe6c299b (patch) | |
tree | c4d95289187a64e9c7517bf73d8208026c3d2fb3 /gl/m4/fcntl_h.m4 | |
parent | 5f79e3e9f62ca5487d9881973149136ba1d19d3e (diff) | |
download | monitoring-plugins-26fbe7f1e68bb0c96da32491efcf3696fe6c299b.tar.gz |
Sync with the latest Gnulib code (6f2d632)
Diffstat (limited to 'gl/m4/fcntl_h.m4')
-rw-r--r-- | gl/m4/fcntl_h.m4 | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gl/m4/fcntl_h.m4 b/gl/m4/fcntl_h.m4 deleted file mode 100644 index e41915c3..00000000 --- a/gl/m4/fcntl_h.m4 +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | # serial 12 | ||
2 | # Configure fcntl.h. | ||
3 | dnl Copyright (C) 2006, 2007, 2009, 2010 Free Software Foundation, Inc. | ||
4 | dnl This file is free software; the Free Software Foundation | ||
5 | dnl gives unlimited permission to copy and/or distribute it, | ||
6 | dnl with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | dnl Written by Paul Eggert. | ||
9 | |||
10 | AC_DEFUN([gl_FCNTL_H], | ||
11 | [ | ||
12 | AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) | ||
13 | AC_REQUIRE([gl_FCNTL_O_FLAGS]) | ||
14 | gl_CHECK_NEXT_HEADERS([fcntl.h]) | ||
15 | |||
16 | dnl Check for declarations of anything we want to poison if the | ||
17 | dnl corresponding gnulib module is not in use, if it is not common | ||
18 | dnl enough to be declared everywhere. | ||
19 | gl_WARN_ON_USE_PREPARE([[#include <fcntl.h> | ||
20 | ]], [fcntl openat]) | ||
21 | ]) | ||
22 | |||
23 | AC_DEFUN([gl_FCNTL_MODULE_INDICATOR], | ||
24 | [ | ||
25 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | ||
26 | AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) | ||
27 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) | ||
28 | dnl Define it also as a C macro, for the benefit of the unit tests. | ||
29 | gl_MODULE_INDICATOR_FOR_TESTS([$1]) | ||
30 | ]) | ||
31 | |||
32 | AC_DEFUN([gl_FCNTL_H_DEFAULTS], | ||
33 | [ | ||
34 | GNULIB_FCNTL=0; AC_SUBST([GNULIB_FCNTL]) | ||
35 | GNULIB_OPEN=0; AC_SUBST([GNULIB_OPEN]) | ||
36 | GNULIB_OPENAT=0; AC_SUBST([GNULIB_OPENAT]) | ||
37 | dnl Assume proper GNU behavior unless another module says otherwise. | ||
38 | HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL]) | ||
39 | HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT]) | ||
40 | REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL]) | ||
41 | REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN]) | ||
42 | REPLACE_OPENAT=0; AC_SUBST([REPLACE_OPENAT]) | ||
43 | ]) | ||