Fix regex compilation error on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Sun, 23 Mar 2008 22:49:02 +0000 (23:49 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 23 Mar 2008 22:49:02 +0000 (23:49 +0100)
ChangeLog
m4/regex.m4
modules/regex

index 433c875edb292324ecda9ab30c842d38c3151999..80e900780bc5965e227920f05661cc850089bfe7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 7da6efedd10f771805a7cf23c0be6585c2262ac9..4879bd875dd795ff3696bb8b518a78ddf945858d 100644 (file)
@@ -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 <ctype.h>])
 ])
index edbf6a1797153726e50cbd30ec8bb833ab121d8c..d460ce220eedbbfcd85146d96bed0ef8f96b27b7 100644 (file)
@@ -9,6 +9,7 @@ lib/regex_internal.h
 lib/regexec.c
 lib/regcomp.c
 m4/regex.m4
+m4/mbstate_t.m4
 
 Depends-on:
 alloca