Annotation of embedaddon/libiconv/srcm4/fcntl_h.m4, revision 1.1
1.1 ! misho 1: # serial 13
! 2: # Configure fcntl.h.
! 3: dnl Copyright (C) 2006-2007, 2009-2011 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_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_NONBLOCKING=0; AC_SUBST([GNULIB_NONBLOCKING])
! 36: GNULIB_OPEN=0; AC_SUBST([GNULIB_OPEN])
! 37: GNULIB_OPENAT=0; AC_SUBST([GNULIB_OPENAT])
! 38: dnl Assume proper GNU behavior unless another module says otherwise.
! 39: HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL])
! 40: HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT])
! 41: REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL])
! 42: REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN])
! 43: REPLACE_OPENAT=0; AC_SUBST([REPLACE_OPENAT])
! 44: ])
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>