AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R],
[AC_CACHE_CHECK(number of arguments to gethostbyname_r,
acx_which_gethostbyname_r, [
- AC_TRY_COMPILE([
+ AC_TRY_LINK([
# include <netdb.h>
], [
],acx_which_gethostbyname_r=3,
[
dnl acx_which_gethostbyname_r=0
- AC_TRY_COMPILE([
+ AC_TRY_LINK([
# include <netdb.h>
], [
char *name;
[
dnl acx_which_gethostbyname_r=0
- AC_TRY_COMPILE([
+ AC_TRY_LINK([
# include <netdb.h>
], [
char *name;