From 0d0ca1f947d0cf61cfb09f0647562b6d8d1a92c6 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 23 Jan 1997 20:29:16 +0000 Subject: [PATCH] tried to fix h_errno check CVS patchset: 1344 CVS date: 1997/01/23 20:29:16 --- configure.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 5ddf8ac..7ba92b9 100644 --- a/configure.in +++ b/configure.in @@ -44,7 +44,6 @@ AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB -AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(AR, ar, :) if test "$cross_compiling" = "no"; then @@ -180,11 +179,11 @@ fi AC_C_BIGENDIAN dnl look for libc features -NEEDS_HERRNO=yes +PROVIDES_ERRNO=no AC_MSG_CHECKING(checking if defines h_errno...) -AC_TRY_LINK(netdb.h,printf("%d",h_errno),NEEDS_ERRNO=no) -AC_MSG_RESULT($NEEDS_HERRNO) -if test $NEEDS_HERRNO = yes; then +AC_TRY_LINK([#include ],printf("%d",h_errno),PROVIDES_ERRNO=yes) +AC_MSG_RESULT($PROVIDES_ERRNO) +if test $PROVIDES_ERRNO = yes; then AC_DEFINE(HAVE_HERRNO) fi -- 2.7.4