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
This commit is contained in:
Kevin Easton
2012-05-15 14:31:05 +00:00
parent 43f5288dd4
commit 5b7c84fb55

View File

@@ -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