+2002-04-30 Bruno Haible <bruno@clisp.org>
+
+ * stdbool.h.in (_Bool): Omit the definition if _Bool is already known
+ as a builtin primitive type. Needed for cc on OSF/1 5.1.
+ * Makefile.am (stdbool.h): Substitute the value of HAVE__BOOL.
+
2002-04-26 Bruno Haible <bruno@clisp.org>
* basename.h: Use __GLIBC__ instead of __GNU_LIBRARY__, because
all-local c-ctype.lo execute.lo javacomp.lo javaexec.lo pipe-bidi.lo pipe-in.lo pipe-out.lo progname.lo tmpdir.lo wait-process.lo xerror.lo: @STDBOOL_H@
stdbool.h: stdbool.h.in
- cp $(srcdir)/stdbool.h.in stdbool.h
+ sed -e 's/@''HAVE__BOOL''@/@HAVE__BOOL@/g' < $(srcdir)/stdbool.h.in > stdbool.h
MOSTLYCLEANFILES = @STDBOOL_H@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2002 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
/* For the sake of symbolic names in gdb, define _Bool as an enum type. */
#ifndef __cplusplus
+# if !@HAVE__BOOL@
typedef enum { false = 0, true = 1 } _Bool;
+# endif
#else
typedef bool _Bool;
#endif
+2002-04-30 Bruno Haible <bruno@clisp.org>
+
+ * stdbool.m4 (gt_STDBOOL_H): If <stdbool.h> does not exist, check for
+ _Bool as a builtin primitive type. Needed for cc on OSF/1 5.1.
+
2002-04-24 Bruno Haible <bruno@clisp.org>
* gettext-0.11.2 released.
-# stdbool.m4 serial 1 (gettext-0.11)
+# stdbool.m4 serial 2 (gettext-0.11.3)
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
STDBOOL_H=''
else
STDBOOL_H='stdbool.h'
+ AC_MSG_CHECKING([for _Bool type])
+ AC_CACHE_VAL(gt_cv_type_Bool, [
+ AC_TRY_COMPILE([_Bool x = sizeof (_Bool);], [],
+ gt_cv_type_Bool=yes, gt_cv_type_Bool=no)])
+ AC_MSG_RESULT([$gt_cv_type_Bool])
+ if test $gt_cv_type_Bool = yes; then
+ HAVE__BOOL=1
+ else
+ HAVE__BOOL=0
+ fi
+ AC_SUBST(HAVE__BOOL)
fi
AC_SUBST(STDBOOL_H)
])