+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
-#serial 13
+#serial 14
# Determine whether we need the chown wrapper.
dnl Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
# 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)])
])
-# 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,
AC_LIBOBJ([cloexec])
dnl Prerequisites of lib/cloexec.c.
- AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
-# 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.
# Prerequisites of lib/dup2.c.
AC_DEFUN([gl_PREREQ_DUP2], [
- AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
-# fsusage.m4 serial 15
+#serial 16
# Obtaining file system usage information.
# Copyright (C) 1997, 1998, 2000, 2001, 2003, 2004, 2005 Free Software
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
])
-#serial 9
+#serial 10
# Check for several getcwd bugs with long file names.
# If so, arrange to compile the wrapper function.
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,
#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
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)
:
])
-#serial 10
+#serial 11
# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# 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])
-# 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,
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
])
-# 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,
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])
])
-#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,
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)
])
-# 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,
# 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.