From ab66a7a9dfe818d884caf555293370c730eccc57 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 6 Feb 2023 14:56:17 +0900 Subject: MYSQL: Another jab at proper my_bool detection. The previous check did not work because you cannot check typedef's with #if(n)def. --- configure.ac | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 1472877d1..3e7b42a12 100644 --- a/configure.ac +++ b/configure.ac @@ -940,14 +940,12 @@ mysql_bool="bool" AS_IF([test "x$mysql" = "xtrue"], [AC_MSG_CHECKING([for my_bool]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[#include ]], - [[#ifndef my_bool -#no my_bool found -#endif]])], - [AC_MSG_RESULT([yes]) - mysql_bool="my_bool"], + [[#include ] + [typedef int my_bool;]])], # Hint: this fails if my_bool is defined already [AC_MSG_RESULT([no]) - mysql_bool="bool"])]) + mysql_bool="bool"], + [AC_MSG_RESULT([yes]) + mysql_bool="my_bool"])]) AC_SUBST([mysql_bool]) -- cgit v1.2.3