From da12888a428ea3a0a5170a33e38b78e59f298c52 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Sat, 27 Feb 1999 06:06:59 +0000 Subject: [PATCH] Add check for bool, might need this in 3rd-party code. Mozilla code should use PRBool. git-svn-id: svn://10.0.0.236/trunk@22314 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/configure.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mozilla/configure.in b/mozilla/configure.in index 1692a87ce5c..e305881caec 100644 --- a/mozilla/configure.in +++ b/mozilla/configure.in @@ -120,7 +120,7 @@ MKSHLIB='$(LD) $(DSO_LDOPTS)' DSO_LDOPTS='-shared -h $(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))' DSO_CFLAGS='-KPIC' -dnl gcc can come with its own linker so its better to use the pass-thru calls +dnl gcc can come with its own linker so it is better to use the pass-thru calls dnl MKSHLIB_FORCE_ALL is used to force the linker to include all object dnl files present in an archive. MKSHLIB_UNFORCE_ALL reverts the linker to dnl normal behavior. @@ -416,6 +416,18 @@ if test $ac_cv_cpp_namespaces = yes ; then AC_DEFINE(HAVE_CPP_NAMESPACES) fi + +AC_CACHE_CHECK(for C++ \"bool\" keyword, + ac_cv_cpp_bool, + [AC_TRY_COMPILE(bool b;, + b = true;, + ac_cv_cpp_bool=yes, + ac_cv_cpp_bool=no)]) +if test $ac_cv_cpp_bool = no ; then + AC_DEFINE(NEEDS_bool) +fi + + AC_CACHE_CHECK(for C++ \"explicit\" keyword, ac_cv_cpp_explicit, [AC_TRY_COMPILE(class X {