]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_includes_default>: Include
authorAkim Demaille <akim@epita.fr>
Fri, 17 Nov 2000 16:45:24 +0000 (16:45 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 17 Nov 2000 16:45:24 +0000 (16:45 +0000)
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.

ChangeLog
acfunctions.m4
acgeneral.m4
acspecific.m4
doc/autoconf.texi
lib/autoconf/functions.m4
lib/autoconf/general.m4
lib/autoconf/specific.m4

index 1f46366d4fd1588e3471bba98f03e02e36f332fe..397add56441d8ebdc5e0637e70fa1ebbccaa72a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2000-11-17  Akim Demaille  <akim@epita.fr>
+
+       * 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  <akim@epita.fr>
 
        * doc/autoconf.texi (Limitations of Usual Tools) <expr>:
index e499f2bab45817a8c6f6a830f577bfdff3279f59..72998fe429450fe20dd9e605d7f051b927af0d81 100644 (file)
@@ -948,7 +948,7 @@ fi
 # 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 @@ char *malloc ();
 #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 d9effa7a971b42cacd81ee92bf8cec95814768f1..c3d3c2fff5ec23039c28b5db3fff0952bfcb10fe 100644 (file)
@@ -810,6 +810,7 @@ dnl If ever you change this variable, please keep autoconf.texi in sync.
 ac_includes_default="\
 #include <stdio.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #if STDC_HEADERS
 # include <stdlib.h>
 # include <stddef.h>
index 1d5d6faefc726508d0e9ff22fc7aefa81272f8da..2ef36d6dd867d42cb4e04dc4858a6de440cc7b13 100644 (file)
@@ -528,13 +528,10 @@ AU_DEFUN([AC_STRUCT_ST_BLKSIZE],
         `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 @@ AC_DEFUN([AC_STRUCT_ST_BLOCKS],
                              [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_CHECK_MEMBERS([struct stat.st_rdev],
                  [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 360e248293408bc1629af8c2cbcb0e0307f53b96..b8be6c0feb4b145838419246636090846fa8e4ef 100644 (file)
@@ -55,7 +55,7 @@ This file documents the GNU Autoconf package for creating scripts to
 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 @@ Most generic macros provide the following default set of includes:
 @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 @@ If @code{struct stat} contains an @code{st_blksize} member, define
 the future.  This macro is obsoleted, and should be replaced by
 
 @example
-@group
-AC_CHECK_MEMBERS([struct stat.st_blksize],,,
-[#include <sys/types.h>
-#include <sys/stat.h>])
-@end group
+AC_CHECK_MEMBERS([struct stat.st_blksize])
 @end example
 @end defmac
 
@@ -3873,13 +3870,8 @@ is to be avoided, as its support will cease in the future.
 
 This macro is obsoleted, and should be replaced by
 @example
-@group
-AC_CHECK_MEMBERS([struct stat.st_rdev],,,
-[#include <sys/types.h>
-#include <sys/stat.h>])
-@end group
+AC_CHECK_MEMBERS([struct stat.st_rdev])
 @end example
-
 @end defmac
 
 @defmac AC_STRUCT_TM
index e499f2bab45817a8c6f6a830f577bfdff3279f59..72998fe429450fe20dd9e605d7f051b927af0d81 100644 (file)
@@ -948,7 +948,7 @@ fi
 # 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 @@ char *malloc ();
 #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 d9effa7a971b42cacd81ee92bf8cec95814768f1..c3d3c2fff5ec23039c28b5db3fff0952bfcb10fe 100644 (file)
@@ -810,6 +810,7 @@ dnl If ever you change this variable, please keep autoconf.texi in sync.
 ac_includes_default="\
 #include <stdio.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #if STDC_HEADERS
 # include <stdlib.h>
 # include <stddef.h>
index 1d5d6faefc726508d0e9ff22fc7aefa81272f8da..2ef36d6dd867d42cb4e04dc4858a6de440cc7b13 100644 (file)
@@ -528,13 +528,10 @@ AU_DEFUN([AC_STRUCT_ST_BLKSIZE],
         `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 @@ AC_DEFUN([AC_STRUCT_ST_BLOCKS],
                              [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_CHECK_MEMBERS([struct stat.st_rdev],
                  [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