Whamcloud - gitweb
add configure warning if building without CONFIG_KMOD
[fs/lustre-release.git] / build / autoconf / lustre-build-linux.m4
index 03e5501..43f711e 100644 (file)
@@ -327,13 +327,24 @@ if test "x$ARCH_UM" = "x" ; then
 fi
 ])
 
+LB_LINUX_CONFIG([KMOD],[],[
+       AC_MSG_WARN([])
+       AC_MSG_WARN([Kernel module loading support is highly recommended.])
+       AC_MSG_WARN([])
+])
+
 #LB_LINUX_CONFIG_BIG_STACK
 
-# Portals tests
-LP_PROG_LINUX
+# LNet tests
+LN_PROG_LINUX
 
 # Lustre tests
 LC_PROG_LINUX
+
+# Portals tests
+if test "$PORTALS" ; then
+       LP_PROG_LINUX
+fi
 ])
 
 #