1 diff --git a/configure.ac b/configure.ac
2 index f28480b..92a3e85 100644
7 # Checking for libgpg-error.
9 -AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
10 - have_gpg_error=yes, have_gpg_error=no)
11 +if test "x${GPG_ERROR_CFLAGS}" = x; then
12 + AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
13 + have_gpg_error=yes, have_gpg_error=no)
16 + GPG_ERROR_CFLAGS="$GPG_ERROR_CFLAGS"
17 + GPG_ERROR_LIBS="$GPG_ERROR_LIBS"
18 + AC_SUBST(GPG_ERROR_CFLAGS)
19 + AC_SUBST(GPG_ERROR_LIBS)
23 AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME,
24 [The default error source for GPGME.])
30 -AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
31 +if test "x${LIBASSUAN_CFLAGS}" = x; then
32 + AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
33 have_libassuan=yes, have_libassuan=no)
36 + LIBASSUAN_CFLAGS="$LIBASSUAN_CFLAGS"
37 + LIBASSUAN_LIBS="$LIBASSUAN_LIBS"
38 + AC_SUBST(LIBASSUAN_CFLAGS)
39 + AC_SUBST(LIBASSUAN_LIBS)
42 if test "$have_libassuan" = "yes"; then
43 AC_DEFINE_UNQUOTED(GPGME_LIBASSUAN_VERSION, "$libassuan_version",
44 [version of the libassuan library])
45 --- lang/cpp/tests/Makefile.am 2020-06-20 00:43:49.213657887 +0200
46 +++ lang/cpp/tests/Makefile.am~ 2019-01-25 13:27:34.000000000 +0100
48 AM_LDFLAGS = -no-install
50 LDADD = ../../cpp/src/libgpgmepp.la \
51 + ../../../src/libgpgme.la @LIBASSUAN_LIBS@ @GPG_ERROR_LIBS@ \
52 - ../../../src/libgpgme.la @GPG_ERROR_LIBS@ \
53 @LDADD_FOR_TESTS_KLUDGE@ -lstdc++
55 AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/src \
56 diff -ur gpgmepp.org/src/Makefile.am gpgmepp/src/Makefile.am
57 --- src/Makefile.am 2024-07-02 13:24:02.549609519 +0200
58 +++ src/Makefile.am 2024-07-02 13:24:29.573606613 +0200
60 gpgme_tool_LDADD = libgpgme.la @LIBASSUAN_LIBS@ @GPG_ERROR_LIBS@
62 gpgme_json_SOURCES = gpgme-json.c cJSON.c cJSON.h
63 -gpgme_json_LDADD = -lm libgpgme.la $(GPG_ERROR_LIBS)
64 +gpgme_json_LDADD = -lm libgpgme.la @LIBASSUAN_LIBS@ $(GPG_ERROR_LIBS)