diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-10-03 11:09:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-10-03 11:09:12 +0200 |
commit | 4998506a34e5855319b5d4fb738539c08910e75a (patch) | |
tree | edd631c09d900ff6717a7959ec66822e15e2edc5 | |
parent | c04113bfc443451bbf02dcd8078f7f74c8c37b23 (diff) |
add donau detection
-rw-r--r-- | configure.ac | 19 | ||||
-rw-r--r-- | src/backend/Makefile.am | 6 |
2 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8e7b36e0..ad12b3f3 100644 --- a/configure.ac +++ b/configure.ac @@ -288,6 +288,25 @@ AS_IF([test $libtalerexchange != 1], *** ]])]) +libdonau=0 +AC_MSG_CHECKING([for libdonau]) +AC_ARG_WITH(donau, + [AS_HELP_STRING([--with-donau=PFX], [base of Taler DONAU installation])], + [AC_MSG_RESULT([given as $with_donau])], + [AC_MSG_RESULT(not given) + with_donau=yes]) +AS_CASE([$with_donau], + [yes], [], + [no], [], + [LDFLAGS="-L$with_donau/lib $LDFLAGS" + CPPFLAGS="-I$with_donau/include $CPPFLAGS $POSTGRESQL_CPPFLAGS"]) + +AC_CHECK_HEADERS([donau/donau_service.h], + [AC_CHECK_LIB([donau], [DONAU_get_keys], libdonau=1)]) +AM_CONDITIONAL(HAVE_DONAU, test x$libdonau = x1) + + + libtalermhd=0 AC_MSG_CHECKING([for libtalermhd]) AC_ARG_WITH(exchange, diff --git a/src/backend/Makefile.am b/src/backend/Makefile.am index cf429777..23a11004 100644 --- a/src/backend/Makefile.am +++ b/src/backend/Makefile.am @@ -219,6 +219,12 @@ taler_merchant_httpd_LDADD = \ -lgnunetutil \ @QR_LIBS@ \ $(XLIB) + +if HAVE_DONAU +taler_merchant_httpd_LDADD += \ + -ldonau +endif + taler_merchant_httpd_CFLAGS = \ @QR_CFLAGS@ \ $(AM_CFLAGS) |