On 23.10.2013 22:22, [email protected] wrote:
> Author: jorton
> Date: Wed Oct 23 20:22:57 2013
> New Revision: 1535157
>
> URL: http://svn.apache.org/r1535157
> Log:
> * configure.in: Fix r1535027 for Linux kernel versions x.0.y.
>
> Modified:
> apr/apr/trunk/configure.in
>
> Modified: apr/apr/trunk/configure.in
> URL:
> http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=1535157&r1=1535156&r2=1535157&view=diff
> ==============================================================================
> --- apr/apr/trunk/configure.in (original)
> +++ apr/apr/trunk/configure.in Wed Oct 23 20:22:57 2013
> @@ -681,7 +681,7 @@ case $host in
> ;;
> *linux*)
> os_major=[`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`]
> - os_minor=[`uname -r | sed -e
> 's/[1-9][0-9]*\.\([1-9][0-9]*\)\..*/\1/'`]
> + os_minor=[`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]+\)\..*/\1/'`]
Solaris sed only supports basic regexp, which knows about "*" but not "+".
So instead of "[0-9]+" it could be "[0-9][0-9]*" or "[0-9]\{1,\}",
whichever you find less annoying.
Regards,
Rainer