Hi Jim,
Am 28.01.2010 um 14:36 schrieb Jim Meyering:
Dagobert Michelsen wrote:
...
It already prepends "$(bindir):" to $PATH (bindir is $prefix/bin).
Does that not work for you?
Unfortunately not, as grep gets installed as ggrep to allow explicit
selection of greps. Sorry, I didn't thought of this when I wrote my
previous email. Looks like for me the explicit selection with
--with-grep=/opt/csw/bin/ggrep
would be best.
That's not needed, since zgrep can already accommodate that.
Just set the GREP envvar to the name you happen to use:
export GREP=ggrep
Then, it should "just work".
Ok, but this would also move the burden of "fixing" to the enduser,
whereas I as packages could take care of it by hardcoding the path
with a configure option.
In your usecase you assume the user of gzip is also the person who
is compiling it. In my case this is not true as I am compiling it
for other people who use it and expect to use it without any
modifications from them apart from installing the package, and
I cannot change the user environment at package installation.
Best regards
-- Dago