From 414d630c1c5248b1da281b2bbd0a4ea48792b187 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 23 Mar 2008 23:49:02 +0100 Subject: [PATCH] Fix regex compilation error on HP-UX 11. --- ChangeLog | 7 +++++++ m4/regex.m4 | 5 +++-- modules/regex | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 433c875ed..80e900780 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-03-23 Bruno Haible + Fix regex compilation error on HP-UX 11. + * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T. + * modules/regex (Files): Add m4/mbstate_t.m4. + Reported by Ton Voon . + +2008-03-23 Bruno Haible + * doc/gnulib-tool.texi (gettextize and autopoint): New section. 2008-03-23 Eric Blake diff --git a/m4/regex.m4 b/m4/regex.m4 index 7da6efedd..4879bd875 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,7 +1,7 @@ -#serial 48 +#serial 49 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007 Free Software Foundation, Inc. +# 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -217,6 +217,7 @@ AC_DEFUN([gl_PREREQ_REGEX], [ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([AC_C_RESTRICT]) + AC_REQUIRE([AC_TYPE_MBSTATE_T]) AC_CHECK_FUNCS_ONCE([isblank iswctype mbrtowc wcrtomb wcscoll]) AC_CHECK_DECLS([isblank], [], [], [#include ]) ]) diff --git a/modules/regex b/modules/regex index edbf6a179..d460ce220 100644 --- a/modules/regex +++ b/modules/regex @@ -9,6 +9,7 @@ lib/regex_internal.h lib/regexec.c lib/regcomp.c m4/regex.m4 +m4/mbstate_t.m4 Depends-on: alloca -- 2.11.0