X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fregex.m4;h=0017507edf03ecd43cbbae382ba785f0078b2dd7;hb=b6f4a765056b52c30e9b44ca0990f536dd0cb9de;hp=66b39c3aea339fd672c3477d18aae664e32b1aa9;hpb=1101c119db205fd986144867cde7545ef52460a7;p=gnulib.git diff --git a/m4/regex.m4 b/m4/regex.m4 index 66b39c3ae..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,9 +30,7 @@ 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. */ - s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex); + [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);] /* This should fail with _Invalid character class name_ error. */ if (!s) exit (1);