Fix detection of ipv6 on Solaris
authorDennis Stosberg <dennis@stosberg.net>
Tue, 15 Aug 2006 09:01:27 +0000 (11:01 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 15 Aug 2006 09:58:47 +0000 (02:58 -0700)
The configuration script detects whether linking with -lsocket is
necessary but doesn't add -lsocket to LIBS.  This lets the ipv6 test
fail.

Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
configure.ac

index 0321d437d981cbdc9ce616d11ec83700e4c998fb..36f9cd94d847f1dc95d293ebafbab74cf37fec53 100644 (file)
@@ -154,6 +154,7 @@ AC_CHECK_LIB([c], [socket],
 [NEEDS_SOCKET=],
 [NEEDS_SOCKET=YesPlease])
 AC_SUBST(NEEDS_SOCKET)
+test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
 
 
 ## Checks for header files.