Eina: fix grep usage
authorcaro <caro>
Mon, 14 Nov 2011 22:11:27 +0000 (22:11 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 14 Nov 2011 22:11:27 +0000 (22:11 +0000)
replace \+ by + as it should be
add -E option to grep, handle the + in expression

patch by Fabien Romano from OpenBSD

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@65207 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index f5a986d..b6483ab 100644 (file)
@@ -178,7 +178,7 @@ AC_ARG_WITH(internal-maximum-log-level,
                    [limit eina 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}"