--- autoconf.texi.~1.740.~ 2003-06-07 09:16:57.000000000 +1000 +++ autoconf.texi 2003-06-07 09:17:17.000000000 +1000 @@ -3614,6 +3614,7 @@ @ovindex ALLOCA @c @fuindex alloca @prindex @code{alloca} address@hidden @file{alloca.h} Check how to get @code{alloca}. Tries to get a builtin version by checking for @file{alloca.h} or the predefined C preprocessor macros @code{__GNUC__} and @code{_AIX}. If this macro finds @file{alloca.h}, @@ -3723,6 +3724,7 @@ @prindex @code{fork} @c @fuindex vfork @prindex @code{vfork} address@hidden @file{vfork.h} This macro checks for the @code{fork} and @code{vfork} functions. If a working @code{fork} is found, define @code{HAVE_WORKING_FORK}. This macro checks whether @code{fork} is just a stub by trying to run it. @@ -3808,6 +3810,7 @@ those systems. @item address@hidden @file{nlist.h} If @file{nlist.h} is found, define @code{HAVE_NLIST_H}. @item @@ -4122,6 +4125,7 @@ @acindex{REPLACE_FNMATCH} @c @fuindex fnmatch @prindex @code{fnmatch} address@hidden @file{fnmatch.h} If the @code{fnmatch} function does not conform to @acronym{POSIX} (see @code{AC_FUNC_FNMATCH}), ask for its @code{AC_LIBOBJ} replacement. @@ -4283,6 +4287,8 @@ @table @asis @item @file{inttypes.h} vs.@: @file{stdint.h} address@hidden @file{inttypes.h} address@hidden @file{stdint.h} Paul Eggert notes that: ISO C 1999 says that @file{inttypes.h} includes @file{stdint.h}, so there's no need to include @file{stdint.h} separately in a standard environment. Many implementations have @@ -4292,9 +4298,11 @@ @file{stdint.h}; @file{stdint.h} seems to be a creation of the committee. @item @file{linux/irda.h} address@hidden @file{linux/irda.h} It requires @file{linux/types.h} and @file{sys/socket.h}. @item @file{net/if.h} address@hidden @file{net/if.h} On Darwin, this file requires that @file{sys/socket.h} be included beforehand. One should run: @@ -4320,15 +4328,19 @@ See above, item @file{inttypes.h} vs.@: @file{stdint.h}. @item @file{stdlib.h} address@hidden @file{stdlib.h} On many systems (e.g., Darwin), @file{stdio.h} is a prerequisite. @item @file{sys/socket.h} address@hidden @file{sys/socket.h} On Darwin, @file{stdlib.h} is a prerequisite. @item @file{sys/ucred.h} address@hidden @file{sys/ucred.h} On HP Tru64 5.1, @file{sys/types.h} is a prerequisite. @item @file{X11/extensions/scrnsaver.h} address@hidden @file{X11/extensions/scrnsaver.h} Using XFree86, this header requires @file{X11/Xlib.h}, which is probably so required that you might not even consider looking for it. @@ -4352,6 +4364,10 @@ @cvindex HAVE_NDIR_H @cvindex HAVE_SYS_DIR_H @cvindex HAVE_SYS_NDIR_H address@hidden @file{dirent.h} address@hidden @file{sys/ndir.h} address@hidden @file{sys/dir.h} address@hidden @file{ndir.h} Check for the following header files. For the first one that is found and defines @samp{DIR}, define the listed C preprocessor macro: @@ -4398,6 +4414,8 @@ @acindex{HEADER_MAJOR} @cvindex MAJOR_IN_MKDEV @cvindex MAJOR_IN_SYSMACROS address@hidden @file{sys/mkdev.h} address@hidden @file{sys/sysmacros.h} If @file{sys/types.h} does not define @code{major}, @code{minor}, and @code{makedev}, but @file{sys/mkdev.h} does, define @code{MAJOR_IN_MKDEV}; otherwise, if @file{sys/sysmacros.h} does, define @@ -4408,6 +4426,7 @@ @defmac AC_HEADER_STAT @acindex{HEADER_STAT} @acindex{STAT_MACROS_BROKEN} address@hidden @file{sys/stat.h} If the macros @code{S_ISDIR}, @code{S_ISREG}, etc.@: defined in @file{sys/stat.h} do not work properly (returning false positives), define @code{STAT_MACROS_BROKEN}. This is the case on Tektronix UTekV, @@ -4418,6 +4437,8 @@ @acindex{HEADER_STDBOOL} @cvindex HAVE_STDBOOL_H @cvindex HAVE__BOOL address@hidden @file{stdbool.h} address@hidden @file{system.h} If @file{stdbool.h} exists and is conformant to C99, define @code{HAVE_STDBOOL_H} to 1; if the type @code{_Bool} is defined, define @code{HAVE__BOOL} to 1. To fulfill the C99 requirements, your @@ -4446,6 +4467,11 @@ @defmac AC_HEADER_STDC @acindex{HEADER_STDC} @cvindex STDC_HEADERS address@hidden @file{stdlib.h} address@hidden @file{stdarg.h} address@hidden @file{string.h} address@hidden @file{float.h} address@hidden @file{ctype.h} Define @code{STDC_HEADERS} if the system has @acronym{ANSI} C header files. Specifically, this macro checks for @file{stdlib.h}, @file{stdarg.h}, @file{string.h}, and @file{float.h}; if the system has those, it @@ -4461,6 +4487,8 @@ functions) because many systems that have GCC do not have @acronym{ANSI} C header files. address@hidden @file{string.h} address@hidden @file{strings.h} On systems without @acronym{ANSI} C headers, there is so much variation that it is probably easier to declare the functions you use than to figure out exactly what the system header files declare. Some systems @@ -4513,6 +4541,7 @@ @defmac AC_HEADER_SYS_WAIT @acindex{HEADER_SYS_WAIT} @cvindex HAVE_SYS_WAIT_H address@hidden @file{sys/wait.h} If @file{sys/wait.h} exists and is compatible with @acronym{POSIX}, define @code{HAVE_SYS_WAIT_H}. Incompatibility can occur if @file{sys/wait.h} does not exist, or if it uses the old @acronym{BSD} @code{union wait} instead @@ -4538,6 +4567,7 @@ @end defmac @cvindex _POSIX_VERSION address@hidden @file{unistd.h} @code{_POSIX_VERSION} is defined when @file{unistd.h} is included on @acronym{POSIX} systems. If there is no @file{unistd.h}, it is definitely not a @acronym{POSIX} system. However, some address@hidden systems do @@ -4561,6 +4591,8 @@ @defmac AC_HEADER_TIME @acindex{HEADER_TIME} @cvindex TIME_WITH_SYS_TIME address@hidden @file{time.h} address@hidden @file{sys/time.h} If a program may include both @file{time.h} and @file{sys/time.h}, define @code{TIME_WITH_SYS_TIME}. On some older systems, @file{sys/time.h} includes @file{time.h}, but @file{time.h} is not @@ -4591,6 +4623,8 @@ @defmac AC_HEADER_TIOCGWINSZ @acindex{HEADER_TIOCGWINSZ} @cvindex GWINSZ_IN_SYS_IOCTL address@hidden @file{sys/ioctl.h} address@hidden @file{termios.h} @c FIXME: I need clarifications from Jim. If the use of @code{TIOCGWINSZ} requires @file{}, then define @code{GWINSZ_IN_SYS_IOCTL}. Otherwise @code{TIOCGWINSZ} can be @@ -4819,6 +4853,8 @@ @defmac AC_STRUCT_TM @acindex{STRUCT_TM} @cvindex TM_IN_SYS_TIME address@hidden @file{time.h} address@hidden @file{sys/time.h} If @file{time.h} does not define @code{struct tm}, define @code{TM_IN_SYS_TIME}, which means that including @file{sys/time.h} had better define @code{struct tm}. @@ -4889,6 +4925,8 @@ @node Particular Types @subsection Particular Type Checks address@hidden @file{sys/types.h} address@hidden @file{stdlib.h} These macros check for particular C types in @file{sys/types.h}, @file{stdlib.h} and others, if they exist. @@ -4902,6 +4940,7 @@ @defmac AC_TYPE_MBSTATE_T @acindex{TYPE_MBSTATE_T} @cvindex mbstate_t address@hidden @file{wchar.h} Define @code{HAVE_MBSTATE_T} if @code{} declares the @code{mbstate_t} type. Also, define @code{mbstate_t} to be a type if @code{} does not declare it. @@ -4928,6 +4967,7 @@ @defmac AC_TYPE_SIGNAL @acindex{TYPE_SIGNAL} @cvindex RETSIGTYPE address@hidden @file{signal.h} If @file{signal.h} declares @code{signal} as returning a pointer to a function returning @code{void}, define @code{RETSIGTYPE} to be @code{void}; otherwise, define it to be @code{int}.