Warn and continue if CONFIG_KERNELVERSION is not found
PATCH 1/1 Warn and continue if CONFIG_KERNELVERSION is not found
Currently the configure script assumes that CONFIG_KERNELVERSION is defined in autoconf.h. This patch handles the case where it isn't defined there.
Signed-off-by Andrew Price <[email protected]>
--- configure | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
configure +5 -0
@@ -268,6 +268,11 @@ sub kernel_version { } } close AUTOCONF; + # Warn and continue if CONFIG_KERNELVERSION was not found + if (!$current_version) { + print " Could not determine kernel version.\n"; + return 1; + } # leaving only the numbers from the lines # this is faster then split and doesn't alocate useless arrays $current_version =~ s/.*"(.*)"\n/$1/;
Signature · 1 line
1.5.4.4