From: Paul Eggert Date: Mon, 14 Apr 2025 01:53:17 +0000 (-0700) Subject: regex: don’t assume RE_SYNTAX_* work in #if X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f6d648a883676256894f5687cbceffb1f4209e3d;p=gnulib.git regex: don’t assume RE_SYNTAX_* work in #if * m4/regex.m4 (gl_REGEX): Fix thinko that would have prevented future glibc versions from passing the test. --- diff --git a/m4/regex.m4 b/m4/regex.m4 index 1b2012fe00..52ce5c3b37 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,5 +1,5 @@ # regex.m4 -# serial 79 +# serial 80 dnl Copyright (C) 1996-2001, 2003-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -54,7 +54,7 @@ AC_DEFUN([gl_REGEX], static void sigabrt_no_core (int sig) { raise (SIGTERM); } #endif - #if RE_SYNTAX_EMACS != (RE_CHAR_CLASSES | RE_INTERVALS) + #if !RE_SYNTAX_EMACS # error "RE_SYNTAX_EMACS does not match Emacs behavior" #endif ]],