From: Andrew Price Date: Mon, 7 Apr 2008 16:32:56 +0100 Subject: [Cluster-devel] [PATCH][BUILD] Warn and continue if CONFIG_KERNELVERSION is not found Message-ID: <20080407153256.GA7429@silver.sucs.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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