test for bool is now done in configure, not by manually testing compilers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-03-12 15:52:55 +00:00
parent 6184444ce5
commit 2d45abf154
3 changed files with 201 additions and 127 deletions

301
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -553,6 +553,24 @@ AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
dnl defines the size of certain types of variables in SIZEOF_???
dnl ######################
dnl # check C++ features #
dnl ######################
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
dnl Check for existence of builtin 'bool' data type
dnl
dnl do nothing for cross-compilation - assume bool is not defined
AC_MSG_CHECKING(if C++ compiler supports bool)
AC_TRY_RUN([ int main() {bool b = true; return 0;} ],
AC_DEFINE(HAVE_BOOL) AC_MSG_RESULT(yes),
AC_MSG_RESULT(no),
AC_MSG_RESULT(no assumed for cross-compilation))
AC_LANG_RESTORE
dnl ############################
dnl # checks library functions #
dnl ############################

View File

@@ -35,6 +35,15 @@
#undef __ULTRIX__
#undef __DATA_GENERAL__
/* ------------------------------------------------------------------------ */
/* compiler options */
/* ------------------------------------------------------------------------ */
/*
* Supports bool type
*/
#define HAVE_BOOL 0
/* ------------------------------------------------------------------------ */
/* library options */
/* ------------------------------------------------------------------------ */