[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Failure of IPv6 detection for BSD.
From: |
Bruno Haible |
Subject: |
Re: Failure of IPv6 detection for BSD. |
Date: |
Sat, 18 Sep 2010 19:09:17 +0200 |
User-agent: |
KMail/1.9.9 |
Mats Erik Andersson wrote:
> > where do you find the source code of that test?
>
> ### inetutils/configure.ac, line 330
> ###
>
> if test ! "X$ipv6" = "Xno" && test "$working_ipv6" = "Xyes"; then
> AC_CHECK_TYPE(struct sockaddr_in6, , working_ipv6=no, [#include
> <netinet/in.h>])
> fi
Good, you got it. Bug in inetutils/configure.ac, line 331.
> It seems to me that the blame must go to autoconf. Right? Or is the template
> "configure.ac" maintained by GNU Inetutils incomplete?
The documentation of AC_CHECK_TYPE
<http://www.gnu.org/software/autoconf/manual/html_node/Generic-Types.html>
says that AC_INCLUDES_DEFAULT (which includes <sys/types.h>) is not used when
the fourth argument of AC_CHECK_TYPE is present. So it is the duty of
inetutils/configure.ac line 331 to provide #include <sys/types.h>.
Bruno