use AS_IF instead of shell if
Otherwise autoconf macros won't be expanded properly when used inside the 'if' body for the first time.
This commit is contained in:
parent
a1f289512e
commit
90b8b6e8b1
@ -148,18 +148,17 @@ AS_IF([test $libgnunetjson != 1],
|
|||||||
|
|
||||||
# libcurl-gnutls
|
# libcurl-gnutls
|
||||||
LIBCURL_CHECK_CONFIG(,7.34.0,[curl=true],[curl=false])
|
LIBCURL_CHECK_CONFIG(,7.34.0,[curl=true],[curl=false])
|
||||||
if test "x$curl" = xtrue
|
AS_IF([test "x$curl" = xtrue], [
|
||||||
then
|
|
||||||
LDFLAGS="-L$with_libcurl/lib $LDFLAGS"
|
LDFLAGS="-L$with_libcurl/lib $LDFLAGS"
|
||||||
CPPFLAGS="-I$with_libcurl/include $CPPFLAGS"
|
CPPFLAGS="-I$with_libcurl/include $CPPFLAGS"
|
||||||
AC_CHECK_HEADERS([curl/curl.h],
|
AC_CHECK_HEADERS([curl/curl.h],
|
||||||
AC_CHECK_DECLS(CURLINFO_TLS_SESSION,[curl=true],[curl=false],[[#include <curl/curl.h>]]),
|
[AC_CHECK_DECLS(CURLINFO_TLS_SESSION,[curl=true],[curl=false],[[#include <curl/curl.h>]])],
|
||||||
[curl=false])
|
[curl=false])
|
||||||
# need libcurl-gnutls.so, everything else is not acceptable
|
# need libcurl-gnutls.so, everything else is not acceptable
|
||||||
AC_CHECK_LIB([curl-gnutls],[curl_easy_getinfo],,[curl=false])
|
AC_CHECK_LIB([curl-gnutls],[curl_easy_getinfo],,[curl=false])
|
||||||
# cURL must support CURLINFO_TLS_SESSION, version >= 7.34
|
# cURL must support CURLINFO_TLS_SESSION, version >= 7.34
|
||||||
|
])
|
||||||
|
|
||||||
fi
|
|
||||||
if test x$curl = xfalse
|
if test x$curl = xfalse
|
||||||
then
|
then
|
||||||
AM_CONDITIONAL(HAVE_LIBCURL, false)
|
AM_CONDITIONAL(HAVE_LIBCURL, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user