1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

configure: only say ipv6 enabled when the variable is set

Previously it could say "IPv6: enabled" at the end of the configure run
but the define wasn't set because of a missing getaddrinfo().

Reported-by: Marcel Raad
Fixes #4555
Closes #4560
This commit is contained in:
Daniel Stenberg 2019-11-04 13:59:35 +01:00
parent 2839cfdc53
commit 07f8986051
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1227,10 +1227,6 @@ main()
ipv6=yes
))
if test "$ipv6" = "yes"; then
curl_ipv6_msg="enabled"
fi
# Check if struct sockaddr_in6 have sin6_scope_id member
if test "$ipv6" = yes; then
AC_MSG_CHECKING([if struct sockaddr_in6 has sin6_scope_id member])
@ -3969,6 +3965,7 @@ if test "$ipv6" = "yes"; then
AC_DEFINE(ENABLE_IPV6, 1, [Define if you want to enable IPv6 support])
IPV6_ENABLED=1
AC_SUBST(IPV6_ENABLED)
curl_ipv6_msg="enabled"
fi
fi