Hi William,

* William Schaub wrote on Thu, Mar 09, 2006 at 06:21:51PM CET:
> configure: WARNING: resolv.h: present but cannot be compiled
> configure: WARNING: resolv.h: check for missing prerequisite headers?
> configure: WARNING: resolv.h: proceeding with the preprocessor's result

> The following is because on darwin 6.8 (and possibly others im not sure)
> <arpa/nameser.h> is a pre-requisite to including resolv.h 

Thanks for the bug report.  The next Autoconf release will have 
a macro AC_HEADER_RESOLV and corresponding documentation (already
in the CVS version), which you can take as a guideline until then.
Please report back if it was not sufficient.

Cheers,
Ralf

| -- Macro: AC_HEADER_RESOLV
|     Checks for header `resolv.h', checking for prerequisities first.
|     To properly use `resolv.h', your code should contain something like
|     the following:
|
|
|     #if HAVE_SYS_TYPES_H
|     #  include <sys/types.h>
|     #endif
|     #ifdef HAVE_NETINET_IN_H
|     #  include <netinet/in.h>   /* inet_ functions / structs */
|     #endif
|     #ifdef HAVE_ARPA_NAMESER_H
|     #  include <arpa/nameser.h> /* DNS HEADER struct */
|     #endif
|     #ifdef HAVE_NETDB_H
|     #  include <netdb.h>
|     #endif
|     #include <resolv.h>



Reply via email to