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.
8 dnl Written by Paul Eggert.
10 AC_DEFUN([gl_FCNTL_H],
12 AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
13 AC_REQUIRE([gl_FCNTL_O_FLAGS])
14 gl_CHECK_NEXT_HEADERS([fcntl.h])
17 AC_DEFUN([gl_FCNTL_MODULE_INDICATOR],
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
24 AC_DEFUN([gl_FCNTL_H_DEFAULTS],
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])