diff options
author | Avi Kivity <avi@redhat.com> | 2008-12-25 23:25:24 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-25 23:25:24 +0200 |
commit | 229edb21a53348bc260bb23ed50dce0c4fb447a6 (patch) | |
tree | 3e44ff9454014bde48aed6349f027af2672641a8 /configure | |
parent | 6b3523a08a01c1411b33690d66cf29920b0d09ce (diff) |
kvm: configure: if all else fails, infer kernel version from .config
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -125,6 +125,9 @@ if [ -n "$no_uname" ]; then elif [ -e "$kerneldir/include/config/kernel.release" ]; then depmod_version=`cat "$kerneldir/include/config/kernel.release"` + elif [ -e "$kerneldir/.config" ]; then + depmod_version=$(awk '/Linux kernel version:/ { print $NF }' + "$kerneldir/.config") else echo echo "Error: kernelversion not found" |