changeset 9809:b17288dc1d83

Fix regex compilation error on HP-UX 11.
author Bruno Haible <bruno@clisp.org>
date Sun, 23 Mar 2008 23:49:02 +0100
parents b5b092e3f5c7
children f805ab5f1771
files ChangeLog m4/regex.m4 modules/regex
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 23 20:13:23 2008 +0100
+++ b/ChangeLog	Sun Mar 23 23:49:02 2008 +0100
@@ -1,3 +1,10 @@
+2008-03-23  Bruno Haible  <bruno@clisp.org>
+
+	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 <ton.voon@altinity.com>.
+
 2008-03-23  Bruno Haible  <bruno@clisp.org>
 
 	* doc/gnulib-tool.texi (gettextize and autopoint): New section.
--- a/m4/regex.m4	Sun Mar 23 20:13:23 2008 +0100
+++ b/m4/regex.m4	Sun Mar 23 23:49:02 2008 +0100
@@ -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_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 <ctype.h>])
 ])
--- a/modules/regex	Sun Mar 23 20:13:23 2008 +0100
+++ b/modules/regex	Sun Mar 23 23:49:02 2008 +0100
@@ -9,6 +9,7 @@
 lib/regexec.c
 lib/regcomp.c
 m4/regex.m4
+m4/mbstate_t.m4
 
 Depends-on:
 alloca