2020-01-14 00:25:28 +00:00
|
|
|
# unistd_h.m4 serial 77
|
2020-01-01 00:19:43 +00:00
|
|
|
dnl Copyright (C) 2006-2020 Free Software Foundation, Inc.
|
2011-01-09 07:33:50 +00:00
|
|
|
dnl This file is free software; the Free Software Foundation
|
|
|
|
dnl gives unlimited permission to copy and/or distribute it,
|
|
|
|
dnl with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
dnl Written by Simon Josefsson, Bruno Haible.
|
|
|
|
|
|
|
|
AC_DEFUN([gl_UNISTD_H],
|
|
|
|
[
|
|
|
|
dnl Use AC_REQUIRE here, so that the default behavior below is expanded
|
|
|
|
dnl once only, before all statements that occur in other macros.
|
|
|
|
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
|
|
|
|
|
|
gl_CHECK_NEXT_HEADERS([unistd.h])
|
|
|
|
if test $ac_cv_header_unistd_h = yes; then
|
|
|
|
HAVE_UNISTD_H=1
|
|
|
|
else
|
|
|
|
HAVE_UNISTD_H=0
|
|
|
|
fi
|
|
|
|
AC_SUBST([HAVE_UNISTD_H])
|
|
|
|
|
2011-09-11 16:52:58 +00:00
|
|
|
dnl Ensure the type pid_t gets defined.
|
|
|
|
AC_REQUIRE([AC_TYPE_PID_T])
|
|
|
|
|
2012-05-26 23:14:36 +00:00
|
|
|
dnl Determine WINDOWS_64_BIT_OFF_T.
|
|
|
|
AC_REQUIRE([gl_TYPE_OFF_T])
|
|
|
|
|
2011-01-09 07:33:50 +00:00
|
|
|
dnl Check for declarations of anything we want to poison if the
|
|
|
|
dnl corresponding gnulib module is not in use.
|
Merge from gnulib, improving some licensing wording.
This clarifies and fixes some licensing issues raised by Glenn Morris
<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
It also merges the latest version of texinfo.tex and has some
MSVC-related changes that don't affect Emacs.
* Makefile.in (GNULIB_TOOL_FLAGS): Avoid msvc-inval, msvc-nothrow,
pathmax, and raise, since these are needed only to address
MSVC-related issues that Emacs doesn't have.
* doc/misc/texinfo.tex, lib/dup2.c, lib/gnulib.mk, lib/signal.in.h:
* lib/sigprocmask.c, lib/stat.c, lib/stdio.in.h, lib/sys_stat.in.h:
* lib/unistd.in.h, m4/dup2.m4, m4/getloadavg.m4, m4/gl-comp.m4:
* m4/include_next.m4, m4/signal_h.m4, m4/signalblocking.m4:
* m4/stdint.m4, m4/stdio_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Merge from gnulib.
2011-09-26 21:30:18 +00:00
|
|
|
gl_WARN_ON_USE_PREPARE([[
|
|
|
|
#if HAVE_UNISTD_H
|
|
|
|
# include <unistd.h>
|
|
|
|
#endif
|
2011-01-09 07:33:50 +00:00
|
|
|
/* Some systems declare various items in the wrong headers. */
|
|
|
|
#if !(defined __GLIBC__ && !defined __UCLIBC__)
|
|
|
|
# include <fcntl.h>
|
|
|
|
# include <stdio.h>
|
|
|
|
# include <stdlib.h>
|
Update from Gnulib
This incorporates:
2018-05-21 crypto: omit stream ops Emacs doesn’t need
2018-05-13 truncate: Fix compilation error on Android
2018-05-13 imaxdiv: Fix compilation error on Android
2018-05-13 Support selective inclusion of recent mingw.org headers
2018-05-13 Add cross-compilation guesses for Linux systems sans glibc
2018-05-13 stdioext: Fix compilation errors with newer Android headers
2018-05-07 af_alg: Pacify --enable-gcc-warnings
2018-05-06 af_alg: Fix bug with streams that are not at position 0
2018-05-06 Followup to 'af_alg: New module'
2018-05-05 crypto/{md5,sha1,sha256,sha512}: simplify
2018-05-05 af_alg: New module
2018-05-05 af_alg: Improve function signature
2018-04-28 md5sum: Use AF_ALG when available
2018-04-28 sha512sum: Use AF_ALG when available
2018-04-28 sha256sum: Use AF_ALG when available
2018-04-28 sha1sum: Use AF_ALG when available
2018-05-05 all: Replace more http URLs by https URLs
2018-05-03 maint: port more modules to GCC 8
2018-05-03 Simplify code; drop support for Borland C++ on Windows
* admin/merge-gnulib (GNULIB_MODULES): Use crypto/md5-buffer
rather than crypto/md5, since Emacs doesn’t use the stream
operations that in recent Gnulib pull in other stuff Emacs doesn’t
need. Similarly for crypto/sha1-buffer, crypto/sha256-buffer,
crypto/sha512-buffer.
* build-aux/config.guess, build-aux/config.sub, lib/dosname.h:
* lib/dup2.c, lib/errno.in.h, lib/euidaccess.c, lib/fcntl.c:
* lib/fcntl.in.h, lib/fpending.c, lib/fsync.c, lib/getdtablesize.c:
* lib/getopt.c, lib/gettimeofday.c, lib/inttypes.in.h, lib/md5.c:
* lib/md5.h, lib/open.c, lib/pipe2.c, lib/putenv.c, lib/sha1.c:
* lib/sha1.h, lib/sha256.c, lib/sha256.h, lib/sha512.c:
* lib/sha512.h, lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/stdlib.in.h, lib/sys_stat.in.h, lib/sys_types.in.h:
* lib/timespec.h, lib/unistd.in.h, lib/utimens.c, m4/c-strtod.m4:
* m4/gnulib-common.m4, m4/inttypes.m4, m4/lstat.m4, m4/nocrash.m4:
* m4/pselect.m4, m4/readlink.m4, m4/stdio_h.m4, m4/symlink.m4:
* m4/unistd_h.m4, m4/utimens.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2018-05-21 18:42:18 +00:00
|
|
|
# if defined _WIN32 && ! defined __CYGWIN__
|
2011-01-09 07:33:50 +00:00
|
|
|
# include <io.h>
|
|
|
|
# endif
|
|
|
|
#endif
|
Update from Gnulib
This incorporates:
2019-09-22 Update some URLs
2019-09-15 fcntl-h: fix compilation error of creat.c on MSVC
2019-09-15 creat: new module
2019-09-15 access: new module
2019-09-09 Add option to assume best, not worst, when cross-compiling.
* build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
* lib/careadlinkat.c, lib/careadlinkat.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/diffseq.h, lib/fcntl.in.h:
* lib/ftoastr.c, lib/get-permissions.c:
* lib/ieee754.in.h, lib/inttypes.in.h, lib/mktime.c, lib/open.c:
* lib/pathmax.h, lib/pipe2.c, lib/stddef.in.h, lib/stdint.in.h:
* lib/stdlib.in.h, lib/str-two-way.h, lib/string.in.h, lib/time.in.h:
* lib/timegm.c, lib/unistd.in.h, m4/canonicalize.m4:
* m4/extern-inline.m4, m4/fcntl_h.m4, m4/fdopendir.m4:
* m4/getgroups.m4, m4/getopt.m4, m4/gettimeofday.m4:
* m4/gnulib-common.m4, m4/largefile.m4:
* m4/lstat.m4, m4/memmem.m4, m4/mktime.m4, m4/nocrash.m4, m4/open.m4:
* m4/pselect.m4, m4/putenv.m4, m4/readlink.m4, m4/regex.m4:
* m4/symlink.m4, m4/unistd_h.m4, m4/utimens.m4, m4/utimes.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* m4/open-slash.m4: New file, copied from Gnulib.
2019-09-23 06:50:59 +00:00
|
|
|
]], [access chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir
|
|
|
|
fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize
|
|
|
|
getgroups gethostname getlogin getlogin_r getpagesize getpass
|
2012-05-26 23:14:36 +00:00
|
|
|
getusershell setusershell endusershell
|
|
|
|
group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite
|
Merge from gnulib
This incorporates:
2017-05-13 largefile: Simplify
2017-05-13 largefile: Improve and document
2017-05-13 truncate: New module
2017-05-13 windows-stat-timespec: New module
2017-05-13 windows-stat-override: New module
2017-05-11 getopt-posix: port to mingw
2017-05-11 gettimeofday: Increase precision on mingw
2017-05-10 time: Fix missing initialization of HAVE_TIMEZONE_T
2017-05-10 Implement a way to opt out from MSVC support
2017-05-09 tzset: Expand comment about TZ problem on native Windows
* build-aux/config.guess, lib/dup2.c, lib/fcntl.c, lib/fsync.c:
* lib/getdtablesize.c, lib/getopt.c, lib/gettimeofday.c:
* lib/mktime.c, lib/stat-time.h, lib/sys_stat.in.h, lib/unistd.in.h:
* lib/utimens.c, m4/gettimeofday.m4, m4/largefile.m4:
* m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/time_h.m4, m4/time_rz.m4:
* m4/unistd_h.m4: Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2017-05-14 08:29:05 +00:00
|
|
|
readlink readlinkat rmdir sethostname sleep symlink symlinkat
|
|
|
|
truncate ttyname_r unlink unlinkat usleep])
|
2011-01-09 07:33:50 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
|
|
|
|
[
|
|
|
|
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
|
|
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
|
|
gl_MODULE_INDICATOR_SET_VARIABLE([$1])
|
|
|
|
dnl Define it also as a C macro, for the benefit of the unit tests.
|
|
|
|
gl_MODULE_INDICATOR_FOR_TESTS([$1])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
|
|
|
[
|
Update from Gnulib
This incorporates:
2019-09-22 Update some URLs
2019-09-15 fcntl-h: fix compilation error of creat.c on MSVC
2019-09-15 creat: new module
2019-09-15 access: new module
2019-09-09 Add option to assume best, not worst, when cross-compiling.
* build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
* lib/careadlinkat.c, lib/careadlinkat.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/diffseq.h, lib/fcntl.in.h:
* lib/ftoastr.c, lib/get-permissions.c:
* lib/ieee754.in.h, lib/inttypes.in.h, lib/mktime.c, lib/open.c:
* lib/pathmax.h, lib/pipe2.c, lib/stddef.in.h, lib/stdint.in.h:
* lib/stdlib.in.h, lib/str-two-way.h, lib/string.in.h, lib/time.in.h:
* lib/timegm.c, lib/unistd.in.h, m4/canonicalize.m4:
* m4/extern-inline.m4, m4/fcntl_h.m4, m4/fdopendir.m4:
* m4/getgroups.m4, m4/getopt.m4, m4/gettimeofday.m4:
* m4/gnulib-common.m4, m4/largefile.m4:
* m4/lstat.m4, m4/memmem.m4, m4/mktime.m4, m4/nocrash.m4, m4/open.m4:
* m4/pselect.m4, m4/putenv.m4, m4/readlink.m4, m4/regex.m4:
* m4/symlink.m4, m4/unistd_h.m4, m4/utimens.m4, m4/utimes.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* m4/open-slash.m4: New file, copied from Gnulib.
2019-09-23 06:50:59 +00:00
|
|
|
GNULIB_ACCESS=0; AC_SUBST([GNULIB_ACCESS])
|
Merge from gnulib, improving some licensing wording.
This clarifies and fixes some licensing issues raised by Glenn Morris
<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
It also merges the latest version of texinfo.tex and has some
MSVC-related changes that don't affect Emacs.
* Makefile.in (GNULIB_TOOL_FLAGS): Avoid msvc-inval, msvc-nothrow,
pathmax, and raise, since these are needed only to address
MSVC-related issues that Emacs doesn't have.
* doc/misc/texinfo.tex, lib/dup2.c, lib/gnulib.mk, lib/signal.in.h:
* lib/sigprocmask.c, lib/stat.c, lib/stdio.in.h, lib/sys_stat.in.h:
* lib/unistd.in.h, m4/dup2.m4, m4/getloadavg.m4, m4/gl-comp.m4:
* m4/include_next.m4, m4/signal_h.m4, m4/signalblocking.m4:
* m4/stdint.m4, m4/stdio_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Merge from gnulib.
2011-09-26 21:30:18 +00:00
|
|
|
GNULIB_CHDIR=0; AC_SUBST([GNULIB_CHDIR])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN])
|
|
|
|
GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE])
|
2019-06-06 15:56:03 +00:00
|
|
|
GNULIB_COPY_FILE_RANGE=0; AC_SUBST([GNULIB_COPY_FILE_RANGE])
|
Merge from gnulib, improving some licensing wording.
This clarifies and fixes some licensing issues raised by Glenn Morris
<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
It also merges the latest version of texinfo.tex and has some
MSVC-related changes that don't affect Emacs.
* Makefile.in (GNULIB_TOOL_FLAGS): Avoid msvc-inval, msvc-nothrow,
pathmax, and raise, since these are needed only to address
MSVC-related issues that Emacs doesn't have.
* doc/misc/texinfo.tex, lib/dup2.c, lib/gnulib.mk, lib/signal.in.h:
* lib/sigprocmask.c, lib/stat.c, lib/stdio.in.h, lib/sys_stat.in.h:
* lib/unistd.in.h, m4/dup2.m4, m4/getloadavg.m4, m4/gl-comp.m4:
* m4/include_next.m4, m4/signal_h.m4, m4/signalblocking.m4:
* m4/stdint.m4, m4/stdio_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Merge from gnulib.
2011-09-26 21:30:18 +00:00
|
|
|
GNULIB_DUP=0; AC_SUBST([GNULIB_DUP])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2])
|
|
|
|
GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3])
|
|
|
|
GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON])
|
|
|
|
GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS])
|
|
|
|
GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT])
|
|
|
|
GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR])
|
|
|
|
GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT])
|
Merge from gnulib, improving some licensing wording.
This clarifies and fixes some licensing issues raised by Glenn Morris
<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
It also merges the latest version of texinfo.tex and has some
MSVC-related changes that don't affect Emacs.
* Makefile.in (GNULIB_TOOL_FLAGS): Avoid msvc-inval, msvc-nothrow,
pathmax, and raise, since these are needed only to address
MSVC-related issues that Emacs doesn't have.
* doc/misc/texinfo.tex, lib/dup2.c, lib/gnulib.mk, lib/signal.in.h:
* lib/sigprocmask.c, lib/stat.c, lib/stdio.in.h, lib/sys_stat.in.h:
* lib/unistd.in.h, m4/dup2.m4, m4/getloadavg.m4, m4/gl-comp.m4:
* m4/include_next.m4, m4/signal_h.m4, m4/signalblocking.m4:
* m4/stdint.m4, m4/stdio_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Merge from gnulib.
2011-09-26 21:30:18 +00:00
|
|
|
GNULIB_FDATASYNC=0; AC_SUBST([GNULIB_FDATASYNC])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC])
|
|
|
|
GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE])
|
|
|
|
GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD])
|
|
|
|
GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME])
|
|
|
|
GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE])
|
|
|
|
GNULIB_GETGROUPS=0; AC_SUBST([GNULIB_GETGROUPS])
|
|
|
|
GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME])
|
|
|
|
GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN])
|
|
|
|
GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
|
2020-01-14 00:25:28 +00:00
|
|
|
GNULIB_GETOPT_POSIX=0; AC_SUBST([GNULIB_GETOPT_POSIX])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
|
2018-08-28 01:59:46 +00:00
|
|
|
GNULIB_GETPASS=0; AC_SUBST([GNULIB_GETPASS])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
|
2011-05-16 00:51:54 +00:00
|
|
|
GNULIB_GROUP_MEMBER=0; AC_SUBST([GNULIB_GROUP_MEMBER])
|
2012-05-26 23:14:36 +00:00
|
|
|
GNULIB_ISATTY=0; AC_SUBST([GNULIB_ISATTY])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
|
|
|
|
GNULIB_LINK=0; AC_SUBST([GNULIB_LINK])
|
|
|
|
GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT])
|
|
|
|
GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
|
|
|
|
GNULIB_PIPE=0; AC_SUBST([GNULIB_PIPE])
|
|
|
|
GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2])
|
|
|
|
GNULIB_PREAD=0; AC_SUBST([GNULIB_PREAD])
|
|
|
|
GNULIB_PWRITE=0; AC_SUBST([GNULIB_PWRITE])
|
|
|
|
GNULIB_READ=0; AC_SUBST([GNULIB_READ])
|
|
|
|
GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
|
|
|
|
GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT])
|
|
|
|
GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR])
|
2012-05-26 23:14:36 +00:00
|
|
|
GNULIB_SETHOSTNAME=0; AC_SUBST([GNULIB_SETHOSTNAME])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP])
|
|
|
|
GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK])
|
|
|
|
GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT])
|
Merge from gnulib
This incorporates:
2017-05-13 largefile: Simplify
2017-05-13 largefile: Improve and document
2017-05-13 truncate: New module
2017-05-13 windows-stat-timespec: New module
2017-05-13 windows-stat-override: New module
2017-05-11 getopt-posix: port to mingw
2017-05-11 gettimeofday: Increase precision on mingw
2017-05-10 time: Fix missing initialization of HAVE_TIMEZONE_T
2017-05-10 Implement a way to opt out from MSVC support
2017-05-09 tzset: Expand comment about TZ problem on native Windows
* build-aux/config.guess, lib/dup2.c, lib/fcntl.c, lib/fsync.c:
* lib/getdtablesize.c, lib/getopt.c, lib/gettimeofday.c:
* lib/mktime.c, lib/stat-time.h, lib/sys_stat.in.h, lib/unistd.in.h:
* lib/utimens.c, m4/gettimeofday.m4, m4/largefile.m4:
* m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/time_h.m4, m4/time_rz.m4:
* m4/unistd_h.m4: Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2017-05-14 08:29:05 +00:00
|
|
|
GNULIB_TRUNCATE=0; AC_SUBST([GNULIB_TRUNCATE])
|
2011-04-18 04:03:18 +00:00
|
|
|
GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R])
|
|
|
|
GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING])
|
|
|
|
GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
|
|
|
|
GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK])
|
|
|
|
GNULIB_UNLINKAT=0; AC_SUBST([GNULIB_UNLINKAT])
|
|
|
|
GNULIB_USLEEP=0; AC_SUBST([GNULIB_USLEEP])
|
|
|
|
GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE])
|
2011-01-09 07:33:50 +00:00
|
|
|
dnl Assume proper GNU behavior unless another module says otherwise.
|
|
|
|
HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN])
|
2019-06-06 15:56:03 +00:00
|
|
|
HAVE_COPY_FILE_RANGE=1; AC_SUBST([HAVE_COPY_FILE_RANGE])
|
2011-01-09 07:33:50 +00:00
|
|
|
HAVE_DUP2=1; AC_SUBST([HAVE_DUP2])
|
|
|
|
HAVE_DUP3=1; AC_SUBST([HAVE_DUP3])
|
|
|
|
HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
|
|
|
|
HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT])
|
|
|
|
HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR])
|
|
|
|
HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT])
|
Merge from gnulib, improving some licensing wording.
This clarifies and fixes some licensing issues raised by Glenn Morris
<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
It also merges the latest version of texinfo.tex and has some
MSVC-related changes that don't affect Emacs.
* Makefile.in (GNULIB_TOOL_FLAGS): Avoid msvc-inval, msvc-nothrow,
pathmax, and raise, since these are needed only to address
MSVC-related issues that Emacs doesn't have.
* doc/misc/texinfo.tex, lib/dup2.c, lib/gnulib.mk, lib/signal.in.h:
* lib/sigprocmask.c, lib/stat.c, lib/stdio.in.h, lib/sys_stat.in.h:
* lib/unistd.in.h, m4/dup2.m4, m4/getloadavg.m4, m4/gl-comp.m4:
* m4/include_next.m4, m4/signal_h.m4, m4/signalblocking.m4:
* m4/stdint.m4, m4/stdio_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Merge from gnulib.
2011-09-26 21:30:18 +00:00
|
|
|
HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC])
|
2011-01-09 07:33:50 +00:00
|
|
|
HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
|
|
|
|
HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
|
|
|
|
HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
|
|
|
|
HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS])
|
|
|
|
HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
|
|
|
|
HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN])
|
|
|
|
HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
|
2018-08-28 01:59:46 +00:00
|
|
|
HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS])
|
2011-05-16 00:51:54 +00:00
|
|
|
HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER])
|
2011-01-09 07:33:50 +00:00
|
|
|
HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN])
|
|
|
|
HAVE_LINK=1; AC_SUBST([HAVE_LINK])
|
|
|
|
HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT])
|
|
|
|
HAVE_PIPE=1; AC_SUBST([HAVE_PIPE])
|
|
|
|
HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2])
|
|
|
|
HAVE_PREAD=1; AC_SUBST([HAVE_PREAD])
|
|
|
|
HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE])
|
|
|
|
HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
|
|
|
|
HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT])
|
2012-05-26 23:14:36 +00:00
|
|
|
HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME])
|
2011-01-09 07:33:50 +00:00
|
|
|
HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
|
|
|
|
HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK])
|
|
|
|
HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT])
|
|
|
|
HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT])
|
|
|
|
HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP])
|
|
|
|
HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
|
|
|
|
HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR])
|
Merge from gnulib, improving some licensing wording.
This clarifies and fixes some licensing issues raised by Glenn Morris
<http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
It also merges the latest version of texinfo.tex and has some
MSVC-related changes that don't affect Emacs.
* Makefile.in (GNULIB_TOOL_FLAGS): Avoid msvc-inval, msvc-nothrow,
pathmax, and raise, since these are needed only to address
MSVC-related issues that Emacs doesn't have.
* doc/misc/texinfo.tex, lib/dup2.c, lib/gnulib.mk, lib/signal.in.h:
* lib/sigprocmask.c, lib/stat.c, lib/stdio.in.h, lib/sys_stat.in.h:
* lib/unistd.in.h, m4/dup2.m4, m4/getloadavg.m4, m4/gl-comp.m4:
* m4/include_next.m4, m4/signal_h.m4, m4/signalblocking.m4:
* m4/stdint.m4, m4/stdio_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Merge from gnulib.
2011-09-26 21:30:18 +00:00
|
|
|
HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC])
|
2011-01-09 07:33:50 +00:00
|
|
|
HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME])
|
2017-01-01 09:32:27 +00:00
|
|
|
HAVE_DECL_GETLOGIN=1; AC_SUBST([HAVE_DECL_GETLOGIN])
|
2011-01-09 07:33:50 +00:00
|
|
|
HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
|
|
|
|
HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE])
|
|
|
|
HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL])
|
2012-05-26 23:14:36 +00:00
|
|
|
HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME])
|
Update from Gnulib
This incorporates:
2018-05-21 crypto: omit stream ops Emacs doesn’t need
2018-05-13 truncate: Fix compilation error on Android
2018-05-13 imaxdiv: Fix compilation error on Android
2018-05-13 Support selective inclusion of recent mingw.org headers
2018-05-13 Add cross-compilation guesses for Linux systems sans glibc
2018-05-13 stdioext: Fix compilation errors with newer Android headers
2018-05-07 af_alg: Pacify --enable-gcc-warnings
2018-05-06 af_alg: Fix bug with streams that are not at position 0
2018-05-06 Followup to 'af_alg: New module'
2018-05-05 crypto/{md5,sha1,sha256,sha512}: simplify
2018-05-05 af_alg: New module
2018-05-05 af_alg: Improve function signature
2018-04-28 md5sum: Use AF_ALG when available
2018-04-28 sha512sum: Use AF_ALG when available
2018-04-28 sha256sum: Use AF_ALG when available
2018-04-28 sha1sum: Use AF_ALG when available
2018-05-05 all: Replace more http URLs by https URLs
2018-05-03 maint: port more modules to GCC 8
2018-05-03 Simplify code; drop support for Borland C++ on Windows
* admin/merge-gnulib (GNULIB_MODULES): Use crypto/md5-buffer
rather than crypto/md5, since Emacs doesn’t use the stream
operations that in recent Gnulib pull in other stuff Emacs doesn’t
need. Similarly for crypto/sha1-buffer, crypto/sha256-buffer,
crypto/sha512-buffer.
* build-aux/config.guess, build-aux/config.sub, lib/dosname.h:
* lib/dup2.c, lib/errno.in.h, lib/euidaccess.c, lib/fcntl.c:
* lib/fcntl.in.h, lib/fpending.c, lib/fsync.c, lib/getdtablesize.c:
* lib/getopt.c, lib/gettimeofday.c, lib/inttypes.in.h, lib/md5.c:
* lib/md5.h, lib/open.c, lib/pipe2.c, lib/putenv.c, lib/sha1.c:
* lib/sha1.h, lib/sha256.c, lib/sha256.h, lib/sha512.c:
* lib/sha512.h, lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/stdlib.in.h, lib/sys_stat.in.h, lib/sys_types.in.h:
* lib/timespec.h, lib/unistd.in.h, lib/utimens.c, m4/c-strtod.m4:
* m4/gnulib-common.m4, m4/inttypes.m4, m4/lstat.m4, m4/nocrash.m4:
* m4/pselect.m4, m4/readlink.m4, m4/stdio_h.m4, m4/symlink.m4:
* m4/unistd_h.m4, m4/utimens.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2018-05-21 18:42:18 +00:00
|
|
|
HAVE_DECL_TRUNCATE=1; AC_SUBST([HAVE_DECL_TRUNCATE])
|
2011-01-09 07:33:50 +00:00
|
|
|
HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R])
|
|
|
|
HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
|
|
|
|
HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
|
Update from Gnulib
This incorporates:
2019-09-22 Update some URLs
2019-09-15 fcntl-h: fix compilation error of creat.c on MSVC
2019-09-15 creat: new module
2019-09-15 access: new module
2019-09-09 Add option to assume best, not worst, when cross-compiling.
* build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
* lib/careadlinkat.c, lib/careadlinkat.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/diffseq.h, lib/fcntl.in.h:
* lib/ftoastr.c, lib/get-permissions.c:
* lib/ieee754.in.h, lib/inttypes.in.h, lib/mktime.c, lib/open.c:
* lib/pathmax.h, lib/pipe2.c, lib/stddef.in.h, lib/stdint.in.h:
* lib/stdlib.in.h, lib/str-two-way.h, lib/string.in.h, lib/time.in.h:
* lib/timegm.c, lib/unistd.in.h, m4/canonicalize.m4:
* m4/extern-inline.m4, m4/fcntl_h.m4, m4/fdopendir.m4:
* m4/getgroups.m4, m4/getopt.m4, m4/gettimeofday.m4:
* m4/gnulib-common.m4, m4/largefile.m4:
* m4/lstat.m4, m4/memmem.m4, m4/mktime.m4, m4/nocrash.m4, m4/open.m4:
* m4/pselect.m4, m4/putenv.m4, m4/readlink.m4, m4/regex.m4:
* m4/symlink.m4, m4/unistd_h.m4, m4/utimens.m4, m4/utimes.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* m4/open-slash.m4: New file, copied from Gnulib.
2019-09-23 06:50:59 +00:00
|
|
|
REPLACE_ACCESS=0; AC_SUBST([REPLACE_ACCESS])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
|
|
|
|
REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
|
|
|
|
REPLACE_DUP=0; AC_SUBST([REPLACE_DUP])
|
|
|
|
REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2])
|
2017-11-12 07:11:03 +00:00
|
|
|
REPLACE_FACCESSAT=0; AC_SUBST([REPLACE_FACCESSAT])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT])
|
2012-05-26 23:14:36 +00:00
|
|
|
REPLACE_FTRUNCATE=0; AC_SUBST([REPLACE_FTRUNCATE])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
|
|
|
|
REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME])
|
2013-10-03 07:06:52 +00:00
|
|
|
REPLACE_GETDTABLESIZE=0; AC_SUBST([REPLACE_GETDTABLESIZE])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R])
|
|
|
|
REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS])
|
|
|
|
REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
|
2018-08-28 01:59:46 +00:00
|
|
|
REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS])
|
2012-05-26 23:14:36 +00:00
|
|
|
REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
|
|
|
|
REPLACE_LINK=0; AC_SUBST([REPLACE_LINK])
|
|
|
|
REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT])
|
|
|
|
REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
|
|
|
|
REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD])
|
|
|
|
REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE])
|
2011-04-18 04:03:18 +00:00
|
|
|
REPLACE_READ=0; AC_SUBST([REPLACE_READ])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK])
|
2014-10-19 06:33:40 +00:00
|
|
|
REPLACE_READLINKAT=0; AC_SUBST([REPLACE_READLINKAT])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR])
|
|
|
|
REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP])
|
|
|
|
REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK])
|
2014-10-19 06:33:40 +00:00
|
|
|
REPLACE_SYMLINKAT=0; AC_SUBST([REPLACE_SYMLINKAT])
|
Merge from gnulib
This incorporates:
2017-05-13 largefile: Simplify
2017-05-13 largefile: Improve and document
2017-05-13 truncate: New module
2017-05-13 windows-stat-timespec: New module
2017-05-13 windows-stat-override: New module
2017-05-11 getopt-posix: port to mingw
2017-05-11 gettimeofday: Increase precision on mingw
2017-05-10 time: Fix missing initialization of HAVE_TIMEZONE_T
2017-05-10 Implement a way to opt out from MSVC support
2017-05-09 tzset: Expand comment about TZ problem on native Windows
* build-aux/config.guess, lib/dup2.c, lib/fcntl.c, lib/fsync.c:
* lib/getdtablesize.c, lib/getopt.c, lib/gettimeofday.c:
* lib/mktime.c, lib/stat-time.h, lib/sys_stat.in.h, lib/unistd.in.h:
* lib/utimens.c, m4/gettimeofday.m4, m4/largefile.m4:
* m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/time_h.m4, m4/time_rz.m4:
* m4/unistd_h.m4: Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2017-05-14 08:29:05 +00:00
|
|
|
REPLACE_TRUNCATE=0; AC_SUBST([REPLACE_TRUNCATE])
|
2011-01-09 07:33:50 +00:00
|
|
|
REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R])
|
|
|
|
REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK])
|
|
|
|
REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT])
|
|
|
|
REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP])
|
|
|
|
REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
|
|
|
|
UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
|
|
|
|
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
|
|
|
|
AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS])
|
|
|
|
])
|