From 3a3afcb1195bc37ccfd27dc8a2caf7664a98297f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 14 Aug 2015 14:44:01 +0200 Subject: [PATCH] also build mint-lib if we only have libgnurl --- src/Makefile.am | 4 ++++ src/mint-lib/Makefile.am | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 888cbabf1..0d1d4572f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,6 +10,10 @@ else SUBDIRS = include util $(PQ_DIR) mintdb mint mint-tools if HAVE_LIBCURL SUBDIRS += mint-lib +else +if HAVE_LIBGNURL + SUBDIRS += mint-lib +endif endif endif diff --git a/src/mint-lib/Makefile.am b/src/mint-lib/Makefile.am index b7b39ded7..0cb83dacb 100644 --- a/src/mint-lib/Makefile.am +++ b/src/mint-lib/Makefile.am @@ -27,7 +27,15 @@ libtalermint_la_SOURCES = \ libtalermint_la_LIBADD = \ -lgnunetutil \ -ljansson \ - -lcurl $(XLIB) + $(XLIB) + +if HAVE_LIBCURL +libtalermint_la_LIBADD += -lcurl +else +if HAVE_LIBGNURL +libtalermint_la_LIBADD += -lgnurl +endif +endif check_PROGRAMS = \ test_mint_api