mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
Merge of 24118: only link against libnsl if we have NIS and need it for yp_all,
or if we need it for getpwnam.
This commit is contained in:
parent
67ed8932af
commit
2a9311c0a4
1 changed files with 4 additions and 4 deletions
|
@ -727,10 +727,7 @@ case $LIBS in
|
||||||
AC_DEFINE(ZSH_IGNORE_NCURSES) ;;
|
AC_DEFINE(ZSH_IGNORE_NCURSES) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
|
AC_SEARCH_LIBS(getpwnam, nsl)
|
||||||
dnl libnsl (Network Services Library) to find yp_all
|
|
||||||
|
|
||||||
AC_SEARCH_LIBS(yp_all, nsl)
|
|
||||||
|
|
||||||
dnl I am told that told that unicos reqire these for nis_list
|
dnl I am told that told that unicos reqire these for nis_list
|
||||||
if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then
|
if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then
|
||||||
|
@ -1648,6 +1645,9 @@ AC_CACHE_CHECK(for NIS, zsh_cv_sys_nis,
|
||||||
zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no])
|
zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no])
|
||||||
if test $zsh_cv_sys_nis = yes; then
|
if test $zsh_cv_sys_nis = yes; then
|
||||||
AC_DEFINE(HAVE_NIS)
|
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
|
fi
|
||||||
|
|
||||||
dnl -----------------
|
dnl -----------------
|
||||||
|
|
Loading…
Reference in a new issue