Commit 9c0f9757 authored by Daniel Mierswa's avatar Daniel Mierswa Committed by Jean-Baptiste Kempf

fix automagic alsa dependency

when --enable-v4l2 was passed to configure, alsa was searched and linked
against if found (only do that when alsa wasn't disabled)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 4c50e9ee)

    backported to help packagers.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4b560d4b
......@@ -2389,7 +2389,11 @@ then
VLC_ADD_CPPFLAGS([v4l2],[-I${with_v4l2}/include])
fi
AC_CHECK_HEADER(alsa/asoundlib.h, AC_CHECK_LIB(asound, main, have_v4l2_alsa="true", have_v4l2_alsa="false"),have_v4l2_alsa="false")
if test "${enable_alsa}" != "no"
then
AC_CHECK_HEADER(alsa/asoundlib.h, AC_CHECK_LIB(asound, main, have_v4l2_alsa="true", have_v4l2_alsa="false"),have_v4l2_alsa="false")
fi
if test "${have_v4l2_alsa}" = "true"
then
CFLAGS="${CFLAGS_save}"
......
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