Mercurial > hg > octave-kai > gnulib-hg
view m4/getaddrinfo.m4 @ 6306:a564356589eb
Sync from coreutils.
(gl_GETADDRINFO): Check for gethostbyname
in the inet and nsl libraries. Required on Solaris 5.7.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 27 Sep 2005 08:39:44 +0000 |
parents | 9500c37faeb5 |
children | f1727ec07f78 |
line wrap: on
line source
# getaddrinfo.m4 serial 4 dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GETADDRINFO], [ AC_SEARCH_LIBS(getaddrinfo, nsl socket) AC_SEARCH_LIBS(gethostbyname, [inet nsl]) AC_REPLACE_FUNCS(getaddrinfo gai_strerror) gl_PREREQ_GETADDRINFO ]) # Prerequisites of lib/getaddrinfo.h and lib/getaddrinfo.c. AC_DEFUN([gl_PREREQ_GETADDRINFO], [ AC_REQUIRE([gl_C_RESTRICT]) AC_REQUIRE([gl_SOCKET_FAMILIES]) AC_REQUIRE([AC_C_INLINE]) AC_CHECK_HEADERS_ONCE([netinet/in.h]) ])