Hi,

On Fri, Mar 06, 2015 at 01:07:38PM -0600, Nicholas Hall wrote:
> Autotools configure check fails to detect res_init on recent glibc
> versions.  It appears that resolv.h in recent glibc maps res_init to
> __res_init which autotools doesn't catch.

Coming back to this.  I agree this needs fixing (for 2.3.7 and 2.4), but 
I am not convinced the approach is the right one - it's too brittle, and
I think we don't really need the #ifdef HAVE_RES_INIT at all.

Why?  Because all (unixy) OSes that we support have res_init() - checked
man pages for *BSD, MacOS X, Solaris, AIX and Linux.  MS docs for Windows
are unclear, but if it's not there, we can always #ifndef WIN32 it...

So I'd prefer a patch that would just find the necessary library to link
(-lresolv, -lsocket, whatever) and otherwise assumes that res_init() is 
just there, no matter whether it's a macro or anything else.

Comments?

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: pgpVDQCM5b_JE.pgp
Description: PGP signature

Reply via email to