Update check for res_search. If not available in $LIBS, check

in -lbind then in -lresolv.
This commit is contained in:
Kurt Zeilenga 1999-01-13 01:11:28 +00:00
parent a5653c87a1
commit cb31c7aa9a
4 changed files with 442 additions and 352 deletions

View File

@ -100,6 +100,12 @@
/* define if you have ptrdiff_t */
#undef HAVE_PTRDIFF_T
/* define if you have res_search() */
#ifdef __notdef__
/* see second res_search define */
#undef HAVE_RES_SEARCH
#endif
/* define if you have sched_yield() */
#ifdef __notdef__
/* see second sched_yield define */

767
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -274,8 +274,18 @@ dnl
])
dnl Check for resolver routines
AC_CHECK_LIB(bind, res_search)
AC_CHECK_LIB(resolv, res_search)
AC_CHECK_FUNCS(res_search)
if test $ac_cv_func_res_search = "no" ; then
AC_CHECK_LIB(bind, res_search)
if test $ac_cv_libac_cv_lib_bind_res_search = "yes" ; then
AC_DEFINE(HAVE_RES_SEARCH,1)
else
AC_CHECK_LIB(resolv, res_search)
if test $ac_cv_libac_cv_lib_resolv_res_search = "yes" ; then
AC_DEFINE(HAVE_RES_SEARCH,1)
fi
fi
fi
dnl HP-UX requires -lV3
AC_CHECK_LIB(V3, sigset)
@ -1207,7 +1217,6 @@ AC_CHECK_FUNCS( \
memcpy \
memmove \
mkstemp \
res_search \
select \
setpwfile \
setsid \

View File

@ -182,6 +182,12 @@
/* define if you have ptrdiff_t */
#undef HAVE_PTRDIFF_T
/* define if you have res_search() */
#ifdef __notdef__
/* see second res_search define */
#undef HAVE_RES_SEARCH
#endif
/* define if you have sched_yield() */
#ifdef __notdef__
/* see second sched_yield define */