]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
check and use libnsl (used in solaris)
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 23 Oct 2014 07:52:36 +0000 (09:52 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 23 Oct 2014 07:52:36 +0000 (09:52 +0200)
configure.ac
lib/Makefile.am

index 5620b8fd38f2aac0392fa8e10c2339319c5388d3..44163be855acfa2a40055ef4ec7847a9b5f9a639 100644 (file)
@@ -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 <arpa/inet.h>], [inet_pton(0,0,0);])
+fi
+
 if test "$ac_cv_func_clock_gettime" != "yes";then
   AC_LIB_HAVE_LINKFLAGS(rt,, [#include <time.h>], [clock_gettime (0, 0);])
   gnutls_needs_librt=yes
index fccc8d430c2bc0bf2280153728fecec241ec85b9..febc59bbaa4c3e857ed96b568624a61dd97bc6c9 100644 (file)
@@ -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