Commit bae26a1b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

configure: fix FAAD linking test (-lm) and clean up

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 89d74241
...@@ -2520,25 +2520,24 @@ dnl faad decoder plugin ...@@ -2520,25 +2520,24 @@ dnl faad decoder plugin
dnl dnl
AC_ARG_ENABLE(faad, AC_ARG_ENABLE(faad,
[ --enable-faad faad codec (default auto)]) [ --enable-faad faad codec (default auto)])
if test "${enable_faad}" != "no"; then have_faad="no"
VLC_SAVE_FLAGS AS_IF([test "${enable_faad}" != "no"], [
CPPFLAGS="${CPPFLAGS} ${CPPFLAGS_faad}" AC_CHECK_HEADERS([faad.h], [
LDFLAGS="${LDFLAGS} ${LIBS_faad}" AC_CHECK_LIB(faad, faacDecOpen, [have_faad="yes"],, [$LIBM])
AC_CHECK_HEADERS(faad.h, AC_CHECK_LIB(faad, NeAACDecOpen, [have_faad="yes"],, [$LIBM])
[ AC_CHECK_LIB(faad, faacDecOpen, [
VLC_ADD_PLUGIN([faad]) AS_IF([test "${have_faad}" = "yes"], [
VLC_ADD_LIBS([faad],[-lfaad]) ], [ VLC_ADD_PLUGIN([faad])
AC_CHECK_LIB(faad, NeAACDecOpen, [ VLC_ADD_LIBS([faad],[-lfaad])
VLC_ADD_PLUGIN([faad]) ], [
VLC_ADD_LIBS([faad],[-lfaad]) ], [ AS_IF([test "${enable_faad}" = "yes"], [
AS_IF([test "${enable_faad}" = "yes"], AC_MSG_ERROR([cannot find FAAD library])
[ AC_MSG_ERROR([Cannot find libfaad library...]) ], ], [
[ AC_MSG_WARN([Cannot find libfaad library...]) ]) ]) ]) AC_MSG_WARN([cannot find FAAD library])
] , [ AS_IF([test "${enable_faad}" = "yes"], ])
[ AC_MSG_ERROR([Cannot find development headers for libfaad...]) ], ])
[ AC_MSG_WARN([Cannot find development headers for libfaad...]) ]) ]) ])
VLC_RESTORE_FLAGS ])
fi
dnl dnl
dnl libvpx decoder plugin dnl libvpx decoder plugin
......
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