File: netlibs.m4

package info (click to toggle)
nmh 1.8-4
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 7,860 kB
  • sloc: ansic: 50,445; sh: 22,697; makefile: 1,138; lex: 740; perl: 509; yacc: 265
file content (9 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
dnl Updated for more modern systems.  Check to see if we need to link against
dnl optional libraries for networking functions.
dnl

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])])
])dnl