+ echo $ac_n "checking for boolean""... $ac_c" 1>&6
+echo "configure:1973: checking for boolean" >&5
+if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1978 "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])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+ rm -rf conftest*
+ ac_cv_type_boolean=yes
+else
+ rm -rf conftest*
+ ac_cv_type_boolean=no
+fi
+rm -f conftest*
+
+fi
+echo "$ac_t""$ac_cv_type_boolean" 1>&6
+if test $ac_cv_type_boolean = no; then
+ cat >> confdefs.h <<\EOF
+#define boolean unsigned char
+EOF
+
+fi
+