From a27e5d8b046c193fad2c1eec19ecd33547369f85 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sat, 16 Apr 2005 09:53:30 +0000 Subject: Remove test for bool, because it was breaking the build for reasons I don't fully understand, and in any case it's unnecessary: any sensible C++ compiler will now have proper bool support. --- acconfig.h | 15 --------------- conf/m4/kde/AC_CHECK_BOOL.m4 | 16 ---------------- 2 files changed, 31 deletions(-) delete mode 100644 conf/m4/kde/AC_CHECK_BOOL.m4 diff --git a/acconfig.h b/acconfig.h index db3299c..576770a 100644 --- a/acconfig.h +++ b/acconfig.h @@ -12,9 +12,6 @@ /* Define this, if you have libreadline */ #undef HAVE_LIBREADLINE -/* Define if the C++ compiler supports BOOL */ -#undef HAVE_BOOL - /* Define this, if you want NLS support */ #undef ENABLE_NLS @@ -66,17 +63,5 @@ # define DONT_UPDATE_MTAB /* The mount table is obtained from the kernel (!?) */ #endif -#ifndef HAVE_BOOL -# ifndef bool -# define bool int -# endif -# ifndef true -# define true 1 -# endif -# ifndef false -# define false 0 -# endif -#endif - #endif /* _CONFIG_H_ */ diff --git a/conf/m4/kde/AC_CHECK_BOOL.m4 b/conf/m4/kde/AC_CHECK_BOOL.m4 deleted file mode 100644 index d718d43..0000000 --- a/conf/m4/kde/AC_CHECK_BOOL.m4 +++ /dev/null @@ -1,16 +0,0 @@ -AC_DEFUN([AC_CHECK_BOOL], -[ - AC_MSG_CHECKING([for bool]) - AC_CACHE_VAL(ac_cv_have_bool, - [ - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([], - [bool aBool = true;], - [ac_cv_have_bool="yes"], - [ac_cv_have_bool="no"]) - ]) dnl end AC_CHECK_VAL - AC_MSG_RESULT($ac_cv_have_bool) - if test "$ac_cv_have_bool" = "yes"; then - AC_DEFINE(HAVE_BOOL, 1, [Define if the C++ compiler supports BOOL]) - fi -]) -- cgit v1.2.3