replace if with AS_IF (#5709, wip)

This commit is contained in:
Christian Grothoff 2019-05-12 21:37:13 +02:00
parent 335f82d081
commit 5740f5b639
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -191,15 +191,14 @@ LIBS_SAVE=$LIBS
LIBGNURL_CHECK_CONFIG(,7.34.0,gnurl=1,gnurl=0) LIBGNURL_CHECK_CONFIG(,7.34.0,gnurl=1,gnurl=0)
LIBCURL_CHECK_CONFIG(,7.34.0,[curl=1],[curl=0]) LIBCURL_CHECK_CONFIG(,7.34.0,[curl=1],[curl=0])
if test "x$curl" = x1 AS_IF([test "x$curl" = x1],[
then
AC_CHECK_HEADER([curl/curl.h], AC_CHECK_HEADER([curl/curl.h],
AC_CHECK_DECLS(CURLINFO_TLS_SESSION,[curl=1],[curl=0],[[#include <curl/curl.h>]]), AC_CHECK_DECLS(CURLINFO_TLS_SESSION,[curl=1],[curl=0],[[#include <curl/curl.h>]]),
[curl=0]) [curl=0])
# 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=0]) AC_CHECK_LIB([curl-gnutls],[curl_easy_getinfo],,[curl=0])
# cURL must support CURLINFO_TLS_SESSION, version >= 7.34 # cURL must support CURLINFO_TLS_SESSION, version >= 7.34
fi ])
# libcurl and libgnurl should be mutually exclusive # libcurl and libgnurl should be mutually exclusive
AS_IF([test "$gnurl" = 1], AS_IF([test "$gnurl" = 1],