From 6456298728da1591044a3237258ca16828a4e45d Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Fri, 2 Dec 2011 23:04:16 -0500 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ m4/gethostname.m4 | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cabef931af..92d518bedf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-01 Ben Walton + + 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 Fix module descriptions syntax. diff --git a/m4/gethostname.m4 b/m4/gethostname.m4 index 8ea6329a20..ad93c9f2db 100644 --- 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 @@ AC_DEFUN([gl_FUNC_GETHOSTNAME], HAVE_GETHOSTNAME=0 fi - dnl Also provide HOST_NAME_MAX when lacks it. + gl_PREREQ_HOST_NAME_MAX +]) + +dnl Also provide HOST_NAME_MAX when lacks it. +AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [ + dnl - On most Unix systems, use MAXHOSTNAMELEN from instead. dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from instead. dnl - On mingw, use 256, because -- 2.39.5