Ecore: fix reg exp when with_internal_maximum_log_level is enabled

replace \+ by + as it should be
add -E option to grep, handle the + in expression

Patch from OpenBSD via Jonathan Armani <armani@openbsd.org>


SVN revision: 65032
This commit is contained in:
Vincent Torri 2011-11-10 19:27:12 +00:00
parent 73b4db74b0
commit 05712f1644
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ AC_ARG_WITH(internal-maximum-log-level,
[limit ecore internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
[
if test "x${withval}" != "xno"; then
if echo "${withval}" | grep '^[[0-9]]\+$' >/dev/null 2>/dev/null; then
if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then
AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
with_max_log_level="${withval}"