summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-10-18 09:39:37 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-10-18 09:39:37 +0200
commitae68bd7cfe8e5329a13f6836f4d02251a4ac4e82 (patch)
tree411b4e1354e40ed914fe088e969312b2b18773c6
parent58528f32dd9c725aea4635ecba889d411c8d65d2 (diff)
downloadexchange-ae68bd7cfe8e5329a13f6836f4d02251a4ac4e82.tar.gz
exchange-ae68bd7cfe8e5329a13f6836f4d02251a4ac4e82.tar.bz2
exchange-ae68bd7cfe8e5329a13f6836f4d02251a4ac4e82.zip
fix --with-libcurl and --with-libgnurl options; they used to
ignore the given path.
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 65efe78a..f9eb7fa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -317,6 +317,8 @@ AM_CONDITIONAL(HAVE_POSTGRESQL, test x$postgres = xtrue)
LIBGNURL_CHECK_CONFIG(,7.34.0,gnurl=1,gnurl=0)
if test "$gnurl" = 1
then
+ LDFLAGS="-L$with_libgnurl/lib $LDFLAGS"
+ CPPFLAGS="-I$with_libgnurl/include $CPPFLAGS"
AM_CONDITIONAL(HAVE_LIBGNURL, [true])
AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl])
else
@@ -327,6 +329,8 @@ fi
LIBCURL_CHECK_CONFIG(,7.34.0,[curl=true],[curl=false])
if test "x$curl" = xtrue
then
+ LDFLAGS="-L$with_libcurl/lib $LDFLAGS"
+ CPPFLAGS="-I$with_libcurl/include $CPPFLAGS"
AC_CHECK_HEADERS([curl/curl.h],
AC_CHECK_DECLS(CURLINFO_TLS_SESSION,[curl=true],[curl=false],[[#include <curl/curl.h>]]),
[curl=false])