Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: reduce linking -lnsl



I'm getting libnsl linked even though I have neither NIS nor name
serviec needs beyond libc.  This is meant to fix that but not break
other platforms that do need it.

Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.81
diff -u -r1.81 configure.ac
--- configure.ac	20 Nov 2007 16:02:17 -0000	1.81
+++ configure.ac	24 Nov 2007 01:48:32 -0000
@@ -769,10 +769,7 @@
   AC_DEFINE(ZSH_IGNORE_NCURSES) ;;
 esac
 
-dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
-dnl libnsl (Network Services Library) to find yp_all
-
-AC_SEARCH_LIBS(yp_all, nsl)
+AC_SEARCH_LIBS(getpwnam, nsl)
 
 dnl I am told that told that unicos reqire these for nis_list
 if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then
@@ -1747,6 +1744,9 @@
 zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no])
 if test x$zsh_cv_sys_nis = xyes; then
   AC_DEFINE(HAVE_NIS)
+dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
+dnl libnsl (Network Services Library) to find yp_all
+  AC_SEARCH_LIBS(yp_all, nsl)
 fi
 
 dnl -----------------



Messages sorted by: Reverse Date, Date, Thread, Author