Typo corrected when configuring with extra ipv6 libraries

This commit is contained in:
Pontus Lidman 2000-04-27 20:28:34 +00:00
parent 1970ba1b43
commit 8aa0adddc0

View file

@ -170,21 +170,17 @@ AC_ARG_WITH(ipv6,
[ --with-ipv6 enable IPv6 support. Optional argument specifies [ --with-ipv6 enable IPv6 support. Optional argument specifies
location of inet6 libraries.], location of inet6 libraries.],
AC_DEFINE(HAVE_IPV6) AC_DEFINE(HAVE_IPV6)
if test "x$witharg" = xno ; then if test "x$withval" = xno ; then
NET_SOURCE=net_udp.c NET_SOURCE=net_udp.c
IPV6_LIBS=""
else else
NET_SOURCE=net_udp6.c NET_SOURCE=net_udp6.c
if test "x$witharg" = xyes ; then if test "x$withval" != xyes ; then
IPV6_LIBS="" LIBS="$LIBS -L${withval}"
else
IPV6_LIBS="-L${witharg}"
fi fi
fi fi
, ,
dnl Default is no IPv6 dnl Default is no IPv6
NET_SOURCE=net_udp.c NET_SOURCE=net_udp.c
IPV6_LIBS=""
) )
AC_ARG_ENABLE(alsa, AC_ARG_ENABLE(alsa,
@ -217,7 +213,7 @@ fi
dnl Checks for getaddrinfo in separate IPv6 lib, if not available by default dnl Checks for getaddrinfo in separate IPv6 lib, if not available by default
if test "x$ac_cv_func_getaddrinfo" = xno ; then if test "x$ac_cv_func_getaddrinfo" = xno ; then
AC_CHECK_LIB(inet6,getaddrinfo,LIBS="${LIBS} -L${IPV6_LIBS} -linet6") AC_CHECK_LIB(inet6,getaddrinfo,LIBS="${LIBS} -linet6")
fi fi
dnl Checks for working -lm dnl Checks for working -lm