Skip to contentSkip to conversation

fix small regression when building --with-clvmd=all

PATCH New Fabio M. Di Nitto 1 participant 2 messages Aug 31, 2009

lore
Share & tools
lore
#0 lore raw

This patch avoids to build clvmd if there are no backends and report to the user that we are disabling clvmd build.

Please apply.

Thanks
Fabio

#1 lore raw

PATCH 1/1 configure.in: fix --with-clvmd=all when no backends are available

Initialize NEWCLVMD var properly so that clvmd is not built in case there are no backends available.

Also report to the user if we were unable to detect any backend.

---
:100644 100644 cf74d07... 55f66d8... M configure.in

 configure.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
configure.in +4 -0
index cf74d07..55f66d8 100644
@@ -522,6 +522,7 @@ fi
 dnl -- If we are autodetecting, we need to re-create
 dnl -- the depedencies checks and set a proper CLVMD.
 if test x$CLVMD = xall; then
+	NEWCLVMD=none
 	if test x$HAVE_CCS = xyes && \
 	   test x$HAVE_GULM = xyes; then
 		AC_MSG_RESULT([Enabling clvmd gulm backend])
@@ -547,6 +548,9 @@ if test x$CLVMD = xall; then
 		NEWCLVMD="$NEWCLVMD,openais"
 	fi
 	CLVMD="$NEWCLVMD"
+	if test x$CLVMD = xnone; then
+		AC_MSG_RESULT([Disabling clvmd build. No backends detected.])
+	fi
 fi
 
 ################################################################################
Signature · 1 line
1.5.4.3