summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorZhao Halley <halley.zhao@intel.com>2012-12-05 09:15:32 +0800
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-12-17 14:56:11 +0100
commit66eaa2d5ed3233f5eaa1be6b449b29fd66b6f08c (patch)
tree738bf65cc4d57680f36ac8395ef2c5c59c670cee /configure.ac
parenta00cfe0d23a050f8a52a95a05aa3783f461b26fa (diff)
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 <gwenole.beauchesne@intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index d4c05327..f4c00f70 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"