Whamcloud - gitweb
LU-4704 acl: fix permission problem of setfacl
[fs/lustre-release.git] / config / lustre-build-linux.m4
index b1ec10e..416cb66 100644 (file)
@@ -56,13 +56,16 @@ AC_DEFUN([LB_LINUX_UTSRELEASE], [
                              ${utsrelease})
                AS_IF([test -z "$UTS_RELEASE"], [
                        AC_MSG_RESULT([Not found])
-                       AC_MSG_ERROR([*** Cannot determine kernel version.])
+                       AC_MSG_ERROR([Cannot determine kernel version.])
                ])
        ], [
                AC_MSG_RESULT([Not found])
                AC_MSG_ERROR([
-       *** Cannot find UTS_RELEASE definition.
-       *** This is often provided by the kernel-devel package.])
+
+Cannot find UTS_RELEASE definition.
+
+This is often provided by the kernel-devel package.
+])
        ])
 
        AC_MSG_RESULT([${UTS_RELEASE}])
@@ -234,7 +237,13 @@ AC_ARG_WITH([kernel-source-header],
 
 # ------------ .config exists ----------------
 LB_CHECK_FILE([$LINUX_CONFIG],[],
-       [AC_MSG_ERROR([Kernel config could not be found.  If you are building from a kernel-source rpm consult build/README.kernel-source])])
+       [AC_MSG_ERROR([
+
+Kernel config could not be found.
+
+If you are building from a kernel-source rpm consult build/README.kernel-source
+])
+])
 
 # ----------- make dep run? ------------------
 # at 2.6.19 # $LINUX/include/linux/config.h is removed
@@ -272,9 +281,13 @@ if grep rhconfig $LINUX_OBJ/include/$VERSION_HDIR/version.h >/dev/null ; then
        # modules
        LB_CHECK_FILE([$KERNEL_SOURCE_HEADER],
                [if test $KERNEL_SOURCE_HEADER = '/boot/kernel.h' ; then
-                       AC_MSG_WARN([Using /boot/kernel.h from RUNNING kernel.])
-                       AC_MSG_WARN([If this is not what you want, use --with-kernel-source-header.])
-                       AC_MSG_WARN([Consult build/README.kernel-source for details.])
+                       AC_MSG_WARN([
+
+Using /boot/kernel.h from RUNNING kernel.
+
+If this is not what you want, use --with-kernel-source-header.
+Consult build/README.kernel-source for details.
+])
                fi],
                [AC_MSG_ERROR([$KERNEL_SOURCE_HEADER not found.  Consult build/README.kernel-source for details.])])
        EXTRA_KCFLAGS="-include $KERNEL_SOURCE_HEADER $EXTRA_KCFLAGS"
@@ -290,9 +303,13 @@ LB_LINUX_TRY_COMPILE([],[],[
        AC_MSG_RESULT([yes])
 ],[
        AC_MSG_RESULT([no])
-       AC_MSG_WARN([Consult config.log for details.])
-       AC_MSG_WARN([If you are trying to build with a kernel-source rpm, consult build/README.kernel-source])
-       AC_MSG_ERROR([Kernel modules cannot be built.])
+       AC_MSG_ERROR([
+
+Kernel modules cannot be built. Consult config.log for details.
+
+If you are trying to build with a kernel-source rpm,
+consult build/README.kernel-source
+])
 ])
 
 LB_LINUX_RELEASE
@@ -494,9 +511,10 @@ LB_LINUX_TRY_MAKE([
                  [kernel module loading is possible])
 ],[
        AC_MSG_RESULT(no)
-       AC_MSG_WARN([])
-       AC_MSG_WARN([Kernel module loading support is highly recommended.])
-       AC_MSG_WARN([])
+       AC_MSG_WARN([
+
+Kernel module loading support is highly recommended.
+])
 ])
 ])
 
@@ -512,13 +530,19 @@ LB_LINUX_SYMVERFILE
 
 
 LB_LINUX_CONFIG([MODULES],[],[
-       AC_MSG_ERROR([module support is required to build Lustre kernel modules.])
+       AC_MSG_ERROR([
+
+module support is required to build Lustre kernel modules.
+])
 ])
 
 LB_LINUX_CONFIG([MODVERSIONS])
 
 LB_LINUX_CONFIG([KALLSYMS],[],[
-       AC_MSG_ERROR([Lustre requires that CONFIG_KALLSYMS is enabled in your kernel.])
+       AC_MSG_ERROR([
+
+Lustre requires that CONFIG_KALLSYMS is enabled in your kernel.
+])
 ])
 
 # 2.6.28
@@ -537,7 +561,7 @@ LC_MODULE_LOADING
 # or check
 AC_DEFUN([LB_CHECK_SYMBOL_EXPORT],
 [AC_MSG_CHECKING([if Linux was built with symbol $1 exported])
-grep -q -E '[[[:space:]]]$1[[[:space:]]]' $LINUX/$SYMVERFILE 2>/dev/null
+grep -q -E '[[[:space:]]]$1[[[:space:]]]' $LINUX_OBJ/$SYMVERFILE 2>/dev/null
 rc=$?
 if test $rc -ne 0; then
        export=0