X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fregex.m4;h=0017507edf03ecd43cbbae382ba785f0078b2dd7;hb=b6f4a765056b52c30e9b44ca0990f536dd0cb9de;hp=a79f03bcd73e2cad20a4deecd738efc518ab2a7b;hpb=f2aaef059b81506453205d7efc4b7e66b4876254;p=gnulib.git diff --git a/m4/regex.m4 b/m4/regex.m4 index a79f03bcd..0017507ed 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,11 +1,11 @@ -#serial 10 +#serial 12 dnl Initially derived from code in GNU grep. dnl Mostly written by Jim Meyering. dnl Usage: jm_INCLUDED_REGEX([lib/regex.c]) dnl -AC_DEFUN(jm_INCLUDED_REGEX, +AC_DEFUN([jm_INCLUDED_REGEX], [ dnl Even packages that don't use regex.c can use this macro. dnl Of course, for them it doesn't do anything. @@ -30,10 +30,7 @@ AC_DEFUN(jm_INCLUDED_REGEX, const char *s; struct re_registers regs; re_set_syntax (RE_SYNTAX_POSIX_EGREP); - /* 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, ®ex); - /* This bracket ']' helps quote the unbalanced expression above. */ + [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);] /* This should fail with _Invalid character class name_ error. */ if (!s) exit (1);