]> git.sesse.net Git - vlc/commitdiff
Still need to test for CD paranoia separately in order to pick up
authorRocky Bernstein <rocky@videolan.org>
Mon, 18 Jul 2005 11:41:24 +0000 (11:41 +0000)
committerRocky Bernstein <rocky@videolan.org>
Mon, 18 Jul 2005 11:41:24 +0000 (11:41 +0000)
paranoia library flags. Perhaps there's another way to do this on the
first libcdio test, but this works.

configure.ac

index df0b9927433740426b59d861ca530746a49e50cc..7c2223fe37e92aa9813d377857987dd47b5a177f 100644 (file)
@@ -1662,9 +1662,12 @@ then
   if test "$have_libcdio" = "yes"
   then
     AC_DEFINE(HAVE_CDDAX, [], [Define for the audio CD plugin using libcdio])
-    VLC_ADD_LDFLAGS([cddax],[$LIBCDIO_LIBS $LIBCDIO_CDDA_LIBS $LIBCDIO_PARANOIA_LIBS])
+    VLC_ADD_LDFLAGS([cddax],[$LIBCDIO_LIBS])
     VLC_ADD_CFLAGS([cddax],[$LIBCDIO_CFLAGS])
     VLC_ADD_PLUGINS([cddax])
+    PKG_CHECK_MODULES(LIBCDIO_PARANOIA, libcdio_paranoia >= 0.72, [
+    VLC_ADD_LDFLAGS([cddax],[$LIBCDIO_CDDA_LIBS $LIBCDIO_CDDA_LIBS $LIBCDIO_PARANOIA_LIBS])],
+    AC_MSG_WARN([CD Paranoia support disabled because no libcdio >= 0.72 found]))
   else 
     AC_MSG_WARN([cddax plugin disabled because ok libcdio library not found or disabled])
     HAVE_CDDAX=no