[sr #110657] Autoconf configure script considers absence of usable grep a fatal error, although it only uses egrep thereafter

2022-06-08 Thread Paul Eggert
Update of sr #110657 (project autoconf):

  Status: Wont Do => Done   
 Open/Closed:Open => Closed 

___

Follow-up Comment #12:

[comment #11 comment #11:]

> As attached, it works.

OK, I installed a patch along those lines into savannah master. Closing the
bug report.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[sr #110657] Autoconf configure script considers absence of usable grep a fatal error, although it only uses egrep thereafter

2022-06-08 Thread Alain Knaff
Follow-up Comment #11, sr #110657 (project autoconf):


[comment #10 comment #10:]
> This patch works great, thanks :-)
> 

Sorry, I misspoke. The patch actually fails to set the variable
EGREP_TRADITIONAL (it only sets ac_cv_path_EGREP_TRADITIONAL), so all egrep
checks later fail, just as if the search expression was not found.

As attached, it works.

(file #53286)

___

Additional Item Attachment:

File name: autoconf-egrep-traditional.diff Size:2 KB
   




___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[sr #110657] Autoconf configure script considers absence of usable grep a fatal error, although it only uses egrep thereafter

2022-06-08 Thread Alain Knaff
Follow-up Comment #10, sr #110657 (project autoconf):

[comment #9 comment #9:]
> [comment #8 comment #8:]
[...]
> > egrep '(-z)'  
> That won't work if the pattern contains back-references, since it'll mess up
the numbering.

Indeed, forgot about that.

> However, we can prepend '.?' to the pattern; this should work. How about the
attached patch instead?
> 
> (file #53284)

This patch works great, thanks :-)



___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[sr #110657] Autoconf configure script considers absence of usable grep a fatal error, although it only uses egrep thereafter

2022-06-08 Thread Paul Eggert
Follow-up Comment #9, sr #110657 (project autoconf):

[comment #8 comment #8:]
> there is another way than -e to escape that dash: simply put a pair of
parenthesis around the search string:
> 
> egrep '(-z)' https://file.savannah.gnu.org/file/0001-Fix-bug-AC_EGREP_CPP-with-leading-in-pattern.patch?file_id=53284>



___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/