Whamcloud - gitweb
Phase 1 of LNET Reorg
[fs/lustre-release.git] / build / autoconf / lustre-build-linux.m4
index 8c08893..14895fb 100644 (file)
@@ -283,6 +283,27 @@ AC_DEFUN([LB_LINUX_TRY_MAKE],
 [LB_LINUX_COMPILE_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])], [$3], [$4], [$5], [$6])])
 
 #
+# LB_LINUX_CONFIG_BIG_STACK
+#
+# check for big stack patch
+#
+AC_DEFUN([LB_LINUX_CONFIG_BIG_STACK],
+[if test "x$ARCH_UM" = "x" -a "x$linux25" = "xno" ; then
+       case $target_cpu in
+               i?86 | x86_64)
+                       LB_LINUX_CONFIG([STACK_SIZE_16KB],[],[
+                               LB_LINUX_CONFIG([STACK_SIZE_32KB],[],[
+                                       LB_LINUX_CONFIG([STACK_SIZE_64KB],[],[
+                                               AC_MSG_ERROR([Lustre requires that Linux is configured with at least a 16KB stack.])
+                                       ])
+                               ])
+                       ])
+                       ;;
+       esac
+fi
+])
+
+#
 # LB_PROG_LINUX
 #
 # linux tests
@@ -306,8 +327,13 @@ if test "x$ARCH_UM" = "x" ; then
 fi
 ])
 
+#LB_LINUX_CONFIG_BIG_STACK
+
+# LNet tests
+LN_PROG_LINUX
+
 # Portals tests
-LP_PROG_LINUX
+#LP_PROG_LINUX
 
 # Lustre tests
 LC_PROG_LINUX
@@ -319,6 +345,5 @@ LC_PROG_LINUX
 # AM_CONDITIONALS for linux
 #
 AC_DEFUN([LB_LINUX_CONDITIONALS],
-[AM_CONDITIONAL(INKERNEL, test x$enable_inkernel = xyes)
-AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
+[AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
 ])