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

NIS+ configuration checks



The following patches for configure.in and config.h.in allow NIS+ to
be correctly configured and compiled here, where NIS+ is running.  I
didn't see any compilation problems.

It also correctly failed to find NIS+ on a machine without it: one
last test I haven't performed is to try on a machine with NIS+ but
without it running, though I did check that nisls returns status 1 in
such circumstances, which should be all that is needed.

I haven't sent the patch for configure itself since I used an earlier
version of autoconf so there are actually rather more changes there
than are necessary.

*** config.h.in.nisplus	Thu Jul  4 22:00:19 1996
--- config.h.in	Fri Jul  5 10:05:15 1996
***************
*** 100,105 ****
--- 100,108 ----
  /* Define if your system defines TIOCGWINSZ in sys/ioctl.h.  */
  #undef GWINSZ_IN_SYS_IOCTL
  
+ /* Define to 1 if you have NISPLUS */
+ #undef HAVE_NIS_PLUS
+ 
  /* Define to 1 if you have NIS */
  #undef HAVE_NIS
  
*** configure.in.nisplus	Thu Jul  4 22:06:46 1996
--- configure.in	Fri Jul  5 10:04:02 1996
***************
*** 465,470 ****
--- 465,480 ----
    AC_DEFINE(HAVE_SUPERROOT)
  fi
  
+ dnl -----------------
+ dnl CHECK FOR NISPLUS
+ dnl -----------------
+ AC_CACHE_CHECK(for NIS+, zsh_cv_have_nis_plus,
+ [test -f /usr/bin/nisls && /usr/bin/nisls > /dev/null 2>&1 && \
+ zsh_cv_have_nis_plus=yes || zsh_cv_have_nis_plus=no])
+ if test $zsh_cv_have_nis_plus = yes; then
+   AC_DEFINE_UNQUOTED(HAVE_NIS_PLUS, "1")
+ fi
+ 
  dnl -------------
  dnl CHECK FOR NIS
  dnl -------------


-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.




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