Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17ac14d

Browse files
committed
try to improve svr4 socket library inquiries
1 parent caa6380 commit 17ac14d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

configure.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ AC_MSG_RESULT($LINKFORSHARED)
125125
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
126126
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
127127
AC_CHECK_LIB(sun, getpwnam) # NIS (== YP) interface for IRIX 4
128-
AC_CHECK_LIB(socket, socket, [LIBS=-lsocket -linet -lnsl], [], [-linet -lnsl])
128+
AC_CHECK_LIB(nsl, gethostbyname, [LIBS="-lnsl $LIBS"]) # hosts db interface
129+
AC_CHECK_LIB(inet, ???, [LIBS="-linet $LIBS"]) # SVR4 internet???
130+
AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"]) # SVR4 sockets
129131

130132
AC_CHECKING(for --with-readline)
131133
AC_ARG_WITH(readline, [--with-readline=DIRECTORY GNU readline], [

0 commit comments

Comments
 (0)