aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-02 14:06:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-02 14:06:27 +0000
commit07e58aaa79d87f4911bc383bec7f92ee8df97ab0 (patch)
tree41e647116e55da2fceed51df7831c727ada27a6d /acinclude.m4
parenta31ddd363bb125e852b57a715200b8f276c731fb (diff)
Sort of "fixed" KNOWN_BUGS #4: curl now builds IPv6 enabled on AIX 4.3. At
least it should no longer cause a compiler error. However, it does not have AI_NUMERICHOST so we cannot getaddrinfo() any numerical addresses with it (we use that for FTP PORT/EPRT)! So, I modified the configure check that checks if the getaddrinfo() is working, to use AI_NUMERICHOST since then it'll fail on AIX 4.3 and it will automatically build with IPv6 support disabled.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index f086a37ee..c9894c480 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -258,7 +258,7 @@ exit (h == NULL ? 1 : 0); }],[
])
dnl ************************************************************
-dnl check for working getaddrinfo()
+dnl check for working getaddrinfo() that works with AI_NUMERICHOST
dnl
AC_DEFUN([CURL_CHECK_WORKING_GETADDRINFO],[
AC_CACHE_CHECK(for working getaddrinfo, ac_cv_working_getaddrinfo,[
@@ -273,6 +273,7 @@ int main(void)
int error;
memset(&hints, 0, sizeof(hints));
+ hints.ai_flags = AI_NUMERICHOST;
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);