diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2010-12-20 16:05:56 +0100 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2010-12-20 16:07:27 +0100 |
commit | 76d1112d21ffb7164df3e6b31869bf4f21679fb2 (patch) | |
tree | 5ff673e53eb6738ee293865a26e3e6b626c68a88 /configure.ac | |
parent | b8fa0e106fe976912044d703c8e90d22e4d4c3d0 (diff) | |
download | grep-76d1112d21ffb7164df3e6b31869bf4f21679fb2.tar.gz |
add comment above fn_grep
* configure.ac (fn_grep): Add comment suggested by Bruno Haible.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 77f85b58..4e987bb7 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,16 @@ AC_INIT([GNU grep], m4_esyscmd([build-aux/git-version-gen .tarball-version]), [bug-grep@gnu.org]) -# Override grep during configure. +# Set the GREP and EGREP variables to a dummy replacement for the 'grep' +# command, so that AC_PROG_GREP and AC_PROG_EGREP don't fail when no good +# 'grep' program is found. This makes it possible to build GNU grep on a +# Solaris machine that has only /usr/bin/grep and no /usr/xpg4/bin/grep. +# This function supports only restricted arguments: +# - No file names as arguments, process only standard input. +# - Only literal strings without backslashes, no regular expressions. +# - The only options are -e and -E (and -Ee). +# This function also does not support long lines beyond what the shell +# supports), and backslash-processes the input. fn_grep () { test "$1" = -E && shift case $@%:@:$1 in |