comparison auto/os/linux @ 4043:e2b11e0d49cf stable-1.0

Merge of r4003: Configure: catch up with new Linux version numbering (ticket #5). Catch up with new Linux version numbering scheme as announced at [1] and suppress unrecognized versions to actually use default 0. [1] https://lkml.org/lkml/2011/5/29/204
author Igor Sysoev <igor@sysoev.ru>
date Mon, 29 Aug 2011 12:47:32 +0000
parents 7c80f584c3a9
children d620f497c50f
comparison
equal deleted inserted replaced
4042:d9b486dbf7e5 4043:e2b11e0d49cf
16 16
17 17
18 # Linux kernel version 18 # Linux kernel version
19 19
20 version=$((`uname -r \ 20 version=$((`uname -r \
21 | sed 's/^\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1*256*256+\2*256+\3/'`)) 21 | sed -n -e 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/ \
22 \1*256*256+\2*256+\3/p' \
23 -e 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1*256*256+\2*256/p'`))
22 24
23 version=${version:-0} 25 version=${version:-0}
24 26
25 27
26 # enable the rt signals on Linux between 2.2.19 and 2.6.17 28 # enable the rt signals on Linux between 2.2.19 and 2.6.17