+ DESTDIR patch from Anthony Green (green at redhat dot com) - many thanks :-)
[melted] / src / modules / sox / configure
index 987f47e..1255a7b 100755 (executable)
@@ -3,8 +3,15 @@
 if [ "$help" != "1" ]
 then
 
-cat << EOF >> ../filters.dat
-sox            libmltsox$LIBSUF
-EOF
+       which libst-config > /dev/null 2>&1
+       disable_sox=$?
+
+       if [ "$disable_sox" = "0" ]
+       then
+               echo "sox               libmltsox$LIBSUF" >> ../filters.dat
+       else
+               echo "- sox not found: disabling"
+               touch ../disable-sox
+       fi
 
 fi