Mercurial > octave
comparison m4/acinclude.m4 @ 31341:e3365fd1bd06
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 | 1c4e017664fd |
children | d446c9076928 |
comparison
equal
deleted
inserted
replaced
31340:0411c5c50411 | 31341:e3365fd1bd06 |
---|---|
3488 test ! -f ${_sed} && break | 3488 test ! -f ${_sed} && break |
3489 cat /dev/null > "$tmp/sed.in" | 3489 cat /dev/null > "$tmp/sed.in" |
3490 _count=0 | 3490 _count=0 |
3491 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" | 3491 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" |
3492 # Check for GNU sed and select it if it is found. | 3492 # Check for GNU sed and select it if it is found. |
3493 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then | 3493 if "${_sed}" --version 2>&1 < /dev/null | $EGREP '(GNU)' > /dev/null; then |
3494 octave_cv_prog_sed=${_sed} | 3494 octave_cv_prog_sed=${_sed} |
3495 break; | 3495 break; |
3496 fi | 3496 fi |
3497 # Reject if RE alternation is not handled. | 3497 # Reject if RE alternation is not handled. |
3498 if test "`echo 'this and that' | ${_sed} -n 's/\(this\|that\).*$/\1/p'`" != "this"; then | 3498 if test "`echo 'this and that' | ${_sed} -n 's/\(this\|that\).*$/\1/p'`" != "this"; then |