summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 22:32:13 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 22:32:13 +0000
commit9c8d1c5851fbe93e986bbf7e0fbe16c7592b58fa (patch)
treeb8f2a6e6c53fd391d6b0a1daa6dcdb3a0fdd1f5e
parent3173cb680cabe292d6d6512d3638484545ba4601 (diff)
downloadxine-lib-9c8d1c5851fbe93e986bbf7e0fbe16c7592b58fa.tar.gz
xine-lib-9c8d1c5851fbe93e986bbf7e0fbe16c7592b58fa.tar.bz2
Add proper support for disabling Real binary codecs support and add a parameter to define a codecs path during configure stage, rather than probing at runtime.
CVS patchset: 8688 CVS date: 2007/03/16 22:32:13
-rw-r--r--configure.ac13
-rw-r--r--src/libreal/Makefile.am2
2 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e08d6fe0e..542e5306e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2059,6 +2059,19 @@ fi
AC_SUBST(W32DLL_DEP)
dnl --------------------------------------------
+dnl Real binary codecs support
+dnl --------------------------------------------
+
+AC_ARG_ENABLE([real-codecs],
+ AS_HELP_STRING([--disable-real-codecs], [Disable Real binary codecs support]))
+AC_ARG_WITH([real-codecs-path],
+ AS_HELP_STRING([--with-real-codecs-path=dir], [Specify directory for Real binary codecs]), [
+ AC_DEFINE_UNQUOTED([REAL_CODEC_PATH], ["$withval"], [Specified path for Real binary codecs])
+ ])
+
+AM_CONDITIONAL([ENABLE_REAL], [test "x$enable_real_codecs" != "xno"])
+
+dnl --------------------------------------------
dnl mmap() support
dnl --------------------------------------------
diff --git a/src/libreal/Makefile.am b/src/libreal/Makefile.am
index 4c46db78c..21c2e47ba 100644
--- a/src/libreal/Makefile.am
+++ b/src/libreal/Makefile.am
@@ -1,6 +1,8 @@
include $(top_srcdir)/misc/Makefile.common
+if ENABLE_REAL
xineplug_LTLIBRARIES = xineplug_decode_real.la xineplug_decode_real_audio.la
+endif
xineplug_decode_real_la_SOURCES = xine_decoder.c real_common.c
xineplug_decode_real_la_LIBADD = $(XINE_LIB) $(DYNAMIC_LD_LIBS)