Add checks for gethostby{name,addr}_r. Only should be used if

linking with $LTHREAD_LIBS.
This commit is contained in:
Kurt Zeilenga 1998-12-04 04:21:19 +00:00
parent 514c44a5c8
commit 76dc7b2673
3 changed files with 244 additions and 242 deletions

468
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -646,14 +646,12 @@ int main(argc, argv)
dnl with $LTHREAD_LIBS
dnl
AC_CHECK_FUNCS( \
feof_unlocked \
unlocked_feof \
putc_unlocked \
unlocked_putc \
ftrylockfile \
flockfile \
gmtime_r \
strtok_r \
gmtime_r \
gethostbyaddr_r gethostbyname_r \
feof_unlocked unlocked_feof \
putc_unlocked unlocked_putc \
flockfile ftrylockfile \
)
dnl restore flags

View file

@ -297,6 +297,12 @@ is provided ``as is'' without express or implied warranty.
/* Define if you have the getdtablesize function. */
#undef HAVE_GETDTABLESIZE
/* Define if you have the gethostbyaddr_r function. */
#undef HAVE_GETHOSTBYADDR_R
/* Define if you have the gethostbyname_r function. */
#undef HAVE_GETHOSTBYNAME_R
/* Define if you have the gethostname function. */
#undef HAVE_GETHOSTNAME