commit 17638a71de25c6aad6dc7b742a93afb8c224f077
parent 78922c86c294978d1667d3341df40fab44b2be44
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 29 Aug 2022 17:08:16 +0200
add --enable-logging option
Diffstat:
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/INSTALL b/INSTALL
@@ -1,8 +1,8 @@
Installation Instructions
*************************
- Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
-Foundation, Inc.
+ Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2021 Free
+Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
@@ -225,7 +225,7 @@ order to use an ANSI C compiler:
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
- HP-UX 'make' updates targets which have the same time stamps as their
+ HP-UX 'make' updates targets which have the same timestamps as their
prerequisites, which makes it generally unusable when shipped generated
files such as 'configure' are involved. Use GNU 'make' instead.
diff --git a/configure.ac b/configure.ac
@@ -1,8 +1,8 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-AC_PREREQ([2.69])
-AC_INIT([taler-mdb], [0.8.2], [taler@gnu.org])
+AC_PREREQ([2.71])
+AC_INIT([taler-mdb],[0.8.2],[taler@gnu.org])
AC_CONFIG_SRCDIR([src/taler-mdb.c])
AC_CONFIG_HEADERS([config.h])
@@ -22,6 +22,16 @@ AC_TYPE_SIZE_T
AC_TYPE_UINT8_T
+# logging
+extra_logging=0
+AC_ARG_ENABLE([logging],
+ AS_HELP_STRING([--enable-logging@<:@=value@:>@],[Enable logging calls. Possible values: yes,no,verbose ('yes' is the default)]),
+ [AS_IF([test "x$enableval" = "xyes"], [],
+ [test "x$enableval" = "xno"], [AC_DEFINE([GNUNET_CULL_LOGGING],[],[Define to cull all logging calls])],
+ [test "x$enableval" = "xverbose"], [extra_logging=1]
+ [test "x$enableval" = "xveryverbose"], [extra_logging=2])
+ ], [])
+AC_DEFINE_UNQUOTED([GNUNET_EXTRA_LOGGING],[$extra_logging],[1 if extra logging is enabled, 2 for very verbose extra logging, 0 otherwise])
# Adam shostack suggests the following for Windows:
diff --git a/src/taler-coin-acceptor.c b/src/taler-coin-acceptor.c
@@ -239,7 +239,7 @@ authorize_cb (
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Tip pickup uri: %s\n",
tip_uri);
- /* FIXME: update API to enable long-polling here! */
+ /* FIXME: merchant service to support long-polling here! */
tip_id = *tip_idp;
tmgh = TALER_MERCHANT_merchant_tip_get (ctx,
merchant_url,