[2658] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: -lsocket, -lnsl

daemon@ATHENA.MIT.EDU (Theodore Y. Ts'o)
Fri Oct 24 19:39:27 1997

Date: Fri, 24 Oct 1997 19:38:52 -0400
From: "Theodore Y. Ts'o" <tytso@MIT.EDU>
To: Assar Westerlund <assar@sics.se>
Cc: Ezra Peisach <epeisach@MIT.EDU>, krbdev@MIT.EDU
In-Reply-To: Assar Westerlund's message of 24 Oct 1997 11:45:32 +0200,
	<5l201b4hqb.fsf@assaris.sics.se>

   From: Assar Westerlund <assar@sics.se>
   Date: 24 Oct 1997 11:45:32 +0200

   Basically, only link with these libraries if you need to.

   This is what we do in Heimdal.  Feel free to steal it :-)

   AC_FIND_FUNC(socket, socket)
   AC_FIND_FUNC(gethostbyname, nsl)

Assar, if you only give one argument to AC_FIND_FUNC, there's no
difference between that and AC_CHECK_FUNC, which is already defined by
autoconf, right?

Ezra, Greg Hudson's

AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname))
AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket))

looks good to me.  It seems reasonable to check to see if
gethostbyname/socket is in libc before checking to see if its in nsl or
socket.

						- Ted

	

home help back first fref pref prev next nref lref last post