mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
a9c7243e65
Newer libFLAC in MXE require a preprocessor definition of `FLAC__NO_DLL` to signal that libFLAC wasn't built as a DLL. Otherwise the linker will look for the wrong symbol names.
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
dnl
|
|
dnl Check for libFLAC
|
|
dnl
|
|
|
|
AC_ARG_WITH([flac],
|
|
AS_HELP_STRING([--without-flac],[do not build with flac support]),
|
|
[ with_flac=${withval} ], [ with_flac=yes ])
|
|
|
|
if test "$with_flac" != "no"; then
|
|
PKG_CHECK_EXISTS([flac],[flac_found=yes],[flac_found=no])
|
|
if test x"$flac_found" = xyes; then
|
|
PKG_CHECK_MODULES([flac],[flac],[flac_found=yes])
|
|
FLAC_CFLAGS="`$PKG_CONFIG --cflags flac`"
|
|
FLAC_LIBS="`$PKG_CONFIG --libs flac`"
|
|
fi
|
|
else
|
|
flac_found=no
|
|
fi
|
|
|
|
if test x"$flac_found" = xyes ; then
|
|
AC_CHECK_LIB(FLAC, FLAC__stream_decoder_skip_single_frame,
|
|
[ flac_decoder_skip_found=yes ],
|
|
[ flac_decoder_skip_found=no ],
|
|
$FLAC_LIBS)
|
|
if test x"$flac_decoder_skip_found" = xyes; then
|
|
opt_features_yes="$opt_features_yes\n * FLAC audio"
|
|
AC_DEFINE(HAVE_FLAC_DECODER_SKIP, [1], [Define if FLAC__stream_decoder_skip_single_frame exists])
|
|
AC_DEFINE(HAVE_FLAC_FORMAT_H, [1], [Define if the FLAC headers are present])
|
|
else
|
|
FLAC_CFLAGS=""
|
|
FLAC_LIBS=""
|
|
opt_features_no="$opt_features_no\n * FLAC audio (version too old)"
|
|
fi
|
|
else
|
|
FLAC_CFLAGS=""
|
|
FLAC_LIBS=""
|
|
opt_features_no="$opt_features_no\n * FLAC audio"
|
|
fi
|
|
|
|
AC_SUBST(FLAC_CFLAGS)
|
|
AC_SUBST(FLAC_LIBS)
|