048a9fcb9deee7e81092e90a2e074d9866e4e89f
[debian/gzip] / m4 / fcntl_h.m4
1 # serial 9
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
17 AC_DEFUN([gl_FCNTL_MODULE_INDICATOR],
18 [
19   dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
20   AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
21   GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
22 ])
23
24 AC_DEFUN([gl_FCNTL_H_DEFAULTS],
25 [
26   GNULIB_FCNTL=0;   AC_SUBST([GNULIB_FCNTL])
27   GNULIB_OPEN=0;    AC_SUBST([GNULIB_OPEN])
28   GNULIB_OPENAT=0;  AC_SUBST([GNULIB_OPENAT])
29   dnl Assume proper GNU behavior unless another module says otherwise.
30   HAVE_FCNTL=1;     AC_SUBST([HAVE_FCNTL])
31   HAVE_OPENAT=1;    AC_SUBST([HAVE_OPENAT])
32   REPLACE_FCNTL=0;  AC_SUBST([REPLACE_FCNTL])
33   REPLACE_OPEN=0;   AC_SUBST([REPLACE_OPEN])
34   REPLACE_OPENAT=0; AC_SUBST([REPLACE_OPENAT])
35 ])