gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 02/02: MYSQL: Another jab at proper my_bool detection.


From: gnunet
Subject: [gnunet] 02/02: MYSQL: Another jab at proper my_bool detection.
Date: Mon, 06 Feb 2023 06:57:10 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit ab66a7a9dfe818d884caf555293370c730eccc57
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Feb 6 14:56:17 2023 +0900

    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 <mysql/mysql.h>]],
-     [[#ifndef my_bool
-#no my_bool found
-#endif]])],
-      [AC_MSG_RESULT([yes])
-       mysql_bool="my_bool"],
+     [[#include <mysql/mysql.h>]
+      [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])
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]