mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Update check for res_search. If not available in $LIBS, check
in -lbind then in -lresolv.
This commit is contained in:
parent
a5653c87a1
commit
cb31c7aa9a
@ -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 */
|
||||
|
15
configure.in
15
configure.in
@ -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 \
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user