Skip to content
Snippets Groups Projects
Commit 0b26912e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

res_search() detection: always look for res_search to include -lresolv

	for inet_aton().  May be linked in when not absolutely necessary...
	but no big deal, we'll likely start using res_search over sychronous
	get{host,peer}byname calls anyways.
inet_aton() detection: use link instead of compile
parent 54e3044d
No related branches found
No related tags found
No related merge requests found
......@@ -813,7 +813,7 @@ dnl ====================================================================
dnl Define inet_aton is available
AC_DEFUN(OL_FUNC_INET_ATON,
[AC_CACHE_CHECK([for inet_aton()], ol_cv_func_inet_aton,
[AC_TRY_COMPILE([
[AC_TRY_LINK([
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
......
This diff is collapsed.
......@@ -654,32 +654,30 @@ fi
dnl HP-UX requires -lV3
AC_CHECK_LIB(V3, sigset)
dnl Check for resolver routines
AC_CHECK_FUNC(res_search,:)
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(bind, res_search)
ac_cv_func_res_search=$ac_cv_lib_bind_res_search
fi
# find res_search
if test $ol_enable_dns != no ; then
dnl Check for resolver routines
AC_CHECK_FUNC(res_search,:)
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(bind, res_search)
ac_cv_func_res_search=$ac_cv_lib_bind_res_search
fi
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(bind, __res_search)
ac_cv_func_res_search=$ac_cv_lib_bind___res_search
fi
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(resolv, res_search)
ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
fi
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(bind, __res_search)
ac_cv_func_res_search=$ac_cv_lib_bind___res_search
fi
if test "$ac_cv_func_res_search" = yes ; then
AC_DEFINE(HAVE_RES_SEARCH,1,
[define if you have res_search()])
elif test $ol_enable_dns = yes ; then
AC_MSG_ERROR([--enable-dns requires res_search])
else
AC_MSG_WARN([no res_search, disabling DNS support])
fi
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(resolv, res_search)
ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
fi
if test "$ac_cv_func_res_search" = yes ; then
AC_DEFINE(HAVE_RES_SEARCH,1,
[define if you have res_search()])
elif test $ol_enable_dns = yes ; then
AC_MSG_ERROR([--enable-dns requires res_search])
elif test $ol_enable_dns != no ; then
AC_MSG_WARN([no res_search, disabling DNS support])
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment