aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-16 14:11:54 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-16 14:12:47 +0100
commit7fad7cb71603878943ee6193056142097cd8ccd3 (patch)
tree550609396cfee4f5e241ef27c32ffea881ba09d6 /configure.ac
parentf8385eeabd64cc3eb7d4df21a5994f6990b00f07 (diff)
make lib(c|gn)url mandatory, cleaner makefiles
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 4761083e4..bb771dc2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -191,17 +191,17 @@ AS_IF([test "$gnurl" = 1],
[AM_CONDITIONAL(HAVE_LIBGNURL, true)
AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl])
AM_CONDITIONAL(HAVE_LIBCURL, false)
- AC_DEFINE([HAVE_LIBCURL],[0],[Lacking libcurl])],
+ AC_DEFINE([HAVE_LIBCURL],[0],[Lacking libcurl])
+ [LIBGNURLCURL_LIBS="-lgnurl"]],
[AS_IF([test "$curl" = 1],
[AM_CONDITIONAL(HAVE_LIBGNURL, false)
AC_DEFINE([HAVE_LIBGNURL],[0],[Lacking libgnurl])
AM_CONDITIONAL(HAVE_LIBCURL, true)
AC_DEFINE([HAVE_LIBCURL],[1],[Have libcurl])],
- [AC_MSG_WARN([WARNING: No libgnurl/libcurl, taler-bank support will not be compiled])
- AM_CONDITIONAL(HAVE_LIBGNURL, false)
- AC_DEFINE([HAVE_LIBGNURL],[0],[Lacking libgnurl])
- AM_CONDITIONAL(HAVE_LIBCURL, false)
- AC_DEFINE([HAVE_LIBCURL],[0],[Lacking libcurl])])])
+ [LIBGNURLCURL_LIBS="-lcurl"]
+ [AC_MSG_ERROR([WARNING: No libgnurl/libcurl, taler-bank support will not be compiled])])])
+
+AC_SUBST([LIBGNURLCURL_LIBS])
# Check for GNUnet's libgnunetcurl.
libgnunetcurl=0