# HG changeset patch # User Andreas Schwab # Date 1195599999 0 # Node ID 40dbe784a4f743250075533cd5e650d0066a071d # Parent 6662000a5bae9803a2e40f704c489ad50d317b22 Always include when checking for res_init. diff -r 6662000a5bae -r 40dbe784a4f7 configure.in --- a/configure.in Tue Nov 20 22:22:06 2007 +0000 +++ b/configure.in Tue Nov 20 23:06:39 2007 +0000 @@ -2756,15 +2756,19 @@ # Do we have res_init, for detecting changes in /etc/resolv.conf? resolv=no -AC_CHECK_FUNC(res_init, have_res_init=yes, have_res_init=no) +AC_TRY_LINK([#include +#include +#include ], + [return res_init();], + have_res_init=yes, have_res_init=no) if test "$have_res_init" = no; then OLIBS="$LIBS" LIBS="$LIBS -lresolv" AC_MSG_CHECKING(for res_init with -lresolv) AC_TRY_LINK([#include #include -#include ], - [res_init();], +#include ], + [return res_init();], have_res_init=yes, have_res_init=no) AC_MSG_RESULT($have_res_init) if test "$have_res_init" = yes ; then