|
|
AC_MSG_ERROR(Unable to find mplayer in the PATH. You need mplayer to use OGMRip. Find it on http://www.mplayerhq.hu) | AC_MSG_ERROR(Unable to find mplayer in the PATH. You need mplayer to use OGMRip. Find it on http://www.mplayerhq.hu) |
fi | fi |
| |
if $MPLAYER_PROG 2> /dev/null | grep -q "MPlayer dev-\(CVS\|SVN\)"; then |
MPLAYER_VERSION=`$MPLAYER_PROG 2> /dev/null | grep "^MPlayer"` |
have_mplayer_dev=yes |
|
MPLAYER_MAJOR_VERSION=99 |
if echo $MPLAYER_VERSION | grep -q "MPlayer [[0-1]]\.[[0-9]]\+\(\(rc\|pre\)[[0-9]]\+\)\?"; then |
MPLAYER_MINOR_VERSION=99 |
|
MPLAYER_PRE_VERSION=99 |
|
MPLAYER_RC_VERSION=99 |
|
AC_MSG_WARN(Mplayer SVN/CVS detected - USE AT YOUR OWN RISK) |
|
else |
|
have_mplayer_dev=no | have_mplayer_dev=no |
MPLAYER_MAJOR_VERSION=`$MPLAYER_PROG 2> /dev/null | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer \([[0-1]]\).*%\1%'` |
MPLAYER_MAJOR_VERSION=`echo $MPLAYER_VERSION | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer \([[0-1]]\).*%\1%'` |
MPLAYER_MINOR_VERSION=`$MPLAYER_PROG 2> /dev/null | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer [[0-1]]\.\([[0-9]]\).*%\1%'` |
MPLAYER_MINOR_VERSION=`echo $MPLAYER_VERSION | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer [[0-1]]\.\([[0-9]]\).*%\1%'` |
MPLAYER_PRE_VERSION=0 | MPLAYER_PRE_VERSION=0 |
MPLAYER_RC_VERSION=0 | MPLAYER_RC_VERSION=0 |
| |
if $MPLAYER_PROG 2> /dev/null | grep -q "^MPlayer [[0-1]]\.[[0-9]]\+pre[[0-9]]\+.*"; then |
if echo $MPLAYER_VERSION | grep -q "^MPlayer [[0-1]]\.[[0-9]]\+pre[[0-9]]\+.*"; then |
MPLAYER_PRE_VERSION=`$MPLAYER_PROG 2> /dev/null | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer [[0-1]]\.[[0-9]]\+pre\([[0-9]]\+\).*%\1%'` |
MPLAYER_PRE_VERSION=`echo $MPLAYER_VERSION | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer [[0-1]]\.[[0-9]]\+pre\([[0-9]]\+\).*%\1%'` |
fi | fi |
| |
if $MPLAYER_PROG 2> /dev/null | grep -q "^MPlayer [[0-1]]\.[[0-9]]\+rc[[0-9]]\+.*"; then |
if echo $MPLAYER_VERSION | grep -q "^MPlayer [[0-1]]\.[[0-9]]\+rc[[0-9]]\+.*"; then |
MPLAYER_RC_VERSION=`$MPLAYER_PROG 2> /dev/null | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer [[0-1]]\.[[0-9]]\+rc\([[0-9]]\+\).*%\1%'` |
MPLAYER_RC_VERSION=`echo $MPLAYER_VERSION | grep "^MPlayer" | $SED_PROG -e 's%^MPlayer [[0-1]]\.[[0-9]]\+rc\([[0-9]]\+\).*%\1%'` |
|
fi |
|
else |
|
if echo $MPLAYER_VERSION | grep -q "dev-\(CVS\|SVN\)" || \ |
|
echo $MPLAYER_VERSION | grep -q "SVN-"; then |
|
have_mplayer_dev=yes |
|
MPLAYER_MAJOR_VERSION=99 |
|
MPLAYER_MINOR_VERSION=99 |
|
MPLAYER_PRE_VERSION=99 |
|
MPLAYER_RC_VERSION=99 |
|
AC_MSG_WARN(Mplayer SVN/CVS detected - USE AT YOUR OWN RISK) |
|
else |
|
AC_MSG_ERROR(Unable to determine the version number of mplayer or the version number you specified with --with-version-number is invalid.) |
fi | fi |
fi | fi |
| |
|
|
dnl ************************************************************** | dnl ************************************************************** |
| |
AC_MSG_CHECKING([for DTS support]) | AC_MSG_CHECKING([for DTS support]) |
if $MPLAYER_PROG -ac help 2> /dev/null | grep -q "^ffdts.*working.*$"; then |
if $MPLAYER_PROG -ac help 2> /dev/null | grep -q "^\(ffdts\|ffdca\|dts\).*working.*$"; then |
have_dts_support=yes | have_dts_support=yes |
else | else |
have_dts_support=no | have_dts_support=no |