summaryrefslogtreecommitdiffstats
path: root/source/lib/replace/libreplace.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 12:23:47 +0000
committerAndrew Tridgell <tridge@samba.org>2006-09-10 12:23:47 +0000
commitb6882786dfee8c89f020cfa66b04f7b37628e9e9 (patch)
treead0c12f2a38e736ae5cf14c343eda5dc5803a783 /source/lib/replace/libreplace.m4
parent4f3de74735cc479865a1221e92ebdd9d1f466eee (diff)
downloadsamba-b6882786dfee8c89f020cfa66b04f7b37628e9e9.tar.gz
samba-b6882786dfee8c89f020cfa66b04f7b37628e9e9.tar.xz
samba-b6882786dfee8c89f020cfa66b04f7b37628e9e9.zip
r18335: more portable bool tests
Diffstat (limited to 'source/lib/replace/libreplace.m4')
-rw-r--r--source/lib/replace/libreplace.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4
index cd9d171662d..a734704ae88 100644
--- a/source/lib/replace/libreplace.m4
+++ b/source/lib/replace/libreplace.m4
@@ -81,6 +81,15 @@ AC_INCLUDES_DEFAULT
#endif]
)
+AC_CHECK_TYPE(_Bool,
+[AC_DEFINE(HAVE__Bool, 1, [Whether the _Bool type is available])],,
+[
+AC_INCLUDES_DEFAULT
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#endif]
+)
+
AC_CACHE_CHECK([for working mmap],samba_cv_HAVE_MMAP,[
AC_TRY_RUN([#include "$libreplacedir/test/shared_mmap.c"],