1 sinclude(../config/accross.m4)
3 dnl See if stdbool.h properly defines bool and true/false.
4 AC_DEFUN(gcc_AC_HEADER_STDBOOL,
5 [AC_CACHE_CHECK([for working stdbool.h],
6 ac_cv_header_stdbool_h,
7 [AC_TRY_COMPILE([#include <stdbool.h>],
9 ac_cv_header_stdbool_h=yes, ac_cv_header_stdbool_h=no)])
10 if test $ac_cv_header_stdbool_h = yes; then
11 AC_DEFINE(HAVE_STDBOOL_H, 1,
12 [Define if you have a working <stdbool.h> header file.])
16 dnl Check whether _Bool is built-in.
17 AC_DEFUN(gcc_AC_C__BOOL,
18 [AC_CACHE_CHECK(for built-in _Bool, gcc_cv_c__bool,
21 gcc_cv_c__bool=yes, gcc_cv_c__bool=no)
23 if test $gcc_cv_c__bool = yes; then
24 AC_DEFINE(HAVE__BOOL, 1, [Define if the \`_Bool' type is built-in.])