Commit a227eaa0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix inet_pton check

parent 541441bf
...@@ -1833,25 +1833,24 @@ fi ...@@ -1833,25 +1833,24 @@ fi
dnl dnl
dnl ipv6 plugin - not for QNX yet dnl ipv6 plugin - not for QNX yet
dnl dnl
AC_CHECK_FUNCS(inet_pton,[have_ipv6=:],[ have_ipv6=no
AC_CHECK_FUNCS(inet_pton,[have_ipv6=yes],[
AC_CHECK_LIB(resolv,inet_pton, AC_CHECK_LIB(resolv,inet_pton,
[have_ipv6=: [have_ipv6=yes
VLC_ADD_LDFLAGS([ipv6],[-lresolv])]) VLC_ADD_LDFLAGS([ipv6],[-lresolv])])
]) ])
AS_IF([${have_ipv6}], [ AS_IF([test "${have_ipv6}" == "yes"], [
AC_DEFINE(HAVE_INET_PTON, 1, [Define to 1 if you have inet_pton().])]) AC_DEFINE(HAVE_INET_PTON, 1, [Define to 1 if you have inet_pton().])])
if test "${SYS}" != "nto" && if test "${SYS}" != "nto" &&
test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
then then
have_ipv6=false
AC_MSG_CHECKING(for sockaddr_in6 in netinet/in.h) AC_MSG_CHECKING(for sockaddr_in6 in netinet/in.h)
AC_EGREP_HEADER(sockaddr_in6,netinet/in.h, AC_EGREP_HEADER(sockaddr_in6,netinet/in.h,
[AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); have_ipv6=false]) [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); have_ipv6=no])
if ${have_ipv6}; then AS_IF([test "${have_ipv6}" != "no"], [
VLC_ADD_PLUGINS([ipv6]) VLC_ADD_PLUGINS([ipv6])])
fi
fi fi
if test "${SYS}" = "mingw32" if test "${SYS}" = "mingw32"
then then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment