mkvtoolnix/ac/cmark.m4
Moritz Bunkus 783229560f
configure: require Qt 5 or 6; add --disable-gui for disabling the GUI
This is in preparation of fixing #3137. The plan is not to use
libfile's MIME type detection but Qt's. As both mkvmerge and the GUI
need to auto-detect the MIME type, this means that the command line
applications will have to be linked against Qt's core library (but not
the GUI libraries).
2021-06-15 22:39:33 +02:00

26 lines
580 B
Plaintext

dnl
dnl Check for cmark
dnl
if test x"$BUILD_GUI" = xyes; then
PKG_CHECK_EXISTS([libcmark],[cmark_found=yes],[cmark_found=no])
if test x"$cmark_found" = xyes; then
PKG_CHECK_MODULES([libcmark],[libcmark],[cmark_found=yes])
CMARK_CFLAGS="`$PKG_CONFIG --cflags libcmark`"
CMARK_LIBS="`$PKG_CONFIG --libs libcmark`"
fi
if test x"$cmark_found" != xyes; then
AC_MSG_ERROR([Could not find the cmark library])
fi
AC_DEFINE(HAVE_CMARK,,[define if building with cmark])
else
CMARK_CFLAGS=""
CMARK_LIBS=""
fi
AC_SUBST(CMARK_CFLAGS)
AC_SUBST(CMARK_LIBS)