From: Ronnie Sahlberg Date: Sat, 16 Aug 2014 23:17:06 +0000 (-0700) Subject: solaris: we need -lsocket and -lnsl for all builds not just examples X-Git-Tag: upstream/1.9.6^2~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5fe97d108860c35e28f1d01e1766e6a2cef6d548;p=deb_libnfs.git solaris: we need -lsocket and -lnsl for all builds not just examples Signed-off-by: Ronnie Sahlberg --- diff --git a/configure.ac b/configure.ac index c4fe184..b790b06 100644 --- a/configure.ac +++ b/configure.ac @@ -72,10 +72,8 @@ case $host in *solaris*) AC_CHECK_HEADERS([sys/filio.h]) AC_CHECK_HEADERS([sys/sockio.h]) - if test x$ENABLE_EXAMPLES = xyes; then - AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])]) - AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])]) - fi + AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])]) + AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])]) ;; *) ;;