From cc0542dfe17831f7eab6d344202d573e3c6b9a57 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 11 Aug 2012 23:10:43 +0300 Subject: [PATCH] Test if -lsocket and -lnsl are needed (for Solaris) Signed-off-by: Timo Sirainen --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 40f41d8..3728eee 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,9 @@ AS_IF([test x"$with_utempter" != xno], AC_SEARCH_LIBS([compress], [z], , [AC_MSG_ERROR([Unable to find zlib.])]) +AC_SEARCH_LIBS([socket], [socket]) +AC_SEARCH_LIBS([inet_addr], [nsl]) + # Checks for header files. AC_CHECK_HEADERS([arpa/inet.h fcntl.h langinfo.h limits.h locale.h netinet/in.h stddef.h stdint.h inttypes.h stdlib.h string.h sys/ioctl.h sys/resource.h sys/socket.h sys/stat.h sys/time.h termios.h unistd.h wchar.h wctype.h], [], [AC_MSG_ERROR([Missing required header file.])])