[Libva] [gst-vaapi patch] respect GST_PLUGIN_PATH before the gst default path
Zhao Halley
halley.zhao at intel.com
Tue Dec 4 17:15:32 PST 2012
---
configure.ac | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index bbb1c12..8dd381c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,6 +132,9 @@ AC_ARG_ENABLE(encoders,
[enable encoders @<:@default=no@:>@]),
[], [enable_encoders="no"])
+AC_MSG_CHECKING([check gstreamer plugins path for plugin(only) installation])
+AC_ARG_VAR(GST_PLUGIN_PATH, [path to install gst-vaapi plugins(only)])
+
dnl Check for basic libraries
AC_CHECK_LIB(m, tan)
@@ -278,7 +281,11 @@ AC_SUBST(GST_PLUGIN_LDFLAGS)
dnl Check for the GStreamer plugins directory
AC_MSG_CHECKING([for GStreamer plugins directory])
-GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir`
+if test -z "$GST_PLUGIN_PATH"; then
+ GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir`
+else
+ GST_PLUGINS_DIR=$GST_PLUGIN_PATH
+fi
if test -z "$GST_PLUGINS_DIR"; then
echo "FAIL FAIL FAIL"
GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_MAJORMINOR"
--
1.7.9.5
More information about the Libva
mailing list