mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
build system: add configure option for disabling libmagic
This commit is contained in:
parent
0c06672722
commit
f8e00b68be
@ -2,12 +2,18 @@ dnl
|
||||
dnl Check for libmagic
|
||||
dnl
|
||||
|
||||
AC_ARG_ENABLE([magic],
|
||||
AC_HELP_STRING([--enable-magic],[file type detection via libmagic (yes)]),
|
||||
[],[enable_magic=yes])
|
||||
|
||||
if test x"$enable_magic" = xyes; then
|
||||
magic_mingw_libs=""
|
||||
if test "x$ac_cv_mingw32" = "xyes"; then
|
||||
magic_mingw_libs="-lshlwapi"
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB(magic, magic_open, [ magic_found=yes ], [ magic_found=no ], [-lz $GNURX_LIBS $magic_mingw_libs])
|
||||
fi
|
||||
|
||||
if test "x$magic_found" = "xyes" ; then
|
||||
AC_CHECK_HEADERS([magic.h])
|
||||
|
Loading…
Reference in New Issue
Block a user