comparison auto/os/linux @ 4002:4068898a6a7c

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 Maxim Dounin <mdounin@mdounin.ru>
date Sat, 13 Aug 2011 15:15:50 +0000
parents 7c80f584c3a9
children d620f497c50f
comparison
equal deleted inserted replaced
4001:6df31b324bbf 4002:4068898a6a7c
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