[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Including sys/stat.h
From: |
Akim Demaille |
Subject: |
Including sys/stat.h |
Date: |
16 Nov 2000 11:48:49 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_includes_default>: Include
sys/stat.h.
* acspecific.m4 (AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_BLOCKS)
(AC_STRUCT_ST_RDEV): Simplify.
* acfunctions.m4 (AC_FUNC_MMAP): Include sys/stat.h unconditionally.
* doc/autoconf.texi (Default Includes): Adjust.
(Particular Structures) <AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV>:
Adjust.
2000-11-16 Akim Demaille <address@hidden>
Index: acfunctions.m4
===================================================================
RCS file: /cvs/autoconf/acfunctions.m4,v
retrieving revision 1.20
diff -u -u -r1.20 acfunctions.m4
--- acfunctions.m4 2000/11/16 08:52:54 1.20
+++ acfunctions.m4 2000/11/16 10:53:54
@@ -948,7 +948,7 @@
# AC_FUNC_MMAP
# ------------
AC_DEFUN([AC_FUNC_MMAP],
-[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h)
+[AC_CHECK_HEADERS(stdlib.h unistd.h)
AC_CHECK_FUNCS(getpagesize)
AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
[AC_TRY_RUN(
@@ -985,9 +985,7 @@
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
-#if HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
+#include <sys/stat.h>
/* This mess was copied from the GNU getpagesize.h. */
#if !HAVE_GETPAGESIZE
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.629
diff -u -u -r1.629 acgeneral.m4
--- acgeneral.m4 2000/11/14 11:06:37 1.629
+++ acgeneral.m4 2000/11/16 10:54:37
@@ -810,6 +810,7 @@
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
+#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.315
diff -u -u -r1.315 acspecific.m4
--- acspecific.m4 2000/11/16 10:30:02 1.315
+++ acspecific.m4 2000/11/16 10:54:45
@@ -528,13 +528,10 @@
`HAVE_STRUCT_STAT_ST_BLKSIZE'. Remove this warning and
the `AC_DEFINE' when you adjust the code.])
AC_CHECK_MEMBERS([struct stat.st_blksize],
- [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
- [Define if your `struct stat' has
- `st_blksize'. Deprecated, use
- `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])],,
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
+ [Define if your `struct stat' has
+ `st_blksize'. Deprecated, use
+ `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])])
])# AC_STRUCT_ST_BLKSIZE
@@ -558,10 +555,7 @@
[Define if your `struct stat' has
`st_blocks'. Deprecated, use
`HAVE_STRUCT_STAT_ST_BLOCKS' instead.])],
- [AC_LIBOBJ([fileblocks])],
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ [AC_LIBOBJ([fileblocks])])
])# AC_STRUCT_ST_BLOCKS
@@ -576,10 +570,7 @@
[AC_DEFINE(HAVE_ST_RDEV, 1,
[Define if your `struct stat' has `st_rdev'.
Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV'
- instead.])],,
- [#include <sys/types.h>
-#include <sys/stat.h>
-])dnl
+ instead.])])
])# AC_STRUCT_ST_RDEV
Index: doc/autoconf.texi
===================================================================
RCS file: /cvs/autoconf/doc/autoconf.texi,v
retrieving revision 1.389
diff -u -u -r1.389 autoconf.texi
--- doc/autoconf.texi 2000/11/16 10:12:51 1.389
+++ doc/autoconf.texi 2000/11/16 10:56:44
@@ -55,7 +55,7 @@
configure source code packages using templates and an @code{m4} macro
package.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 Free Software
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 Free Software
Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this
@@ -2631,6 +2631,7 @@
@group
#include <stdio.h>
#include <sys/types.h>
+#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
@@ -3843,11 +3844,7 @@
the future. This macro is obsoleted, and should be replaced by
@example
address@hidden
-AC_CHECK_MEMBERS([struct stat.st_blksize],,,
-[#include <sys/types.h>
-#include <sys/stat.h>])
address@hidden group
+AC_CHECK_MEMBERS([struct stat.st_blksize])
@end example
@end defmac
@@ -3873,13 +3870,8 @@
This macro is obsoleted, and should be replaced by
@example
address@hidden
-AC_CHECK_MEMBERS([struct stat.st_rdev],,,
-[#include <sys/types.h>
-#include <sys/stat.h>])
address@hidden group
+AC_CHECK_MEMBERS([struct stat.st_rdev])
@end example
-
@end defmac
@defmac AC_STRUCT_TM
- Including sys/stat.h,
Akim Demaille <=