summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac14
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 6d4ad2378..6feec07ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -660,11 +660,17 @@ AM_CONDITIONAL(HAVE_CDROM_IOCTLS, [test x"$have_cdrom_ioctls" = "xyes"])
dnl ---------------------------------------------
dnl check for a usable version of libdvdnav
dnl ---------------------------------------------
-AM_PATH_DVDNAV(0.1.4,
- AC_DEFINE(HAVE_DVDNAV,1,[Define this if you have a suitable version of libdvdnav]),
- [AC_MSG_RESULT([*** no usable version of libdvdnav found, using internal copy ***])])
-AM_CONDITIONAL(HAVE_DVDNAV, [test x"$no_dvdnav" != "xyes"])
+AC_ARG_WITH(included-dvdnav,[ --with-included-dvdnav Use included dvdnav library [recommended]],
+ included_dvdnav="yes"; no_dvdnav="yes", included_dvdnav="no")
+if test x"$included_dvdnav" = "xno"; then
+ AM_PATH_DVDNAV(0.1.4,
+ AC_DEFINE(HAVE_DVDNAV,1,[Define this if you have a suitable version of libdvdnav]),
+ [AC_MSG_RESULT([*** no usable version of libdvdnav found, using internal copy ***])])
+else
+ AC_MSG_RESULT([Use included DVDNAV/DVDREAD support])
+fi
+AM_CONDITIONAL(HAVE_DVDNAV, [test x"$no_dvdnav" != "xyes"])
dnl ---------------------------------------------
dnl ASF build can be optional