regex.m4: correct the reversed range endpoint ([b-a]) test
authorJim Meyering <meyering@redhat.com>
Fri, 19 Mar 2010 20:43:30 +0000 (21:43 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 20 Mar 2010 07:37:35 +0000 (08:37 +0100)
* m4/regex.m4: When requiring that [b-a] evoke failure,
use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
test pass once again for x86-based systems.

ChangeLog
m4/regex.m4

index c2e21c9..6cc0315 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-03-19  Jim Meyering  <meyering@redhat.com>
+
+       regex.m4: correct the reversed range endpoint ([b-a]) test
+       * m4/regex.m4: When requiring that [b-a] evoke failure,
+       use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
+       test pass once again for x86-based systems.
+
 2010-03-19  Bruno Haible  <bruno@clisp.org>
 
        scandir: Fix link error on Solaris 8.
index 6bd6b8f..95784e4 100644 (file)
@@ -1,4 +1,4 @@
-# serial 55
+# serial 56
 
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
@@ -96,8 +96,9 @@ AC_DEFUN([gl_REGEX],
             if (!s)
               return 1;
 
-            /* Ensure that [b-a] is diagnosed as invalid. */
-            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
+            /* Ensure that [b-a] is diagnosed as invalid, when
+               using RE_NO_EMPTY_RANGES. */
+            re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
             memset (&regex, 0, sizeof regex);
             s = re_compile_pattern ("a[b-a]", 6, &regex);
             if (s == 0)