diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-17 00:13:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-17 00:13:00 +0100 |
commit | 8b1e276a316d29a752b26cdc070330e688aea221 (patch) | |
tree | 203a9de2a95edae1dae9979ec4296e63b3bb61e9 /configure.ac | |
parent | 9badf80eb4228a9c009839a4856710127efe8601 (diff) | |
download | sync-8b1e276a316d29a752b26cdc070330e688aea221.tar.gz sync-8b1e276a316d29a752b26cdc070330e688aea221.tar.bz2 sync-8b1e276a316d29a752b26cdc070330e688aea221.zip |
breaking the build badly, big hacking
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 37784fb..cf38528 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,28 @@ CFLAGS="-Wall $CFLAGS" # Checks for header files. AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h]) + +# Check for Taler's libtalermerchant +libtalermerchant=0 +AC_MSG_CHECKING([for libtalermerchant]) +AC_ARG_WITH(merchant, + [AS_HELP_STRING([--with-merchant=PFX], [base of Taler MERCHANT installation])], + [AC_MSG_RESULT([given as $with_merchant])], + [AC_MSG_RESULT(not given) + with_merchant=yes]) +AS_CASE([$with_merchant], + [yes], [], + [no], [AC_MSG_ERROR([--with-merchant is required])], + [LDFLAGS="-L$with_merchant/lib $LDFLAGS" + CPPFLAGS="-I$with_merchant/include $CPPFLAGS $POSTGRESQL_CPPFLAGS"]) + +AC_CHECK_HEADERS([taler/taler_merchant_service.h], + [AC_CHECK_LIB([talermerchant], [TALER_MERCHANT_poll_payment], libtalermerchant=1)], + [], [#ifdef HAVE_TALER_PLATFORM_H + #include <taler/platform.h> + #endif]) + + # Check for GNUnet's libgnunetutil. libgnunetutil=0 AC_MSG_CHECKING([for libgnunetutil]) @@ -102,6 +124,9 @@ AC_CHECK_HEADERS([gnunet/gnunet_pq_lib.h], #endif]) AM_CONDITIONAL(HAVE_GNUNETPQ, test x$libgnunetpq = x1) + + + # check for libmicrohttpd microhttpd=0 AC_MSG_CHECKING([for microhttpd]) |