From 5b7c84fb55f4a9d3eb1f16ece92a0414fb88563b Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 15 May 2012 14:31:05 +0000 Subject: [PATCH] Rework res_mkquery test, adding test for __res_mkquery to fix problem on x86-64 platforms reported by snadge. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@191 13b04d17-f746-0410-82c6-800466cd88b0 --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index f0ea0b0..e2a98d5 100644 --- a/configure.in +++ b/configure.in @@ -55,10 +55,10 @@ AC_TRY_COMPILE([],[], dnl Checks for libraries. AC_CHECK_LIB(sun, getpwnam, LIBS="-lsun $LIBS",) AC_CHECK_LIB(dgc, inet_addr, LIBS="-ldgc $LIBS",) -AC_CHECK_LIB(resolv, res_mkquery, LIBS="-lresolv $LIBS"; AC_DEFINE(HAVE_RESOLV, 1, Define this if you have the resolv library.),) -AC_CHECK_LIB(c, res_mkquery, AC_DEFINE(HAVE_RESOLV, 1, Define this if you have the resolv library.),) AC_CHECK_LIB(crypt, crypt, LIBS="-lcrypt $LIBS"; AC_DEFINE(HAVE_CRYPT, 1, Define this if you have a crypt implementation in -lcrypt),) AC_CHECK_LIB(m, pow, LIBS="-lm $LIBS",) +AC_SEARCH_LIBS([res_mkquery], [resolv], AC_DEFINE(HAVE_RESOLV, 1, Define this if you have the resolv library.), +[AC_SEARCH_LIBS([__res_mkquery], [resolv], AC_DEFINE(HAVE_RESOLV, 1, Define this if you have the resolv library.), [], [])], []) dnl Checks for header files. AC_HEADER_DIRENT