X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Fconfigure;h=65cbb5f13217c8512119e6f285d055627b4cc877;hb=20bc3a5c2dd597407af2b4f1f4c4ebd75186e35e;hp=af068dd89389c3f0a361c6b1ab07d4c8132f5377;hpb=8cf0f77981284b7549c811b67283eb73d0c520d6;p=melted diff --git a/src/modules/westley/configure b/src/modules/westley/configure index af068dd..65cbb5f 100755 --- a/src/modules/westley/configure +++ b/src/modules/westley/configure @@ -3,14 +3,17 @@ if [ "$help" != "1" ] then -cat << EOF >> ../producers.dat -westley libmltwestley.so -westley-xml libmltwestley.so -EOF - -cat << EOF >> ../consumers.dat -westley libmltwestley.so -EOF + which xml2-config > /dev/null 2>&1 + disable_xml2=$? + if [ "$disable_xml2" = "0" ] + then + echo "westley libmltwestley$LIBSUF" >> ../producers.dat + echo "westley-xml libmltwestley$LIBSUF" >> ../producers.dat + echo "westley libmltwestley$LIBSUF" >> ../consumers.dat + else + echo "- xml2 not found: disabling westley modules" + touch ../disable-westley + fi fi