Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 75143
Collapse All | Expand All

(-)src/aclocal.m4.orig (-4 / +15 lines)
Lines 1229-1238 Link Here
1229
    AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", , -lnsl)))
1229
    AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", , -lnsl)))
1230
  KRB5_AC_ENABLE_DNS
1230
  KRB5_AC_ENABLE_DNS
1231
  if test "$enable_dns" = yes ; then
1231
  if test "$enable_dns" = yes ; then
1232
    AC_CHECK_FUNC(res_search, , AC_CHECK_LIB(resolv, res_search,
1232
    AC_MSG_CHECKING(for res_search)
1233
	LIBS="$LIBS -lresolv" ; RESOLV_LIB=-lresolv,
1233
	AC_TRY_LINK_FUNC(res_search, AC_MSG_RESULT(yes),
1234
	AC_MSG_ERROR(Cannot find resolver support routine res_search in -lresolv.)
1234
	  AC_MSG_RESULT(no))
1235
    ))
1235
	saved_LIBS="$LIBS"
1236
	LIBS="$LIBS -lresolv"
1237
	AC_MSG_CHECKING(for res_search in -lresolv)
1238
	AC_LINK_IFELSE([[
1239
#include <resolv.h>
1240
int main()
1241
{
1242
	res_search (0, 0, 0, 0, 0);
1243
	return 0;
1244
}]],
1245
    LIBS="$LIBS -lresolv"; RESOLV_LIB=-lresolv; AC_MSG_RESULT(yes),
1246
	LIBS="$saved_LIBS"; AC_MSG_RESULT(no))
1236
  fi
1247
  fi
1237
  AC_SUBST(RESOLV_LIB)
1248
  AC_SUBST(RESOLV_LIB)
1238
  ])
1249
  ])

Return to bug 75143