Whamcloud - gitweb
Branch b1_6
authorscjody <scjody>
Tue, 12 Jun 2007 23:39:31 +0000 (23:39 +0000)
committerscjody <scjody>
Tue, 12 Jun 2007 23:39:31 +0000 (23:39 +0000)
Add --disable-modules to fix LTS build failure.

b=12068

ldiskfs/configure.ac

index 7ae8f16..c63a847 100644 (file)
@@ -15,7 +15,20 @@ AC_PROG_CC
 LB_CANONICAL_SYSTEM
 LB_INCLUDE_RULES
 LB_PROG_CC
-LB_PROG_LINUX
+
+AC_MSG_CHECKING([whether to build kernel modules])
+AC_ARG_ENABLE([modules],
+       AC_HELP_STRING([--disable-modules],
+                       [disable building of Lustre kernel modules]),
+       [],[
+               enable_modules='yes'
+       ])
+AC_MSG_RESULT([$enable_modules])
+
+if test x$enable_modules = xyes ; then
+       LB_PROG_LINUX
+fi
+
 LB_CONFIG_HEADERS
 
 # These allow Lustre Makefiles and autoMakefiles to be used unchanged.