Bruno Haible <[EMAIL PROTECTED]> writes: > That appears to be obsolete. As far as I see, there are no users of this > macro which don't also bundle regex.c.
Yes, that sounds right. I installed this patch into gnulib, and then reindented. 2005-08-23 Paul Eggert <[EMAIL PROTECTED]> * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used. All contents moved to gl_REGEX. (gl_REGEX): Don't bother checking whether lib/regex.c exists; assume that it does. --- m4/regex.m4 21 Aug 2005 00:51:27 -0000 1.41 +++ m4/regex.m4 23 Aug 2005 18:46:22 -0000 @@ -1,4 +1,4 @@ -#serial 25 +#serial 26 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free # Software Foundation, Inc. @@ -12,13 +12,6 @@ dnl Mostly written by Jim Meyering. AC_DEFUN([gl_REGEX], [ - gl_INCLUDED_REGEX([lib/regex.c]) -]) - -dnl Usage: gl_INCLUDED_REGEX([lib/regex.c]) -dnl -AC_DEFUN([gl_INCLUDED_REGEX], - [ AC_LIBSOURCES( [regcomp.c, regex.c, regex.h, regex_internal.c, regex_internal.h, regexec.c]) @@ -103,10 +96,6 @@ AC_DEFUN([gl_INCLUDED_REGEX], ac_use_included_regex=no fi - test -n "$1" || AC_MSG_ERROR([missing argument]) - m4_syscmd([test -f '$1']) - ifelse(m4_sysval, 0, - [ AC_ARG_WITH([included-regex], [ --without-included-regex don't compile regex; this is the default on systems with recent-enough versions of the GNU C @@ -117,10 +106,7 @@ AC_DEFUN([gl_INCLUDED_REGEX], AC_LIBOBJ([regex]) gl_PREREQ_REGEX fi - ], - ) - ] -) +]) # Prerequisites of lib/regex.c and lib/regex_internal.c. AC_DEFUN([gl_PREREQ_REGEX],