(svn r8758) -Fix r8757: wrong variable to check libtimidity on if it is found or not
authortruelight
Fri, 16 Feb 2007 10:08:38 +0000
changeset 6361 8fc35d15114f
parent 6360 37f43b7ce27b
child 6362 f4de72f0abea
(svn r8758) -Fix r8757: wrong variable to check libtimidity on if it is found or not
config.lib
configure
--- a/config.lib	Fri Feb 16 09:50:28 2007 +0000
+++ b/config.lib	Fri Feb 16 10:08:38 2007 +0000
@@ -782,7 +782,7 @@
 		CFLAGS="$CFLAGS -DWIN32_ENABLE_DIRECTMUSIC_SUPPORT"
 	fi
 
-	if [ "$with_libtimidity" != "0" ]; then
+	if [ -n "$libtimidity" ]; then
 		if [ "$enable_static" != "0" ]; then
 			LIBS="$LIBS $libtimidity"
 		else
--- a/configure	Fri Feb 16 09:50:28 2007 +0000
+++ b/configure	Fri Feb 16 10:08:38 2007 +0000
@@ -82,7 +82,7 @@
 		if ($0 == "WINCE"       && "'$os'" != "WINCE")             { next; }
 		if ($0 == "MSVC"        && "'$os'" != "MSVC")              { next; }
 		if ($0 == "DIRECTMUSIC" && "'$with_direct_music'" == "0")  { next; }
-		if ($0 == "LIBTIMIDITY" && "'$with_libtimidity'" == "0")   { next; }
+		if ($0 == "LIBTIMIDITY" && "'$libtimidity'" == "" )        { next; }
 
 		skip += 1;