Mercurial > octave
changeset 31344:989ebec75ff0 stable
build: Use Autoconf macro to find egrep executable.
* configure.ac: Call AC_PROG_EGREP macro.
* m4/acinclude.m4: Use '$EGREP' instead of bare 'egrep' in file.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 25 Oct 2022 10:15:28 -0700 |
parents | 7880af7a3b3f |
children | d446c9076928 800eb86438cc |
files | configure.ac m4/acinclude.m4 |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Tue Oct 25 13:03:06 2022 -0400 +++ b/configure.ac Tue Oct 25 10:15:28 2022 -0700 @@ -214,6 +214,7 @@ ## Programs used in Makefiles. AC_PROG_AWK AC_PROG_GREP +AC_PROG_EGREP OCTAVE_PROG_FIND OCTAVE_PROG_SED OCTAVE_PROG_PERL
--- a/m4/acinclude.m4 Tue Oct 25 13:03:06 2022 -0400 +++ b/m4/acinclude.m4 Tue Oct 25 10:15:28 2022 -0700 @@ -3461,7 +3461,7 @@ _count=0 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" # Check for GNU sed and select it if it is found. - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then + if "${_sed}" --version 2>&1 < /dev/null | $EGREP '(GNU)' > /dev/null; then octave_cv_prog_sed=${_sed} break; fi