Permalink
Browse files

Backport [22658]. Fix two bugs in the mythmusic taglib detection code.

git-svn-id: http://svn.mythtv.org/svn/branches/release-0-22-fixes@22659 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 2ec430f commit 14bcaddf929675f9d357e3812aa99af3346c32f3 @daniel-kristjansson daniel-kristjansson committed Oct 30, 2009
Showing with 7 additions and 4 deletions.
  1. +7 −4 mythplugins/configure
View
@@ -430,11 +430,14 @@ if test "$music" != "no" ; then
fi
taglib="no"
- taglib_minor=`taglib-config --version | cut -d. -f2`
- if test "$taglib_minor" == "" ; then
- echo "Can't find taglib-config. Assuming 1.5 or later."
- taglib_minor="5"
+ if test x`which taglib-config` != x"" ; then
+ taglib_minor=`taglib-config --version | cut -d. -f2`
+ if test x"$taglib_minor" = x"" ; then
+ echo "Can't find taglib-config. Assuming 1.5 or later."
+ taglib_minor="5"
+ fi
fi
+
if has_library libtag && has_header taglib/fileref.h && test $taglib_minor -ge 5 ; then
taglib="yes"
else

0 comments on commit 14bcadd

Please sign in to comment.