From: Jeffrey Hutzelman Date: Mon, 13 Dec 2004 19:40:42 +0000 (+0000) Subject: STABLE14-fix-linux-kvers-setting-20041211 X-Git-Tag: openafs-devel-1_3_76~2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f40bc34a74937c79f8fc5c5bb7867dc714e0e573;p=packages%2Fo%2Fopenafs.git STABLE14-fix-linux-kvers-setting-20041211 FIXES 16763 set SYS_KVERS reasonably on linux always (cherry picked from commit 6cd93d304142724c7c0fd37272e84f1a7eacb951) --- diff --git a/acinclude.m4 b/acinclude.m4 index 76ebe182e..6d2f70cb9 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -157,6 +157,12 @@ case $system in SUBARCH=default fi AC_MSG_RESULT(linux) + if test "x$enable_kernel_module" = "xyes"; then + AFS_SYSKVERS=`echo $LINUX_VERSION | awk -F\. '{print $[]1 $[]2}'` + if test "x${AFS_SYSKVERS}" = "x"; then + AC_MSG_ERROR(Couldn't guess your Linux version [2]) + fi + fi ;; *-solaris*) MKAFS_OSTYPE=SOLARIS @@ -494,9 +500,6 @@ else esac case $AFS_SYSNAME in *_linux* | *_umlinux*) - if test "x$enable_kernel_module" = "xyes"; then - AFS_SYSKVERS=`echo $LINUX_VERSION | awk -F\. '{print $[]1 $[]2}'` - fi if test "x${AFS_SYSKVERS}" = "x"; then AC_MSG_ERROR(Couldn't guess your Linux version. Please use the --with-afs-sysname option to configure an AFS sysname.) fi