aboutsummaryrefslogtreecommitdiff
path: root/src/wire-plugins
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-08-16 14:22:01 +0200
committerChristian Grothoff <christian@grothoff.org>2018-08-16 14:22:01 +0200
commitf0a796a3f6d4329555506b3464b6d174f53fd9cf (patch)
treedc65c5fc2eebab69c0b7d5b0a2b2143a38a080be /src/wire-plugins
parenta1f289512eac8596bff88bbffc69c5a271324120 (diff)
make curl check saner, use AS_IF
Diffstat (limited to 'src/wire-plugins')
-rw-r--r--src/wire-plugins/Makefile.am15
-rw-r--r--src/wire-plugins/test_wire_plugin.c2
2 files changed, 13 insertions, 4 deletions
diff --git a/src/wire-plugins/Makefile.am b/src/wire-plugins/Makefile.am
index 9f6029d7f..393bfb1b8 100644
--- a/src/wire-plugins/Makefile.am
+++ b/src/wire-plugins/Makefile.am
@@ -18,8 +18,17 @@ EXTRA_DIST = \
plugindir = $(libdir)/taler
plugin_LTLIBRARIES = \
- libtaler_plugin_wire_ebics.la \
- libtaler_plugin_wire_taler_bank.la
+ libtaler_plugin_wire_ebics.la
+
+if HAVE_LIBCURL
+plugin_LTLIBRARIES += \
+ libtaler_plugin_wire_taler_bank.la
+else
+if HAVE_LIBGNURL
+plugin_LTLIBRARIES += \
+ libtaler_plugin_wire_taler_bank.la
+endif
+endif
noinst_LTLIBRARIES = \
libtaler_plugin_wire_template.la
@@ -44,9 +53,7 @@ libtaler_plugin_wire_ebics_la_LIBADD = \
$(LTLIBINTL)
libtaler_plugin_wire_ebics_la_LDFLAGS = \
$(TALER_PLUGIN_LDFLAGS) \
- $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
- -lgnunetjson \
-lgnunetutil $(XLIB)
diff --git a/src/wire-plugins/test_wire_plugin.c b/src/wire-plugins/test_wire_plugin.c
index 0e149dde7..0bb7571f4 100644
--- a/src/wire-plugins/test_wire_plugin.c
+++ b/src/wire-plugins/test_wire_plugin.c
@@ -64,12 +64,14 @@ static struct TestBlock tests[] = {
.round_out = "EUR:0.12",
.currency = "EUR"
},
+#if HAVE_LIBCURL
{
.plugin_name = "taler_bank",
.round_in = "KUDOS:0.123456",
.round_out = "KUDOS:0.12",
.currency = "KUDOS"
},
+#endif
{
NULL, NULL, NULL, NULL
}