2008-08-27 20:38:55 +00:00
|
|
|
dnl
|
2014-12-21 09:50:26 +00:00
|
|
|
dnl Test for libEBML and libMatroska, and define MATROSKA_CFLAGS and MATROSKA_LIBS
|
2008-08-27 20:38:55 +00:00
|
|
|
dnl
|
|
|
|
|
2014-12-21 09:50:26 +00:00
|
|
|
EBML_MATROSKA_INTERNAL=no
|
2021-02-18 11:57:02 +00:00
|
|
|
PKG_CHECK_MODULES([EBML],[libebml >= 1.4.2],[],[EBML_MATROSKA_INTERNAL=yes])
|
2021-01-31 18:46:49 +00:00
|
|
|
PKG_CHECK_MODULES([MATROSKA],[libmatroska >= 1.6.3],[],[EBML_MATROSKA_INTERNAL=yes])
|
2008-08-27 20:38:55 +00:00
|
|
|
|
2014-12-21 09:50:26 +00:00
|
|
|
if test x"$EBML_MATROSKA_INTERNAL" = xyes; then
|
2014-12-21 10:19:06 +00:00
|
|
|
if ! test -f lib/libebml/ebml/EbmlTypes.h ; then
|
|
|
|
echo '*** The internal version of the libEBML library is supposed to be used,'
|
|
|
|
echo '*** but it was not found in "lib/libebml. If this is a clone from the'
|
|
|
|
echo '*** git repository then submodules have to be initialized with the'
|
|
|
|
echo '*** following two commands:'
|
|
|
|
echo '***'
|
|
|
|
echo '*** git submodule init'
|
|
|
|
echo '*** git submodule update'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! test -f lib/libmatroska/matroska/KaxVersion.h ; then
|
|
|
|
echo '*** The internal version of the libMatroska library is supposed to be used,'
|
|
|
|
echo '*** but it was not found in "lib/libmatroska". If this is a clone from the'
|
|
|
|
echo '*** git repository then submodules have to be initialized with the'
|
|
|
|
echo '*** following two commands:'
|
|
|
|
echo '***'
|
|
|
|
echo '*** git submodule init'
|
|
|
|
echo '*** git submodule update'
|
|
|
|
exit 1
|
|
|
|
fi
|
2014-12-21 09:50:26 +00:00
|
|
|
fi
|
2008-08-27 20:38:55 +00:00
|
|
|
|
2011-01-31 10:52:07 +00:00
|
|
|
AC_SUBST(EBML_MATROSKA_INTERNAL)
|
2015-11-21 10:56:27 +00:00
|
|
|
AC_SUBST(EBML_CFLAGS)
|
|
|
|
AC_SUBST(EBML_LIBS)
|
|
|
|
AC_SUBST(MATROSKA_CFLAGS)
|
|
|
|
AC_SUBST(MATROSKA_LIBS)
|