*** empty log message ***
[gnulib.git] / m4 / regex.m4
index 08438f4..f546dd7 100644 (file)
@@ -1,4 +1,4 @@
-#serial 9
+#serial 10
 
 dnl Initially derived from code in GNU grep.
 dnl Mostly written by Jim Meyering.
@@ -30,9 +30,10 @@ AC_DEFUN(jm_INCLUDED_REGEX,
            const char *s;
            struct re_registers regs;
            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
-           /* Add this third left square bracket, [, to balance the
-              three right ones below.  Otherwise autoconf-2.14 chokes.  */
+           /* These two brackets, `[[' and the one in the comment below serve
+              to quote the brackets (unbalanced) in the following line.  */
            s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
+           /* This bracket `]' helps quote the unbalanced expression above.  */
            /* This should fail with _Invalid character class name_ error.  */
            if (!s)
              exit (1);
@@ -45,7 +46,7 @@ AC_DEFUN(jm_INCLUDED_REGEX,
 
            /* The following example is derived from a problem report
                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
-           s = re_compile_pattern ("[anù]*n", 7, &regex);
+           s = re_compile_pattern ("[[anù]]*n", 7, &regex);
            if (s)
              exit (1);