]> git.sesse.net Git - vlc/commitdiff
fix automagic dependency on vcdinfo
authorDaniel Mierswa <impulze@impulze.org>
Sun, 14 Sep 2008 23:11:02 +0000 (01:11 +0200)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 5 Oct 2008 22:20:58 +0000 (23:20 +0100)
when --enable-libcdio was passed to configure, vcdinfo was searched and
linked against if found (only do that when vcdinfo wasn't disabled)

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
configure.ac

index c9041b620afd2906cf364d884f634e35a40fd0a0..a8e6807cda996fbf0f943f560191035a3e48bb00 100644 (file)
@@ -2427,6 +2427,8 @@ dnl Need to test libcdio and libvcdinfo for a number of things. Do it now.
 AC_ARG_ENABLE(libcdio,
   [  --enable-libcdio        CD input and control library support (default enabled)])
 
+AC_ARG_ENABLE(vcdinfo,
+  [  --enable-libvcdinfo     VCD information library support (default enabled)])
 
 have_libcdio=no
 have_libvcdinfo=no
@@ -2438,11 +2440,14 @@ then
      [Define if you have libcdio 0.78.2 or greater installed]),
      [AC_MSG_WARN(CD Reading and information library not found)])
 
-  PKG_CHECK_MODULES(VCDINFO, libvcdinfo >= 0.7.22,
-     [have_libvcdinfo=yes
-     AC_DEFINE(HAVE_VCDINFO, 1, 
-     [Define if you have libvcdinfo 0.7.22 or greater installed])],
-     [AC_MSG_WARN(VCD information library not found)])
+  if test "${enable_vcdinfo}" != "no"
+  then
+    PKG_CHECK_MODULES(VCDINFO, libvcdinfo >= 0.7.22,
+       [have_libvcdinfo=yes
+       AC_DEFINE(HAVE_VCDINFO, 1, 
+       [Define if you have libvcdinfo 0.7.22 or greater installed])],
+       [AC_MSG_WARN(VCD information library not found)])
+  fi
 fi
 
 dnl