From 1ae95fddd96d7a289f1929cdcd253ed52aa5d631 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 24 Apr 2022 13:33:23 +0200 Subject: Remove obsolete configure test for 'bool' as discussed in fltk.coredev "RFC: autoconf test for 'bool' type" on Apr 12, 2021. --- configure.ac | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/configure.ac b/configure.ac index ca2a7bcc2..0d3537494 100644 --- a/configure.ac +++ b/configure.ac @@ -526,27 +526,6 @@ AS_CASE([$host_os], [darwin*], [ ]) ]) -dnl Does the C++ compiler support the bool type? -AC_CACHE_CHECK([whether the compiler recognizes bool as a built-in type], ac_cv_cxx_bool,[ - AC_LANG_PUSH([C++]) - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[ - int f(int x){return 1;} - int f(char x){return 1;} - int f(bool x){return 1;} - ]], [[ - bool b = true; - return f(b); - ]])], - [ac_cv_cxx_bool=yes], - [ac_cv_cxx_bool=no]) - AC_LANG_POP([]) -]) - -AS_IF([test "x$ac_cv_cxx_bool" != xyes], [ - CXXFLAGS="-Dbool=char -Dfalse=0 -Dtrue=1 $CXXFLAGS" -]) - dnl Standard headers and functions... AC_HEADER_DIRENT -- cgit v1.2.3