tried to fix h_errno check

CVS patchset: 1344
CVS date: 1997/01/23 20:29:16
This commit is contained in:
ewt 1997-01-23 20:29:16 +00:00
parent ed17a71182
commit 0d0ca1f947
1 changed files with 4 additions and 5 deletions

View File

@ -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 <netdb.h> 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 <netdb.h>],printf("%d",h_errno),PROVIDES_ERRNO=yes)
AC_MSG_RESULT($PROVIDES_ERRNO)
if test $PROVIDES_ERRNO = yes; then
AC_DEFINE(HAVE_HERRNO)
fi