Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Tue, 17 Jan 2006 05:16:43 +0000 (05:16 +0000)
committeradilger <adilger>
Tue, 17 Jan 2006 05:16:43 +0000 (05:16 +0000)
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

index 43f711e..b1262e2 100644 (file)
@@ -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)])],