Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 26 Oct 2004 11:18:50 +0200 From: Stepan Kasal To: "Gerrit P. Haase" Cc: cygwin AT cygwin DOT com, Reini Urban , autoconf AT gnu DOT org Subject: Re: resolv.h test proposal Message-ID: <20041026091850.GB27401@matsrv.math.cas.cz> References: <20041025121439 DOT GA4915 AT matsrv DOT math DOT cas DOT cz> <417CF66F DOT 7020803 AT x-ray DOT at> <20041025130959 DOT GA8437 AT matsrv DOT math DOT cas DOT cz> <53-1480046524 DOT 20041025174019 AT familiehaase DOT de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <53-1480046524.20041025174019@familiehaase.de> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.80/541/Wed Oct 20 16:31:25 2004 clamav-milter version 0.80j on localhost X-Virus-Status: Clean X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00,UPPERCASE_25_50 autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on matsrv.math.cas.cz --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello Gerrit, On Mon, Oct 25, 2004 at 05:40:19PM +0200, Gerrit P. Haase wrote: > I'm sorry, I don't know enough about autoconf / m4 programming to > integrate this into autoconf. well, you don't need much special knowledge (I hope). You wrote the most of the macro for me. Then I used the definitions from the file /usr/share/autoconf/autoconf/headers.m4 as templates. (This file can be found by grepping for AC_CHECK_HEADERS.) I adapted your check. Before I try to submit it, I'd like to ask you (or others on the lists) to test it. (Delete the AN_HEADER line there are problems with it.) Thank you, Stepan Kasal --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ac_header_resolv.m4" # AC_HEADER_RESOLV # ---------------- AN_HEADER(resolv.h, AC_HEADER_RESOLV) AC_DEFUN(AC_HEADER_RESOLV, [AC_CHECK_HEADERS(sys/types.h netinet/in.h arpa/nameser.h sys/socket.h) AC_CACHE_CHECK(for resolv.h, ac_cv_header_resolv_h, AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ #if HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_NETINET_IN_H # include /* inet_ functions / structs */ #endif #ifdef HAVE_ARPA_NAMESER_H # include /* DNS HEADER struct */ #endif #ifdef HAVE_SYS_SOCKET_H # include /* DNS HEADER struct */ #endif]]), ac_cv_header_resolv_h=yes, ac_cv_header_resolv_h=no)) if test $ac_cv_header_resolv_h = yes; then AC_DEFINE(HAVE_RESOLV_H, 1, [Define to 1 if you have the header file.]) fi ])# AC_HEADER_RESOLV --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --jRHKVT23PllUwdXP--