Add check to link against socket/nsl if needed (fixes #1960)

git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@43 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
This commit is contained in:
Stefan Bühler 2009-04-13 11:11:57 +00:00
parent f3ea7f34be
commit 36734bc41f
2 changed files with 6 additions and 1 deletions

1
NEWS
View File

@ -7,6 +7,7 @@ NEWS
* Add homepage to README
* Add IPv6 support
* Fix problems with usernames starting with a digit and not existing uids; add warning if only user privs are dropped. (fixes #1959)
* Add check to link against socket/nsl if needed (fixes #1960)
- 1.6.1 - 2009-03-29

View File

@ -31,6 +31,10 @@ AC_HEADER_TIME
AC_CHECK_TYPES(socklen_t,,,[#include <sys/types.h>
#include <sys/socket.h>])
## solaris needs -lsocket -lnsl
AC_SEARCH_LIBS([socket],[socket])
AC_SEARCH_LIBS([inet_addr],[nsl socket])
# Checks for library functions.
AC_FUNC_CHOWN
AC_FUNC_FORK
@ -40,7 +44,7 @@ AC_FUNC_STAT
AC_CHECK_FUNCS([dup2 memset putenv select socket strerror strtol issetugid inet_pton])
dnl Check for IPv6 support
# Check for IPv6 support
AC_ARG_ENABLE(ipv6,
AC_HELP_STRING([--disable-ipv6],[disable IPv6 support]),