--disable-smp patch
Gerald Britton
gbritton at mit.edu
Mon Dec 7 01:08:14 CET 1998
This patch to configure.in allows --disable-smp passed to configure to actually
do something useful and let you build for non-smp on an smp system.
diff -ruN arla-0.17/configure.in arla-0.17.new/configure.in
--- arla-0.17/configure.in Sun Dec 6 16:18:48 1998
+++ arla-0.17.new/configure.in Sun Dec 6 18:01:50 1998
@@ -64,6 +64,8 @@
[ --enable-smp compile for SMP (currently only on Linux)],
[if test "$enableval" = "yes"; then
smp="-D__SMP__"
+else
+ smp="no"
fi
])
@@ -196,6 +198,7 @@
KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/linux
KERNEL_SRCS='bsd-subr.c'
KERNEL_HDRS=''
+if test "$smp" != "no"; then
AC_EGREP_CPP(
changequote(, )dnl
smp_[0-9a-z]*,dnl
@@ -206,6 +209,9 @@
smp='-D__SMP__'
fi
])
+else
+smp=""
+fi
KERNEL_CFLAGS="-DMODULE -D__KERNEL__ $smp"
XFS_SUBDIR=linux
KERNEL=/dev/null
More information about the Arla-drinkers
mailing list