From: Nikos Mavrogiannopoulos Date: Thu, 23 Oct 2014 07:52:36 +0000 (+0200) Subject: check and use libnsl (used in solaris) X-Git-Tag: gnutls_3_4_0~751 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5531090d2b4e74a00138dc7884a0ea3ba99bf4e7;p=thirdparty%2Fgnutls.git check and use libnsl (used in solaris) --- diff --git a/configure.ac b/configure.ac index 5620b8fd38..44163be855 100644 --- a/configure.ac +++ b/configure.ac @@ -202,6 +202,10 @@ if test "$ac_cv_func_nanosleep" != "yes";then gnutls_needs_librt=yes fi +if test "$ac_cv_func_inet_pton" != "yes";then + AC_LIB_HAVE_LINKFLAGS(nsl,, [#include ], [inet_pton(0,0,0);]) +fi + if test "$ac_cv_func_clock_gettime" != "yes";then AC_LIB_HAVE_LINKFLAGS(rt,, [#include ], [clock_gettime (0, 0);]) gnutls_needs_librt=yes diff --git a/lib/Makefile.am b/lib/Makefile.am index fccc8d430c..febc59bbaa 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -129,7 +129,7 @@ libgnutls_la_LIBADD = ../gl/libgnu.la x509/libgnutls_x509.la \ ext/libgnutls_ext.la \ auth/libgnutls_auth.la algorithms/libgnutls_alg.la \ extras/libgnutls_extras.la -thirdparty_libadd = $(LTLIBZ) $(LTLIBINTL) $(LIBSOCKET) \ +thirdparty_libadd = $(LTLIBZ) $(LTLIBINTL) $(LIBSOCKET) $(LTLIBNSL) \ $(LTLIBICONV) $(P11_KIT_LIBS) $(LIB_SELECT) $(TSS_LIBS) if HAVE_LIBIDN