From 5c29fed4f72c7558ae15ed2c0b1268bab61a0321 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Sep 1997 19:35:00 +0000 Subject: sysV68 R3V7.1 port changes. svn path=/trunk/; revision=1282 --- configure.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d406ab2c..562f4fa9 100644 --- a/configure.in +++ b/configure.in @@ -31,9 +31,16 @@ AC_PROG_LEX AC_PROG_YACC AC_SUBST(LIBOBJS) +# Under sysV68, socket and friends are provided by the C library. +# -linet does not provide socket, but causes multiple definition +# errors at link-time. It is thus better to only use the C library. +# So don't add -linet to the link list unless it's necessary +AC_CHECK_FUNC(socket, + AC_MSG_RESULT(using libc's socket), + AC_CHECK_LIB(socket,socket) + AC_CHECK_LIB(inet,socket)) + AC_CHECK_LIB(nsl,inet_addr) -AC_CHECK_LIB(socket,socket) -AC_CHECK_LIB(inet,socket) AC_CHECK_LIB(opie,opiegenerator) dnl Port hack for Interactive UNIX System V/386 Release 3.2 -- cgit v1.2.3