diff --git a/cf/sunos.m4 b/cf/sunos.m4 index 938fc3a5e..d9aa52cb6 100644 --- a/cf/sunos.m4 +++ b/cf/sunos.m4 @@ -26,4 +26,5 @@ if test "$sunos" != no; then AC_DEFINE_UNQUOTED(SunOS, $sunos, [Define to what version of SunOS you are running.]) fi +AM_CONDITIONAL(SUNOS, test "$sunos" != no) ]) diff --git a/lib/roken/Makefile.am b/lib/roken/Makefile.am index f6d038f3f..0201a2c5a 100644 --- a/lib/roken/Makefile.am +++ b/lib/roken/Makefile.am @@ -198,6 +198,9 @@ EXTRA_libroken_la_SOURCES = \ vis.hin libroken_la_LIBADD = @LTLIBOBJS@ $(LIB_crypt) $(LIB_pidfile) +if SUNOS +libroken_la_LIBADD += -lnsl +endif $(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h $(XHEADERS)