faccessat.m4 720 B

1234567891011121314151617181920212223242526272829
  1. # serial 6
  2. # See if we need to provide faccessat replacement.
  3. dnl Copyright (C) 2009-2016 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. # Written by Eric Blake.
  8. AC_DEFUN([gl_FUNC_FACCESSAT],
  9. [
  10. AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
  11. dnl Persuade glibc <unistd.h> to declare faccessat().
  12. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  13. AC_CHECK_FUNCS_ONCE([faccessat])
  14. if test $ac_cv_func_faccessat = no; then
  15. HAVE_FACCESSAT=0
  16. fi
  17. ])
  18. # Prerequisites of lib/faccessat.m4.
  19. AC_DEFUN([gl_PREREQ_FACCESSAT],
  20. [
  21. AC_CHECK_FUNCS([access])
  22. ])