diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-02-18 01:04:11 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-02-18 01:04:11 +0900 |
| commit | d3d1293974485ea3ff8ee69737ee0b0996f93149 (patch) | |
| tree | fee40fe0bd920bc65d737b7af360ba45724c57c9 /m4 | |
| parent | 838601329688156a6b29fd201e57f885bf53a5e1 (diff) | |
Check the availability of ares_set_servers and ares_addr_node.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/libcares.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/libcares.m4 b/m4/libcares.m4 index 4273917f..dd85dbc0 100644 --- a/m4/libcares.m4 +++ b/m4/libcares.m4 @@ -26,7 +26,10 @@ if test "x$have_libcares" != "xyes"; then fi if test "x$have_libcares" = "xyes"; then - + if test "x$need_librt" = "xyes"; then + LIBS="-lrt $LIBS" + fi + LIBS="-lcares $LIBS" AC_MSG_CHECKING([whether ares_host_callback accepts timeouts(c-ares >= 1.5)]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <ares.h> @@ -43,6 +46,8 @@ if test "x$have_libcares" = "xyes"; then if test "x$have_libcares1_5" = "xyes"; then AC_DEFINE([HAVE_LIBCARES1_5], [1], [Define 1 if ares_host_callback accepts timeouts(c-ares >= 1.5)]) fi + AC_CHECK_TYPES([ares_addr_node], [], [], [[#include <ares.h>]]) + AC_CHECK_FUNCS([ares_set_servers]) AC_DEFINE([HAVE_LIBCARES], [1], [Define to 1 if you have libcares.]) LIBCARES_LIBS="-L$libcares_prefix_lib -lcares" |
