summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* build: support explicit ‘PCRE_CFLAGS= PCRE_LIBS=’Paul Eggert2023-04-291-1/+1
| | | | | * m4/pcre.m4 (gl_FUNC_PCRE): Check whether PCRE_CFLAGS and PCRE_LIBS are set, not whether they are set to a nonempty value.
* build: prevent pkg-config from overriding PCRE_* settingsCarlo Marcelo Arenas Belón2023-04-221-1/+4
| | | | | | | | The use of PCRE_CFLAGS and PCRE_LIBS, as documented in the output of `--help`, is meant to override those settings from pkg-config. * NEWS: mention this * m4/pcre.m4: avoid overriding user provided settings
* maint: update copyright datesJim Meyering2023-01-011-1/+1
|
* maint: make update-copyrightJim Meyering2022-01-011-1/+1
|
* maint: minor rewording and reindentingPaul Eggert2021-11-141-4/+4
|
* grep: migrate to pcre2Carlo Marcelo Arenas Belón2021-11-141-10/+11
| | | | | | | | | | | | | | | | | | | | | | Mostly a bug by bug translation of the original code to the PCRE2 API. Code still could do with some optimizations but should be good as a starting point. The API changes the sign of some types and therefore some ugly casts were needed, some of the changes are just to make sure all variables fit into the newer types better. Includes backward compatibility and could be made to build all the way to 10.00, but assumes a recent enough version and has been tested with 10.23 (from CentOS 7, the oldest). Performance seems equivalent, and it also seems functionally complete. * m4/pcre.m4 (gl_FUNC_PCRE): Check for PCRE2, not the original PCRE. * src/pcresearch.c (struct pcre_comp, jit_exec) (Pcompile, Pexecute): Use PCRE2, not the original PCRE. * tests/filename-lineno.pl: Adjust to match PCRE2 diagnostics.
* maint: run "make update-copyright"Paul Eggert2021-01-011-1/+1
|
* maint: avoid autoconf warningsJim Meyering2020-09-271-1/+1
| | | | | * configure.ac (AC_HEADER_STDC): Remove. It's been assumed for ages. * m4/pcre.m4 (gl_FUNC_PCRE): Use AS_HELP_STRING, not AC_HELP_STRING.
* maint: update all copyright year number rangesJim Meyering2020-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * doc/grep.in.1: Use "-" in copyright year ranges, not \en.
* maint: update all copyright dates via "make update-copyright"Jim Meyering2019-01-011-1/+1
| | | | * gnulib: Also update submodule for its copyright updates.
* maint: update gnulib and copyright dates for 2018Jim Meyering2018-01-061-1/+1
| | | | | | * gnulib: Update to latest. * all files: Run "make update-copyright". * bootstrap: Update from gnulib.
* maint: update gnulib and copyright dates for 2017Jim Meyering2017-01-011-1/+1
| | | | | * gnulib: Update to latest. * all files: Run "make update-copyright".
* maint: update copyright year, bootstrap, init.shJim Meyering2016-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest. * tests/init.sh: Update from gnulib. * bootstrap: Likewise.
* build: improve pkg-config doc and error handlingPaul Eggert2015-04-061-6/+6
| | | | | | | | | | | Error-handling improvement suggested by Mike Frysinger in: http://bugs.gnu.org/16757#29 * NEWS: Document pkg-config changes. * README-prereq: pkg-config is now a prereq when building from repository. * m4/pcre.m4 (gl_FUNC_PCRE): Report an error if pcre is explicitly requested but not available. Defer to user-supplied PCRE_CFLAGS and PCRE_LIBS.
* build: remove typo and don't bother with /usr/include/pcrePaul Eggert2015-04-061-7/+1
| | | | | | | | Problem reported by Holger Bruenjes. * m4/pcre.m4: Remove test for /usr/include/libpng (a typo). Come to think of it, don't bother worrying about /usr/include/pcre, as hosts with that problem can use pkg-config or configure with CFLAGS by hand.
* build: use pkg-config (if available) to configure libpcrePaul Eggert2015-04-061-23/+39
| | | | | | | | | | | | | Problem reported by Mike Frysinger in: http://bugs.gnu.org/16757 * bootstrap.conf (bootstrap_post_import_hook): Copy pkg-config's pkg.m4. * configure.ac: Invoke PKG_PROG_PKG_CONFIG. * m4/pcre.m4 (gl_FUNC_PCRE): Rewrite to use pkg-config if available, and to test that pcre_compile can be linked to. * src/Makefile.am (AM_CFLAGS): Add PCRE_CFLAGS. (grep_LDADD): Add PCRE_LIBS. * src/pcresearch.c: Simply include <pcre.h> if HAVE_LIBPCRE, since 'configure' arranges for the appropriate -I option now.
* maint: update copyright year ranges to include 2015Jim Meyering2015-01-011-1/+1
| | | | | Run "make update-copyright". Also, ... * grep.texi: Update manually, converting each "--" to "-".
* maint: update copyright dates for 2014Jim Meyering2014-01-011-1/+1
| | | | Do that by running "make update-copyright".
* maint: update all copyright year number rangesJim Meyering2013-01-041-1/+1
| | | | Run "make update-copyright".
* maint: quote 'like this' or "like this", not `like this'Paul Eggert2012-05-061-1/+2
| | | | | | | | | | | | | | | | See <http://lists.gnu.org/archive/html/bug-grep/2012-01/msg00125.html>. * ChangeLog-2009, HACKING, NEWS, README-hacking, cfg.mk, configure.ac: * lib/colorize-w32.c, m4/pcre.m4: * src/Makefile.am, src/dfa.c, src/dosbuf.c, src/main.c: * tests/backref, tests/help-version, tests/tests: In commentary, quote 'like this' or "like this" rather than `like this' or ``like this''. * cfg.mk (old_NEWS_hash): Update due to changed old NEWS. * doc/grep.texi (General Output Control): Quote sample text with @samp, not with `...'. * src/main.c (usage): * tests/help-version: Quote 'like this' rather than `like this' in diagnostics.
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* maint: remove now-unused/obsolete filesPaul Eggert2011-12-281-9/+0
| | | | | | * README.DOS: Remove file. * m4/djgpp.m4: Likewise. * .gitignore: Remove reference to m4/djgpp.m4.
* maint: update copyright year ranges to include 2011Jim Meyering2011-01-031-1/+1
| | | | Run "make update-copyright", so "make syntax-check" works in 2011.
* convert all TABs to equivalent spaces in indentationJim Meyering2010-04-081-3/+3
| | | | | | | | | | | | | | | | | | | Using this file, cat > leading-blank.exempt <<\EOF (?:^|\/)ChangeLog[^/]*$ (?:^|\/)(?:GNU)?[Mm]akefile[^/]*$ \.(?:am|mk)$ EOF run this command to convert all non-conforming leading white space to be all spaces: git ls-files \ | pcregrep -vf leading-blank.exempt \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* build: detect PCRE support also when <pcre/pcre.h> is the headerJim Meyering2010-03-301-1/+3
| | | | | | | | | * m4/pcre.m4: Also check for <pcre/pcre.h>. * src/pcresearch.c: Include <pcre/pcre.h>, if needed. Guard inclusions with HAVE_PCRE_H and HAVE_PCRE_PCRE_H, not HAVE_LIBPCRE. * NEWS (Bug fixes): Mention it. Dmitry V. Levin reported that PCRE support was not detected on systems with <pcre.h> not in the default include path.
* build: do not use pkg-config to test for PCRE supportJim Meyering2010-03-261-0/+45
| | | | | | | | | | | | | | * configure.ac: Do not use PKG_PROG_PKG_CONFIG or PKG_CHECK_MODULES. Do not modify CPPFLAGS; that belongs to those who invoke make. Instead, use autoconf's AC_CHECK_HEADERS and AC_SEARCH_LIBS via the new macro, gl_FUNC_PCRE, defined in... * m4/pcre.m4 (gl_FUNC_PCRE): New macro, to handle pcre-related configure-time tests. * src/Makefile.am (grep_LDADD): Use LIB_PCRE, not PCRE_LIBS. * src/pcresearch.c: Test HAVE_LIBPCRE via "#if", not "#ifdef". All other cpp tests of this symbol used "#if". Prompted by a suggestion from Bruno Haible. * NEWS (Build-related): Mention this.
* maint: use regex from gnulib, rather than our bit-rotting oneJim Meyering2010-02-031-74/+0
| | | | | | | | | | * bootstrap.conf (gnulib_modules): Add regex. * configure.ac: Don't use jm_INCLUDED_REGEX. Update use of cache variable. * lib/regex.c: Remove file. * lib/regex.h: Likewise. * m4/regex.m4: Likewise. * POTFILES.in: Update to match.
* maint: remove decl.m4Jim Meyering2010-01-061-37/+0
| | | | * m4/decl.m4: Remove unused file.
* maint: remove {m4,lib}/.gitignore; they were undergoing too much churnJim Meyering2010-01-061-148/+0
| | | | | | | * .gitignore: Ignore all of m4/* except m4/djgpp.m4 and all of lib/* except Makefile.am, savedir.c and savedir.h. * m4/.gitignore: Remove file. * lib/.gitignore: Remove file.
* build: run gnulib's tests, tooJim Meyering2010-01-051-0/+12
| | | | | | | | * Makefile.am (SUBDIRS): Add gnulib-tests. * gnulib-tests/Makefile.am: New file. * bootstrap.conf (bootstrap_epilogue): New function, from coreutils. (gnulib_tool_option_extras): Define. * configure.ac: Add gnulib-tests/Makefile.
* build: get more lib/* files from gnulib, adjust savedirJim Meyering2009-11-301-0/+39
| | | | | | | | | | | | | | * bootstrap.conf (gnulib_modules): Add the following: closeout exclude hard-locale isdir strtoumax. * lib/.gitignore, m4/.gitignore: Update. * lib/closeout.c, lib/closeout.h: Remove. * lib/exclude.c, lib/exclude.h: Remove. * lib/hard-locale.c, lib/hard-locale.h: Remove. * lib/strtoumax.c: Remove. * lib/isdir.c: Remove. * lib/Makefile.am: Remove here, too. * lib/savedir.c: Adapt to new exclude module: s/excluded_filename/excluded_file_name/ and remove 3rd argument.
* replace AC_DOSFILE with gnulib modulesPaolo Bonzini2009-11-262-21/+6
| | | | | | | | * bootstrap.conf: Add binary-io, dirname. * configure.ac: Remove check for setmode, AC_DOSFILE. * m4/dosfile.m4: Remove. * src/grep.c: Adjust for dirname.h. * src/system.h: Adjust for new gnulib modules.
* replace AC_CHECK_* with gnulib modulesPaolo Bonzini2009-11-262-29/+9
| | | | | | | | | | | | | | | | * bootstrap.conf: Add gnulib modules for replacement functions and headers. * configure.ac: Remove macros subsumed by gnulib. * lib/hard-locale.c: Remove guards for headers/functions provided by gnulib. * lib/regex.c: Likewise. * lib/savedir.c: Likewise. * src/dfa.c: Likewise. * src/dfa.h: Do not look at PROTOTYPES. * src/grep.c: Likewise. * src/mbsupport.h: Likewise. * src/system.h: Likewise. * m4/mbstate_t.m4: Remove. * src/getpagesize.h: Remove.
* add gnulib modulesPaolo Bonzini2009-11-268-173/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootstrap.conf: Add gnulib modules and build libgreputils.a. * configure.ac: Remove macros subsumed by gnulib. * lib/Makefile.am: Remove files subsumed by gnulib. * lib/alloca.c: Remove. * lib/atexit.c: Remove. * lib/error.c: Remove. * lib/error.h: Remove. * lib/fnmatch.c: Remove. * lib/fnmatch.h: Remove. * lib/getopt.c: Remove. * lib/getopt.h: Remove. * lib/getopt1.c: Remove. * lib/gettext.h: Remove. * lib/malloc.c: Remove. * lib/memchr.c: Remove. * lib/obstack.c: Remove. * lib/obstack.h: Remove. * lib/quotearg.c: Remove. * lib/quotearg.h: Remove. * lib/realloc.c: Remove. * lib/stpcpy.c: Remove. * lib/strtol.c: Remove. * lib/strtoul.c: Remove. * lib/strtoull.c: Remove. * lib/xalloc.h: Remove. * lib/xmalloc.c: Remove. * lib/xstrtol.c: Remove. * lib/xstrtol.h: Remove. * lib/xstrtoumax.c: Remove. * m4/error.m4: Remove. * m4/inttypes_h.m4: Remove. * m4/malloc.m4: Remove. * m4/realloc.m4: Remove. * m4/uintmax_t.m4: Remove. * m4/ulonglong.m4: Remove. * m4/xstrtoumax.m4: Remove. * src/system.h: Remove strerror, sys_nerr, sys_errlist.
* add gnulibPaolo Bonzini2009-11-261-27/+33
| | | | | * bootstrap: Use gnulib's build-aux/bootstrap. * configure.ac: Add gl_INIT and gl_EARLY.
* another unused autoconf macroPaolo Bonzini2009-11-211-20/+0
| | | | | * configure.ac: Remove AC_SEP. * m4/envsep.m4: Remove.
* remove more gettext-provided m4 filesPaolo Bonzini2009-11-207-577/+4
| | | | | | | | | * m4/largefile.m4: Remove. * m4/lib-ld.m4: Remove. * m4/lib-prefix.m4: Remove. * m4/missing.m4: Remove. * m4/nls.m4: Remove. * m4/progtest.m4: Remove.
* run autopoint and fetch po files from the bootstrap scriptPaolo Bonzini2009-11-205-1719/+23
| | | | | | | | | | | | * bootstrap: Add autopoint invocation and fetching of .po files. * configure.ac: Bump to GNU gettext 0.17. * ABOUT-NLS: Remove. * m4/gettext.m4: Remove. * m4/iconv.m4: Remove. * m4/lib-link.m4: Remove. * m4/po.m4: Remove. * po/*.po: Remove.
* upgrade to external gettext, modernize handling of m4 subdirectoryPaolo Bonzini2009-11-2017-619/+1982
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac.in (AM_GNU_GETTEXT_VERSION): Bump to 0.17. (AC_OUTPUT): Remove m4/Makefile creation. * Makefile.am (subdirs): Remove m4 subdirectory. (EXTRA_DIST): Add build-aux/config.rpath. * intl/*: Remove. * m4/Makefile.am: Remove. * m4/codeset.m4: Remove. * m4/glibc.m4: Remove. * m4/glibc21.m4: Remove. * m4/header.m4: Remove. * m4/install.m4: Remove. * m4/isc-posix.m4: Remove. * m4/lcmessage.m4: Remove. * m4/sanity.m4: Remove. * m4/gettext.m4: Upgrade to gettext-0.17. * m4/iconv.m4: Upgrade to gettext-0.17. * m4/lib-ld.m4: New file, from gettext-0.17. * m4/lib-link.m4: New file, from gettext-0.17. * m4/lib-prefix.m4: New file, from gettext-0.17. * m4/nls.m4: New file, from gettext-0.17. * m4/po.m4: New file, from gettext-0.17. * m4/progtest.m4: Upgrade to gettext-0.17. * m4/Makefile.am (EXTRA_DIST): Add the new files. * po/Makefile.in.in: Upgrade to gettext-0.17. * po/Makevars: New. * po/cat-id-tbl.c: New. * src/Makefile.am: Replace @INTLLIBS@ with @LIBINTL@.
* move .cvsignore files to .gitignorePaolo Bonzini2009-11-201-2/+0
|
* * m4/*.m4: quote underquoted definitionsTony Abou-Assaleh2009-01-3117-27/+26
| | | | | | | | | | | * m4/codeset.m4: serial AM1 -> serial 1 * m4/iconv.m4: serial AM2 -> serial 2 * m4/header.m4: m4_regexp -> m4_bregexp, m4_patsubst -> m4_bpatsubst * m4/*.m4: quote underquoted definitions * m4/codeset.m4: serial AM1 -> serial 1 * m4/iconv.m4: serial AM2 -> serial 2 * m4/header.m4: m4_regexp -> m4_bregexp, m4_patsubst -> m4_bpatsubst
* update/add copyright noticesKarl Berry2009-01-301-0/+16
|
* m4/Makefile.am: Remove reference strerror_r.m4Tony Abou-Assaleh2007-11-191-1/+0
| | | | * m4/Makefile.am: Remove reference strerror_r.m4
* Fix strerror_r detection, based onBernhard Rosenkraenzer2006-08-181-69/+0
| | | | http://lists.gnu.org/archive/html/bug-grep/2006-06/msg00023.html
* fix for current automake, drop support of legacy autotoolsStepan Kasal2004-11-202-90/+0
| | | | | | | | | | * ./cvsignore: Amended several .cvsignore files and removed *.gmo, acinclude.m4 and stamp-h.in from the root one. * m4/init.m4: Nuked, it was breaking current automake. * m4/Makefile.m4: Removed init.m4. * autogen.m4: Drop support for legacy autoconf; tell whether the auto tools exited successfully or not; fix the permissions of tests/*.sh--CVS doesn't provide a way to fix it.
* gettext 0.11, autoconf 2.53Bernhard Rosenkraenzer2002-03-133-6/+3
| | | | | | * configure.in, m4/regex.m4, m4/malloc.m4, m4/realloc.m4: Don't set LIBOBJS directly, autoconf 2.53 doesn't like it * intl/*: Sync with gettext 0.11
* Add legacy stuffBernhard Rosenkraenzer2001-10-023-0/+112
|
* Sync with current autoconfBernhard Rosenkraenzer2001-09-258-286/+452
|
* More autoconf 2.5x/automake 1.5 changesBernhard Rosenkraenzer2001-09-252-4/+5
|
* Autoconf 2.5x related changesBernhard Rosenkraenzer2001-09-257-14/+14
|