AC_SUBST(socket_ldflags)
########################################################################### libnsl
AC_CHECK_LIB([c], [gethostbyname],
- [nsl_lib=],
- [nsl_lib="-lnsl"]
+ [nsl_ldflags=],
+ [nsl_ldflags="-lnsl"]
)
-server_ldflags="$server_ldflags $nsl_lib"
-client_ldflags="$client_ldflags $nsl_lib"
-audioc_ldflags="$audioc_ldflags $nsl_lib"
-recv_ldflags="$recv_ldflags $nsl_lib"
-AC_SEARCH_LIBS([inet_ntoa],[nsl],[],[
- AC_MSG_ERROR([Fatal: Did not find inet_ntoa().])
-],[])
+AC_SUBST(nsl_ldflags)
########################################################################### ucred
AC_MSG_CHECKING(for struct ucred)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[