+2005-06-22 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * configure.in: Check for C99 conformant stdbool.h.
+
2005-06-22 Hrvoje Niksic <hniksic@xemacs.org>
* MAILING-LIST: Remove reference to the obsolete `wget-cvs'
dnl This is because Autoconf default includes check for STDC_HEADERS,
dnl HAVE_SYS_TYPES_H, etc. before including them.
AC_HEADER_STDC
+AC_HEADER_STDBOOL
AC_CHECK_HEADERS(sys/types.h sys/stat.h)
dnl Now check for the others.
AC_CHECK_HEADERS(string.h strings.h limits.h unistd.h sys/time.h)
+2005-06-22 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * sysdep.h: Include the stdbool.h/_Bool/bool blurb from Autoconf.
+
2005-06-22 Hrvoje Niksic <hniksic@xemacs.org>
* init.c (cmd_lockable_boolean): Removed.
# include <io.h>
#endif /* __WATCOMC__ */
+/* Provide support for C99-type boolean type "bool". This blurb comes
+ straight from the Autoconf 2.59 manual. */
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# if ! HAVE__BOOL
+# ifdef __cplusplus
+typedef bool _Bool;
+# else
+typedef unsigned char _Bool;
+# endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
+
/* Needed for compilation under OS/2: */
#ifdef __EMX__
# ifndef S_ISLNK