unistd_h.m4 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # unistd_h.m4 serial 16
  2. dnl Copyright (C) 2006-2008 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl Written by Simon Josefsson, Bruno Haible.
  7. AC_DEFUN([gl_UNISTD_H],
  8. [
  9. dnl Use AC_REQUIRE here, so that the default behavior below is expanded
  10. dnl once only, before all statements that occur in other macros.
  11. AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
  12. gl_CHECK_NEXT_HEADERS([unistd.h])
  13. AC_CHECK_HEADERS_ONCE([unistd.h])
  14. if test $ac_cv_header_unistd_h = yes; then
  15. HAVE_UNISTD_H=1
  16. else
  17. HAVE_UNISTD_H=0
  18. fi
  19. AC_SUBST([HAVE_UNISTD_H])
  20. ])
  21. AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
  22. [
  23. dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
  24. AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
  25. GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
  26. ])
  27. AC_DEFUN([gl_UNISTD_H_DEFAULTS],
  28. [
  29. GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN])
  30. GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE])
  31. GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2])
  32. GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON])
  33. GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS])
  34. GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR])
  35. GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC])
  36. GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE])
  37. GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD])
  38. GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME])
  39. GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE])
  40. GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME])
  41. GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
  42. GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
  43. GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
  44. GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
  45. GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
  46. GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
  47. GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP])
  48. GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
  49. GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE])
  50. dnl Assume proper GNU behavior unless another module says otherwise.
  51. HAVE_DUP2=1; AC_SUBST([HAVE_DUP2])
  52. HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
  53. HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
  54. HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
  55. HAVE_GETDOMAINNAME=1; AC_SUBST([HAVE_GETDOMAINNAME])
  56. HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
  57. HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
  58. HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
  59. HAVE_GETUSERSHELL=1; AC_SUBST([HAVE_GETUSERSHELL])
  60. HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
  61. HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
  62. HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
  63. HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
  64. HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
  65. HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
  66. REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
  67. REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
  68. REPLACE_FCHDIR=0; AC_SUBST([REPLACE_FCHDIR])
  69. REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
  70. REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
  71. REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
  72. REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
  73. REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
  74. UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
  75. ])