diff options
author | Fritz Elfert <felfert@to.com> | 2001-01-31 01:59:56 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-01-31 01:59:56 +0000 |
commit | 7e68b8205a603a7ec53ed0d9798126de155321f7 (patch) | |
tree | 95ffddd1b5e3dc4d1e585913cd2e95eb0ee2ae31 /conf/m4/kde/AC_CHECK_BOOL.m4 | |
parent | 0aa44f1a1017280fd2b0b7708c5c77e8b1b214c8 (diff) | |
download | plptools-7e68b8205a603a7ec53ed0d9798126de155321f7.tar.gz plptools-7e68b8205a603a7ec53ed0d9798126de155321f7.tar.bz2 plptools-7e68b8205a603a7ec53ed0d9798126de155321f7.zip |
Reworked configuration:
- Splitted up acinclude.m4
- Added m4 macros, needed for KDE stuff
Diffstat (limited to 'conf/m4/kde/AC_CHECK_BOOL.m4')
-rw-r--r-- | conf/m4/kde/AC_CHECK_BOOL.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/conf/m4/kde/AC_CHECK_BOOL.m4 b/conf/m4/kde/AC_CHECK_BOOL.m4 new file mode 100644 index 0000000..467bc74 --- /dev/null +++ b/conf/m4/kde/AC_CHECK_BOOL.m4 @@ -0,0 +1,16 @@ +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 +]) |