From 132943e98630239d6994b1ca509526a70a2d16e9 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Fri, 7 Nov 2003 21:44:20 +0000 Subject: [PATCH] * configure.ac: added --enable-livedotcom and --with-livedotcom-tree. (--with-livedotcom-tree is mandatory when using --enable-livedotcom, so livedotcom isn't compiled by default) --- configure.ac | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a13c3c151c..be8a248a32 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Autoconf settings for vlc -dnl $Id: configure.ac,v 1.106 2003/11/07 21:30:52 massiot Exp $ +dnl $Id: configure.ac,v 1.107 2003/11/07 21:44:20 fenrir Exp $ AC_INIT(vlc,0.6.3-cvs) @@ -1076,6 +1076,54 @@ dnl AC_ARG_WITH(,[Input plugins:]) +dnl +dnl live.com input +dnl +AC_ARG_ENABLE(livedotcom, +[ --enable-livedotcom live.com input plugin (default disabled)]) +if test "${enable_livedotcom}" = "yes" +then + AC_ARG_WITH(livedotcom-tree, + [ --with-livedotcom-tree=PATH live.com tree for static linking (required)]) + + dnl + dnl test for --with-livedotcom-tree + dnl + if test "${with_livedotcom_tree}" != "no" -a -n "${with_livedotcom_tree}";then + AC_MSG_CHECKING(for liveMedia/libliveMedia.a in ${with_livedotcom_tree}) + real_livedotcom_tree="`cd ${with_livedotcom_tree} 2>/dev/null && pwd`" + if test -z "${real_livedotcom_tree}"; then + dnl The given directory can't be found + AC_MSG_RESULT(no) + AC_MSG_ERROR([cannot cd to ${with_livedotcom_tree}]) + fi + if test -f "${real_livedotcom_tree}/liveMedia/libliveMedia.a"; then + AC_MSG_RESULT(${real_livedotcom_tree}/liveMedia/libliveMedia.a) + + AX_ADD_BUILTINS([livedotcom]) + AX_ADD_LDFLAGS([livedotcom],[-L${real_livedotcom_tree}/liveMedia -lliveMedia]) + AX_ADD_LDFLAGS([livedotcom],[-L${real_livedotcom_tree}/BasicUsageEnvironment -lBasicUsageEnvironment]) + AX_ADD_LDFLAGS([livedotcom],[-L${real_livedotcom_tree}/groupsock -lgroupsock]) + AX_ADD_LDFLAGS([livedotcom],[-L${real_livedotcom_tree}/UsageEnvironment -lUsageEnvironment]) + + AX_ADD_CXXFLAGS([livedotcom],[-I${real_livedotcom_tree}/BasicUsageEnvironment/include]) + AX_ADD_CXXFLAGS([livedotcom],[-I${real_livedotcom_tree}/groupsock/include]) + AX_ADD_CXXFLAGS([livedotcom],[-I${real_livedotcom_tree}/liveMedia/include]) + AX_ADD_CXXFLAGS([livedotcom],[-I${real_livedotcom_tree}/UsageEnvironment/include ]) + else + dnl The given live.com wasn't built + AC_MSG_RESULT(no) + AC_MSG_ERROR([cannot find ${real_livedotcom_tree}/liveMedia/libliveMedia.a, make sure you compiled live.com in ${with_livedotcom_tree}]) + fi + else + dnl The --with-livedotcom-tree isn't specified wasn't built + AC_MSG_RESULT(no) + AC_MSG_ERROR([You have to specify a tree with --with-livedotcom-tree]) + fi +fi + + + dnl dnl DVD module: optionally check for installed libdvdcss dnl -- 2.39.2