Pulled in from nmh. Thanks to Ken Hornstein.
# optional libraries for networking functions.
#
-AC_DEFUN([AC_CHECK_NETLIBS],
+AC_DEFUN([NMH_CHECK_NETLIBS],
[AC_SEARCH_LIBS([gethostbyname], [nsl], ,
[AC_MSG_ERROR([gethostbyname not found])])
AC_SEARCH_LIBS([connect], [socket], , [AC_MSG_ERROR([connect not found])])
AC_CHECK_FUNC(modf, , AC_CHECK_LIB(m, modf))
dnl Checks for network libraries (nsl, socket)
-AC_CHECK_NETLIBS
+NMH_CHECK_NETLIBS
termcap_curses_order="termcap curses ncurses"
for lib in $termcap_curses_order; do