Fix FTBFS caused by xine >= 1.2.8 (xine-config no longer available from

this version).

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 7 years ago
parent d7d668598a
commit b455dba036

@ -101,6 +101,17 @@ AC_ARG_WITH(xine,
if test "$build_xine" != "no"; then if test "$build_xine" != "no"; then
if test "$have_xine" = "yes"; then if test "$have_xine" = "yes"; then
dnl In xine >= 1.2.8 xine-config is no longer available
vers=`pkg-config --modversion libxine 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test -n "$vers" && test "$vers" -ge 1000000
then
AC_DEFINE(HAVE_XINE, 1, [If we have libxine installed])
LIB_XINE="`pkg-config --libs libxine`"
AC_SUBST(LIB_XINE)
CFLAGS_XINE="`pkg-config --cflags libxine`"
AC_SUBST(CFLAGS_XINE)
else
dnl Use xine-config if an older version of xine is installed
vers=`xine-config --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` vers=`xine-config --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test -n "$vers" && test "$vers" -ge 1000000 if test -n "$vers" && test "$vers" -ge 1000000
then then
@ -114,6 +125,7 @@ if test "$build_xine" != "no"; then
AC_MSG_WARN([Your xine installation is too old (1.0.0 or later required)]) AC_MSG_WARN([Your xine installation is too old (1.0.0 or later required)])
fi fi
fi fi
fi
else else
have_xine="no" have_xine="no"
fi fi

Loading…
Cancel
Save