openssl_ldflags := @openssl_ldflags@
gcrypt_ldflags := @gcrypt_ldflags@
socket_ldflags := @socket_ldflags@
+nsl_ldflags := @nsl_ldflags@
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
para_audiod \
para_recv \
: LDFLAGS += \
- $(socket_ldflags)
+ $(socket_ldflags) $(nsl_ldflags)
para_recv: $(recv_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
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([[