summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Dennis Stosberg <dennis@stosberg.net>2006-08-15 11:01:27 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-15 02:58:47 -0700
commitd1b9944db8f66131b259be407472e53db33718ea (patch)
treeadb429ceb2cfbc585b199ebe01b8c2ea72339b29
parentLook for sockaddr_storage in sys/socket.h (diff)
downloadtgif-d1b9944db8f66131b259be407472e53db33718ea.tar.xz
Fix detection of ipv6 on Solaris
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>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0321d437d9..36f9cd94d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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.