Commit b39cec87 authored by Christophe Mutricy's avatar Christophe Mutricy

Fix dirac detection

parent 60b307b4
...@@ -3121,12 +3121,11 @@ dnl ...@@ -3121,12 +3121,11 @@ dnl
AC_ARG_ENABLE(dirac, AC_ARG_ENABLE(dirac,
[ --enable-dirac experimental dirac codec (default disabled)]) [ --enable-dirac experimental dirac codec (default disabled)])
if test "${enable_dirac}" = "yes"; then if test "${enable_dirac}" = "yes"; then
AC_CHECK_HEADERS(libdirac_decoder/dirac_parser.h, [ PKG_CHECK_MODULES(DIRAC,dirac, [
AC_CHECK_LIB(dirac_decoder, dirac_decoder_init, [
VLC_ADD_PLUGINS([dirac]) VLC_ADD_PLUGINS([dirac])
VLC_ADD_LDFLAGS([dirac],[-ldirac_decoder -ldirac_encoder -lstdc++]) ],[ VLC_ADD_CFLAGS([dirac],[$DIRAC_CFLAGS])
AC_MSG_ERROR([libdirac doesn't appear to be installed on you system.])], VLC_ADD_LDFLAGS([dirac],[$DIRAC_LIBS -lstdc++]) ],[
[-lstdc++]) AC_MSG_ERROR([libdirac doesn't appear to be installed on you system.])
]) ])
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment