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)
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