+ echo $ac_n "checking for bool""... $ac_c" 1>&6
+echo "configure:2248: checking for bool" >&5
+if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2253 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+ rm -rf conftest*
+ ac_cv_type_bool=yes
+else
+ rm -rf conftest*
+ ac_cv_type_bool=no
+fi
+rm -f conftest*
+
+fi
+echo "$ac_t""$ac_cv_type_bool" 1>&6
+if test $ac_cv_type_bool = no; then
+ cat >> confdefs.h <<\EOF
+#define bool char
+EOF
+
+fi
+