Skip to contentSkip to conversation

Warn and continue if CONFIG_KERNELVERSION is not found

PATCH New Andrew Price 1 participant 1 message Apr 7, 2008

lore
Share & tools
lore
#0 lore raw

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.

---
 configure |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
configure +5 -0
index 4be68df..cafc242 100755
@@ -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