Mercurial > hg > octave-kai > gnulib-hg
changeset 16142:d59f494f0005
Split the HOST_NAME_MAX detection into a separate m4 macro
The sethostname module will rely on this code too, so make it a
separate function.
* m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
macro so it can be used by the pending sethostname module.
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
author | Ben Walton <bwalton@artsci.utoronto.ca> |
---|---|
date | Fri, 02 Dec 2011 23:04:16 -0500 |
parents | 39ebdfb411b2 |
children | 17192ee7ddcd |
files | ChangeLog m4/gethostname.m4 |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-01 Ben Walton <bwalton@artsci.utoronto.ca> + + Split the HOST_NAME_MAX detection into a separate m4 macro. + * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate + macro so it can be used by the pending sethostname module. + 2011-12-03 Bruno Haible <bruno@clisp.org> Fix module descriptions syntax.
--- a/m4/gethostname.m4 +++ b/m4/gethostname.m4 @@ -1,4 +1,4 @@ -# gethostname.m4 serial 12 +# gethostname.m4 serial 13 dnl Copyright (C) 2002, 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -40,7 +40,12 @@ HAVE_GETHOSTNAME=0 fi - dnl Also provide HOST_NAME_MAX when <limits.h> lacks it. + gl_PREREQ_HOST_NAME_MAX +]) + +dnl Also provide HOST_NAME_MAX when <limits.h> lacks it. +AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [ + dnl - On most Unix systems, use MAXHOSTNAMELEN from <sys/param.h> instead. dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from <netdb.h> instead. dnl - On mingw, use 256, because