summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-01-09 08:31:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-01-09 08:31:48 +0000
commitde713cb37d5b19b64014dfec2de9f87ce5916957 (patch)
tree7babb4226bddec5dfefb106f51e1217f6fb48e5a /acinclude.m4
parent7a03bdaf347fa20be663a032ea195b972db8fa08 (diff)
downloadc-ares-de713cb37d5b19b64014dfec2de9f87ce5916957.tar.gz
c-ares-de713cb37d5b19b64014dfec2de9f87ce5916957.tar.bz2
c-ares-de713cb37d5b19b64014dfec2de9f87ce5916957.zip
Alexander Lazic improved the getservbyport_r() configure check.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 729c8b2..64804dc 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -782,7 +782,7 @@ AC_DEFUN([CARES_CHECK_CONSTANT], [
dnl This macro determines how many parameters getservbyport_r takes
AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
AC_MSG_CHECKING([how many arguments getservbyport_r takes])
- AC_TRY_COMPILE(
+ AC_TRY_LINK(
[#include <netdb.h>],
[
int p1, p5;
@@ -790,7 +790,7 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
struct servent *p3, *p6;
getservbyport_r(p1, p2, p3, p4, p5, &p6);
], ac_func_getservbyport_r=6,
- [AC_TRY_COMPILE(
+ [AC_TRY_LINK(
[#include <netdb.h>],
[
int p1, p5;
@@ -798,7 +798,7 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
struct servent *p3;
getservbyport_r(p1, p2, p3, p4, p5);
], ac_func_getservbyport_r=5,
- [AC_TRY_COMPILE(
+ [AC_TRY_LINK(
[#include <netdb.h>],
[
int p1;