autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requiring grep which supports multiple -e options


From: Eric Blake
Subject: Re: Requiring grep which supports multiple -e options
Date: Sat, 05 Apr 2008 06:27:39 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ralf Wildenhues on 4/5/2008 4:58 AM:
|> | Is that requirement really necessary?  Does a "usual" configure
|> | script really need it?
|>
|> Probably not - at least, on inspection, neither autoconf nor coreutils
|> used 'grep -e'.
|
| No, but we documented for our users that AC_PROG_GREP provides this
| feature (of searching for such a grep).
|
| That would be backwards incompatible, no?  Also, it seems kind of
| arbitrary to relax requirements here, while we make other macros
| stricter in requiring standards conformance (gnulib is even much more
| extreme in this case).

Which means we can't change AC_PROG_GREP, but we can add
AC_PROG_GREP_SIMPLE which guarantees only a grep that meets the simpler
set of requirements.  Then we can reformulate AC_EGREP_CPP (and thus
AC_CHECK_HEADER) in terms of AC_PROG_GREP_SIMPLE (since that is documented
to only search a single pattern), but users who still need multiple -e for
other reasons can use AC_PROG_GREP.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf3cDoACgkQ84KuGfSFAYBv2wCguHKbzF9SVE15v+sXZjUeRtKf
YDsAn146kyCTJtbAhDkAFSvYJIuvAO0I
=NAyf
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]