From ee90f9a120e53a7b9b3d06e3e014567dc6161fd1 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 19 Dec 2005 22:29:12 +0000 Subject: [PATCH] - Fixed bug #35735 ($EGREP and $SED are not defined in configure) --- NEWS | 1 + acinclude.m4 | 4 ++++ build/libtool.m4 | 15 +++++++++++++++ 3 files changed, 20 insertions(+) diff --git a/NEWS b/NEWS index 36da8f351c..3dcf567ff1 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ PHP 4 NEWS ?? ??? 2005, Version 4.4.2 - Prevent header injection by limiting each header to a single line. (Ilia) - Fixed possible XSS inside error reporting functionality. (Ilia) +- Fixed bug #35735 ($EGREP not defined in configure). (Jani) - Fixed bug #35655 (whitespace following end of heredoc is lost). (Ilia) - Fixed bug #35646 (%{mod_php_memory_usage}n is not reset after exit). (vovik at getart dot ru, Tony) diff --git a/acinclude.m4 b/acinclude.m4 index 3ef9c706f4..5354a1bf44 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -548,6 +548,10 @@ AC_DEFUN([PHP_MODULE_PTR],[ ]) AC_DEFUN([PHP_CONFIG_NICE],[ + AC_REQUIRE([AC_PROG_EGREP]) + AC_REQUIRE([LT_AC_PROG_SED]) + PHP_SUBST(EGREP) + PHP_SUBST(SED) test -f $1 && mv $1 $1.old rm -f $1.old cat >$1</dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) + + # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_MSG_CHECKING([for $1]) -- 2.50.1