From abacb84cb0c3800716a6f00b7f577b0f149cf415 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 17 Jan 2006 05:16:43 +0000 Subject: [PATCH] Branch HEAD Check for presence of kernel sources before we check for $LINUX/.config to avoid confusing (and common) error message that $LINUX/.config could not be found (normally because kernel is not configured and not because incorrect path was given to configure). --- build/autoconf/lustre-build-linux.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4 index 43f711e..b1262e2 100644 --- a/build/autoconf/lustre-build-linux.m4 +++ b/build/autoconf/lustre-build-linux.m4 @@ -110,6 +110,10 @@ AC_ARG_WITH([linux], AC_MSG_RESULT([$LINUX]) AC_SUBST(LINUX) +# -------- check for linux -------- +LB_CHECK_FILE([$LINUX],[], + [AC_MSG_ERROR([Kernel source $LINUX could not be found.])]) + # -------- linux objects (for 2.6) -- AC_MSG_CHECKING([for Linux objects dir]) AC_ARG_WITH([linux-obj], @@ -120,7 +124,7 @@ AC_ARG_WITH([linux-obj], AC_MSG_RESULT([$LINUX_OBJ]) AC_SUBST(LINUX_OBJ) -# -------- check for .confg -------- +# -------- check for .config -------- AC_ARG_WITH([linux-config], [AC_HELP_STRING([--with-linux-config=path], [set path to Linux .conf (default=$LINUX_OBJ/.config)])], -- 1.8.3.1