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
This commit is contained 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 {
|
||||
|
||||
Reference in New Issue
Block a user