]> git.sesse.net Git - vlc/commitdiff
fix automagic alsa dependency
authorDaniel Mierswa <impulze@impulze.org>
Sat, 13 Sep 2008 22:11:29 +0000 (00:11 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 14 Sep 2008 02:18:24 +0000 (19:18 -0700)
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: Jean-Baptiste Kempf <jb@videolan.org>
configure.ac

index a2d5b5a728f99883f5e52a15f022248644a88d72..0f923d318b29601b79a8d04c60da76f0b5ffd3f0 100644 (file)
@@ -2331,7 +2331,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}"