Mercurial > hg > octave-lyh > gnulib-hg
changeset 5956:ccf4c39a6263
Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 02 Jul 2005 09:58:35 +0000 |
parents | ace6ea191424 |
children | 70807d31e517 |
files | m4/ChangeLog m4/chown.m4 m4/cloexec.m4 m4/dup2.m4 m4/fsusage.m4 m4/getcwd-path-max.m4 m4/getcwd.m4 m4/mkstemp.m4 m4/mountlist.m4 m4/pagealign_alloc.m4 m4/save-cwd.m4 m4/unistd-safer.m4 |
diffstat | 12 files changed, 27 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,10 @@ +2005-07-02 Jim Meyering <jim@meyering.net> + + * chown.m4, cloexec.m4, dup2.m4, fsusage.m4: + * getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4: + * pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4: + Don't check for fcntl.h, and don't test for HAVE_FCNTL_H. + 2005-06-28 Simon Josefsson <jas@extundo.com> * check-version.m4: New file, suggested by Jim Meyering
--- a/m4/chown.m4 +++ b/m4/chown.m4 @@ -1,4 +1,4 @@ -#serial 13 +#serial 14 # Determine whether we need the chown wrapper. dnl Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free @@ -81,6 +81,6 @@ # Prerequisites of lib/chown.c. AC_DEFUN([gl_PREREQ_CHOWN], [ - AC_CHECK_HEADERS_ONCE(unistd.h fcntl.h) + AC_CHECK_HEADERS_ONCE(unistd.h) AC_CHECK_FUNC([fchown], , [AC_LIBOBJ(fchown-stub)]) ])
--- a/m4/cloexec.m4 +++ b/m4/cloexec.m4 @@ -1,4 +1,4 @@ -# cloexec.m4 serial 3 +#serial 4 dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,5 +10,5 @@ AC_LIBOBJ([cloexec]) dnl Prerequisites of lib/cloexec.c. - AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) ])
--- a/m4/dup2.m4 +++ b/m4/dup2.m4 @@ -1,5 +1,5 @@ -# dup2.m4 serial 2 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +#serial 3 +dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc. 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. @@ -14,5 +14,5 @@ # Prerequisites of lib/dup2.c. AC_DEFUN([gl_PREREQ_DUP2], [ - AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) ])
--- a/m4/fsusage.m4 +++ b/m4/fsusage.m4 @@ -1,4 +1,4 @@ -# fsusage.m4 serial 15 +#serial 16 # Obtaining file system usage information. # Copyright (C) 1997, 1998, 2000, 2001, 2003, 2004, 2005 Free Software @@ -255,7 +255,6 @@ AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA], [ AC_REQUIRE([gl_AC_TYPE_UINTMAX_T]) - AC_CHECK_HEADERS_ONCE(fcntl.h) AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h) gl_STATFS_TRUNCATES ])
--- a/m4/getcwd-path-max.m4 +++ b/m4/getcwd-path-max.m4 @@ -1,4 +1,4 @@ -#serial 9 +#serial 10 # Check for several getcwd bugs with long file names. # If so, arrange to compile the wrapper function. @@ -16,7 +16,6 @@ AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX], [ AC_CHECK_DECLS_ONCE(getcwd) - AC_CHECK_HEADERS_ONCE(fcntl.h) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CACHE_CHECK([whether getcwd handles long file names properly], gl_cv_func_getcwd_path_max, @@ -32,9 +31,7 @@ #include <limits.h> #include <sys/stat.h> #include <sys/types.h> -#if HAVE_FCNTL_H -# include <fcntl.h> -#endif +#include <fcntl.h> #ifndef AT_FDCWD # define AT_FDCWD 0
--- a/m4/getcwd.m4 +++ b/m4/getcwd.m4 @@ -63,6 +63,5 @@ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([AC_HEADER_DIRENT]) AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO]) - AC_CHECK_HEADERS_ONCE(fcntl.h) : ])
--- a/m4/mkstemp.m4 +++ b/m4/mkstemp.m4 @@ -1,4 +1,4 @@ -#serial 10 +#serial 11 # Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -65,7 +65,7 @@ # Prerequisites of lib/tempname.c. AC_DEFUN([gl_PREREQ_TEMPNAME], [ - AC_CHECK_HEADERS_ONCE(fcntl.h sys/time.h stdint.h unistd.h) + AC_CHECK_HEADERS_ONCE(sys/time.h stdint.h unistd.h) AC_CHECK_FUNCS(__secure_getenv gettimeofday) AC_CHECK_DECLS_ONCE(getenv) AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
--- a/m4/mountlist.m4 +++ b/m4/mountlist.m4 @@ -1,4 +1,4 @@ -# mountlist.m4 serial 6 +#serial 7 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -20,7 +20,7 @@ AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA], [ dnl Note gl_LIST_MOUNTED_FILE_SYSTEMS checks for mntent.h, not sys/mntent.h. - AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) AC_CHECK_HEADERS(sys/mntent.h) gl_FSTYPENAME ])
--- a/m4/pagealign_alloc.m4 +++ b/m4/pagealign_alloc.m4 @@ -1,4 +1,4 @@ -# pagealign_alloc.m4 serial 1 +#serial 2 dnl Copyright (C) 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -20,5 +20,5 @@ AC_REQUIRE([gl_FUNC_MMAP_ANON]) AC_REQUIRE([gl_GETPAGESIZE]) AC_CHECK_FUNCS_ONCE([posix_memalign]) - AC_CHECK_HEADERS_ONCE([fcntl.h unistd.h]) + AC_CHECK_HEADERS_ONCE([unistd.h]) ])
--- a/m4/save-cwd.m4 +++ b/m4/save-cwd.m4 @@ -1,4 +1,4 @@ -#serial 5 +#serial 6 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,5 +10,5 @@ AC_LIBOBJ([save-cwd]) dnl Prerequisites for lib/save-cwd.c. AC_CHECK_FUNCS_ONCE(fchdir) - AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) ])
--- a/m4/unistd-safer.m4 +++ b/m4/unistd-safer.m4 @@ -1,4 +1,4 @@ -# unistd-safer.m4 serial 3 +#serial 4 dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -16,7 +16,7 @@ # Prerequisites of lib/dup-safer.c. AC_DEFUN([gl_PREREQ_DUP_SAFER], [ - AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) ]) # Prerequisites of lib/fd-safer.c.