From 8e8dc03677d8a244d8631715f9aea4fff7fc2b1c Mon Sep 17 00:00:00 2001 From: Zhao Halley Date: Wed, 5 Dec 2012 09:15:32 +0800 Subject: [PATCH] configure: install plugin elements in GST_PLUGIN_PATH, if set. If GST_PLUGIN_PATH environment variable exists and points to a valid directory, then use it as the system installation path for gst-vaapi plugin elements. Signed-off-by: Gwenole Beauchesne --- configure.ac | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 0f6adda7be..256608aa81 100644 --- a/configure.ac +++ b/configure.ac @@ -295,11 +295,15 @@ GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^([_]*gst_plug AC_SUBST(GST_PLUGIN_LDFLAGS) dnl Check for the GStreamer plugins directory +AC_ARG_VAR([GST_PLUGIN_PATH], [installation path for gstreamer-vaapi plugin elements]) AC_MSG_CHECKING([for GStreamer plugins directory]) -GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir` -if test -z "$GST_PLUGINS_DIR"; then - echo "FAIL FAIL FAIL" - GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_MAJORMINOR" +if test -d "$GST_PLUGIN_PATH"; then + GST_PLUGINS_DIR="$GST_PLUGIN_PATH" +else + GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir` + if test -z "$GST_PLUGINS_DIR"; then + GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_MAJORMINOR" + fi fi AC_MSG_RESULT([$GST_PLUGINS_DIR]) plugindir="$GST_PLUGINS_DIR"