diff --git a/configure.ac b/configure.ac index 2ac70f5..8035d2f 100644 --- a/configure.ac +++ b/configure.ac @@ -564,9 +564,10 @@ if test "x$enable_ipv6" != "xno"; then dnl check for getaddrinfo and freeaddrinfo function presence for func in "getaddrinfo" "freeaddrinfo"; do AC_MSG_CHECKING([for $func]) - AC_TRY_LINK([], [$func();], - [func_present=yes], - [func_present=no]) + AC_TRY_LINK([#include ], + [$func;], + [func_present=yes], + [func_present=no]) AC_MSG_RESULT($func_present) if test "x$func_present" = "xno"; then