Check for getaddrinfo rather than gethostbyname in configure.ac
authorJosh Triplett <josh@freedesktop.org>
Thu, 23 Nov 2006 05:49:52 +0000 (21:49 -0800)
committerJosh Triplett <josh@freedesktop.org>
Thu, 23 Nov 2006 05:49:52 +0000 (21:49 -0800)
Since the addition of IPv6 support, we now use getaddrinfo rather than
gethostbyname; update configure.ac accordingly.

configure.ac

index fa49f9a..c9fc555 100644 (file)
@@ -55,7 +55,7 @@ AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
 AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
 
 AC_HEADER_STDC
-AC_SEARCH_LIBS(gethostbyname, nsl)
+AC_SEARCH_LIBS(getaddrinfo, socket)
 AC_SEARCH_LIBS(connect, socket)
 
 xcbincludedir='${includedir}/xcb'