diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-05 18:25:02 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-05 18:25:02 +0900 |
commit | 6b0475afe46431f55cf6588bc9add529f9a0c773 (patch) | |
tree | b1fcf2d555a5a96ede5c2a545d5a6ba7e6660732 /configure.ac | |
parent | 6491c5a60ad773185f5f08422e69ce76035f9f49 (diff) | |
download | gnunet-6b0475afe46431f55cf6588bc9add529f9a0c773.tar.gz gnunet-6b0475afe46431f55cf6588bc9add529f9a0c773.zip |
MYSQL: Expose detected mysql boolean in gnunet_mysql_compat.h
gnunet_mysql_compat.h is now generated on configure.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a923050d9..2bc9d0f2a 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -935,6 +935,7 @@ AC_ARG_WITH([mysql], | |||
935 | AC_SUBST(MYSQL_LDFLAGS) | 935 | AC_SUBST(MYSQL_LDFLAGS) |
936 | AC_SUBST(MYSQL_CPPFLAGS) | 936 | AC_SUBST(MYSQL_CPPFLAGS) |
937 | 937 | ||
938 | mysql_bool="bool" | ||
938 | # check for my_bool | 939 | # check for my_bool |
939 | AS_IF([test "x$mysql" = "xtrue"], | 940 | AS_IF([test "x$mysql" = "xtrue"], |
940 | [AC_MSG_CHECKING([for my_bool]) | 941 | [AC_MSG_CHECKING([for my_bool]) |
@@ -944,9 +945,11 @@ AS_IF([test "x$mysql" = "xtrue"], | |||
944 | #no my_bool found | 945 | #no my_bool found |
945 | #endif]])], | 946 | #endif]])], |
946 | [AC_MSG_RESULT([yes]) | 947 | [AC_MSG_RESULT([yes]) |
947 | AC_DEFINE_UNQUOTED([MYSQL_BOOL], [my_bool], [Bool variable for some mysql versions])], | 948 | mysql_bool="my_bool"], |
948 | [AC_MSG_RESULT([no]) | 949 | [AC_MSG_RESULT([no]) |
949 | AC_DEFINE_UNQUOTED([MYSQL_BOOL], [bool], [Normal boolean value])])]) | 950 | mysql_bool="bool"])]) |
951 | |||
952 | AC_SUBST([mysql_bool]) | ||
950 | 953 | ||
951 | # additional version checks for mysql | 954 | # additional version checks for mysql |
952 | AS_IF([test "x$mysql" = "xtrue"], | 955 | AS_IF([test "x$mysql" = "xtrue"], |
@@ -1342,6 +1345,7 @@ src/identity/Makefile | |||
1342 | src/identity/identity.conf | 1345 | src/identity/identity.conf |
1343 | src/include/Makefile | 1346 | src/include/Makefile |
1344 | src/include/gnunet_config.h | 1347 | src/include/gnunet_config.h |
1348 | src/include/gnunet_mysql_compat.h | ||
1345 | src/integration-tests/Makefile | 1349 | src/integration-tests/Makefile |
1346 | src/json/Makefile | 1350 | src/json/Makefile |
1347 | src/hostlist/Makefile | 1351 | src/hostlist/Makefile |