diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-04-18 10:26:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-04-18 10:26:52 +0200 |
commit | 28a7b7364c64415a9e8a721f64dc8b7857b9fa9a (patch) | |
tree | eba605b2f272bc5dc94c5fde9e4fc422005b3b6c | |
parent | db6e2506aff8b222110ec4a7bf952079673af7c1 (diff) |
add test for required minimum libgununetpq version
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3dd98985..46eef3a7 100644 --- a/configure.ac +++ b/configure.ac @@ -217,8 +217,18 @@ AS_IF([test $libgnunetutil != 1], *** https://gnunet.org *** ]])]) +libgnunetpq=0 AC_CHECK_HEADERS([gnunet/gnunet_pq_lib.h], - [AC_CHECK_LIB([gnunetpq], [GNUNET_PQ_connect_with_cfg], libgnunetpq=1)]) + [AC_CHECK_LIB([gnunetpq], [GNUNET_PQ_query_param_blind_sign_priv], libgnunetpq=1)]) + +AS_IF([test $libgnunetpq != 1], + [AC_MSG_ERROR([[ +*** +*** You need libgnunetpq >= 0.21.2 (API v7) to build this program. +*** This library is part of GNUnet, available at +*** https://gnunet.org +*** ]])]) + AM_CONDITIONAL(HAVE_GNUNETPQ, test x$libgnunetpq = x1) TALER_LIB_LDFLAGS="-export-dynamic -no-undefined" |