summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2018-05-15 16:31:02 -0800
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2018-05-15 16:31:02 -0800
commitdec095351770d88beda49e78091baa75e012759c (patch)
tree76cbf36dafa41068b2ac89c51a191a79c930c110 /configure.ac
parent9956f22537493ce390dfae9838b9a8eb04cc884b (diff)
msdk: allow building against open sourced msdk
Building against mfx_dispatcher is used to search for headers in PREFIX/include/mfx/ only (commit: 62f04e801bd7e247102ac67df889bee33ab74ff7), but it is just PREFIX/include with open source msdk version. https://bugzilla.gnome.org/show_bug.cgi?id=796118
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1d386f96f..a1c7df5d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1088,6 +1088,14 @@ AG_GST_CHECK_FEATURE(MSDK, [Intel MediaSDK], msdk, [
[
AC_DEFINE(HAVE_LIBMFX, 1, [Define if mfx_dispatcher is available])
HAVE_MSDK="yes"
+ dnl external msdk dispatchers sometimes install headers into prefix/mfx/
+ save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$LIBMFX_CFLAGS $save_CPPFLAGS"
+ AC_CHECK_HEADER(mfx/mfxdefs.h, [HAVE_MFX_MFXDEFS_H=1], [HAVE_MFX_MFXDEFS_H=0])
+ if test $HAVE_MFX_MFXDEFS_H -eq 1; then
+ AC_DEFINE(HAVE_MFX_MFXDEFS_H, 1, [Define if mfx/mfxdefs.h available])
+ fi
+ CPPFLAGS="$save_CPPFLAGS"
], [
AC_ARG_WITH([msdk-prefix],
AS_HELP_STRING([--with-msdk-prefix],