summaryrefslogtreecommitdiffstats
path: root/libk3b/videodvd/configure.in.in
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-03 02:15:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-03 02:15:56 +0000
commit50b48aec6ddd451a6d1709c0942477b503457663 (patch)
treea9ece53ec06fd0a2819de7a2a6de997193566626 /libk3b/videodvd/configure.in.in
downloadk3b-50b48aec6ddd451a6d1709c0942477b503457663.tar.gz
k3b-50b48aec6ddd451a6d1709c0942477b503457663.zip
Added abandoned KDE3 version of K3B
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1084400 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/videodvd/configure.in.in')
-rw-r--r--libk3b/videodvd/configure.in.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/libk3b/videodvd/configure.in.in b/libk3b/videodvd/configure.in.in
new file mode 100644
index 0000000..f5ec969
--- /dev/null
+++ b/libk3b/videodvd/configure.in.in
@@ -0,0 +1,28 @@
+AC_ARG_WITH(
+ libdvdread,
+ AS_HELP_STRING(
+ [--without-libdvdread],
+ [build K3b without libdvdread (Video DVD ripping) support (default=no)]),
+ [ac_cv_use_libdvdread=$withval],
+ [ac_cv_use_libdvdread=yes]
+)
+
+have_libdvdread=no
+if test "$ac_cv_use_libdvdread" = "yes"; then
+ KDE_CHECK_HEADERS(dvdread/dvd_reader.h,
+ [
+ AC_CHECK_LIB(dvdread,
+ DVDOpen,
+ [
+ AC_DEFINE(HAVE_LIBDVDREAD,1,[Defined if you have libdvdread headers and libs installed.])
+ have_libdvdread=yes
+ ]
+ )
+ ])
+fi
+AM_CONDITIONAL(include_videodvdrip, [test x$have_libdvdread = xyes])
+
+#if test "$have_libdvdread" = "no"; then
+# AC_MSG_ERROR([Could not find libdvdread. Please install.])
+# DO_NOT_COMPILE="$DO_NOT_COMPILE k3b"
+#fi