[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH][BUILD] 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 <andy andrewprice me uk>
---
 configure |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 4be68df..cafc242 100755
--- a/configure
+++ b/configure
@@ -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/;
-- 
1.5.4.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]