|
From: | Warren Young |
Subject: | Re: Failure to use -lnsl on Solaris with AC_CHECK_LIB |
Date: | Fri, 02 Sep 2005 20:50:26 -0600 |
User-agent: | Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Russ Allbery wrote:
AC_SEARCH_LIBS([gethostbyname], [nsl]) AC_SEARCH_LIBS([socket], [socket], , [AC_CHECK_LIB([nsl], [socket], LIBS="$LIBS -lsocket -lnsl", , -lsocket)])
A macro based on this code is now in the Autoconf Macro Archive: http://autoconf-archive.cryp.to/lib_socket_nsl.html Thanks to Russ for providing the core code!
[Prev in Thread] | Current Thread | [Next in Thread] |