autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check for resolv.h


From: Stepan Kasal
Subject: Re: check for resolv.h
Date: Tue, 30 Nov 2004 09:07:15 +0100
User-agent: Mutt/1.4.1i

Hi Paul,

On Mon, Nov 29, 2004 at 04:36:09PM -0800, Paul Eggert wrote:
> My kneejerk reaction is that this is probably a better candidate for
> gnulib than for autoconf, at least at first.  (To some extent, gnulib
> is the tryout section for Autoconf.  :-)

the original posters (who are not in the Cc list at the moment), have
found themselves repeating the same pattern, so they wanted to contribute
it to the central source tree.

> Also, I fear that it's incomplete.

That's perfectly possible.  I personally didn't done the expertise, I just
wrote the macro.

I suggest that we put it to autoconf.  I think it's better than the naive

        AC_CHECK_HEADERS(resolv.h)

which are people probably using now.

If it is incomplete, bug reports will tell us.

I think that if we put it to gnulib, noone will actually use it.

> For example, with Solaris 9 you are supposed to also include <netdb.h>
> to get symbols like HOST_NOT_FOUND.

I can add it to the patch.

> Conversely, with BIND 9.3.0 (the latest edition), you
> don't need to include <sys/types.h>, <arpa/nameser.h>, or
> <sys/socket.h>, since <resolv.h> does that for you.

But it doesn't hurt to include them, right?  And there are platforms where
it is needed.
But perhaps the wording of the documentation should be improved.

Have a nice day,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]