# intel-driver package version number
m4_define([intel_driver_major_version], [1])
-m4_define([intel_driver_minor_version], [2])
-m4_define([intel_driver_micro_version], [0])
+m4_define([intel_driver_minor_version], [7])
+m4_define([intel_driver_micro_version], [2])
m4_define([intel_driver_pre_version], [1])
m4_define([intel_driver_version],
[intel_driver_major_version.intel_driver_minor_version.intel_driver_micro_version])
])
# libva minimum version requirement
-m4_define([va_api_version], [0.34])
-m4_define([libva_package_version], [1.2.0])
+m4_define([va_api_version], [0.39.2])
+m4_define([libva_package_version], [1.7.1])
# libdrm minimum version requirement
-m4_define([libdrm_version], [2.4.45])
+m4_define([libdrm_version], [2.4.52])
AC_PREREQ([2.57])
AC_INIT([intel_driver], [intel_driver_version], [haihao.xiang@intel.com],
[build with VA/Wayland API support @<:@default=yes@:>@])],
[], [enable_wayland="yes"])
+AC_ARG_ENABLE([hybrid-codec],
+ [AC_HELP_STRING([--enable-hybrid-codec],
+ [build with hybrid codec support @<:@default=no@:>@])],
+ [], [enable_hybrid_codec="no"])
+
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_CC
AC_SYS_LARGEFILE
AC_CHECK_LIB([m], [sin])
AC_CHECK_FUNCS([log2f])
+AC_CHECK_PROGS([PYTHON2], [python2 python])
LIBVA_PACKAGE_VERSION=libva_package_version
AC_SUBST(LIBVA_PACKAGE_VERSION)
AC_SUBST(LIBDRM_VERSION)
dnl Check for gen4asm
-PKG_CHECK_MODULES(GEN4ASM, [intel-gen4asm >= 1.3], [gen4asm=yes], [gen4asm=no])
-AM_CONDITIONAL(HAVE_GEN4ASM, test x$gen4asm = xyes)
+PKG_CHECK_MODULES(GEN4ASM, [intel-gen4asm >= 1.9], [gen4asm=yes], [gen4asm=no])
AC_PATH_PROG([GEN4ASM], [intel-gen4asm])
+AS_IF([test "x$GEN4ASM" = "x" ], [AM_CONDITIONAL(HAVE_GEN4ASM, false)],
+ [AM_CONDITIONAL(HAVE_GEN4ASM, [test x$gen4asm = xyes])])
+
+dnl Check for git
+AC_ARG_VAR([GIT], [Path to git program, if any])
+AC_PATH_PROG([GIT], [git])
+AM_CONDITIONAL([HAVE_GIT], [test -n "$GIT"])
dnl Check for VA-API
PKG_CHECK_MODULES(LIBVA_DEPS, [libva >= va_api_version])
fi
AM_CONDITIONAL(USE_DRM, test "$USE_DRM" = "yes")
+if test "$enable_hybrid_codec" = "yes"; then
+ AC_DEFINE([HAVE_HYBRID_CODEC], [1], [Defined to 1 if hybrid codec is needed])
+fi
+
VA_VERSION=`$PKG_CONFIG --modversion libva`
VA_MAJOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f1`
VA_MINOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f2`
AM_CONDITIONAL(USE_X11, test "$USE_X11" = "yes")
dnl Check for VA-API drivers path
-AC_MSG_CHECKING([for VA drivers path])
-LIBVA_DRIVERS_PATH=`$PKG_CONFIG libva --variable driverdir`
+AC_ARG_VAR(LIBVA_DRIVERS_PATH, [drivers install path])
+if test -z "$LIBVA_DRIVERS_PATH"; then
+ AC_MSG_CHECKING([for VA drivers path])
+ LIBVA_DRIVERS_PATH=`$PKG_CONFIG libva --variable driverdir`
+fi
if test -z "$LIBVA_DRIVERS_PATH"; then
- LIBVA_DRIVERS_PATH="/usr/lib/xorg/modules/drivers"
+ LIBVA_DRIVERS_PATH="${libdir}/xorg/modules/drivers"
fi
AC_MSG_RESULT([$LIBVA_DRIVERS_PATH])
AC_SUBST(LIBVA_DRIVERS_PATH)
# Check for Wayland
USE_WAYLAND="no"
if test "$enable_wayland" = "yes"; then
- PKG_CHECK_MODULES([WAYLAND], [wayland-client], [USE_WAYLAND="yes"], [:])
PKG_CHECK_MODULES([LIBVA_WAYLAND_DEPS], [libva-wayland],
- [AC_DEFINE([HAVE_VA_WAYLAND], [1], [Defined to 1 if VA/Wayland API is enabled])],
- [USE_WAYLAND="no"])
+ [USE_WAYLAND="yes"], [:])
+
+ if test "$USE_WAYLAND" = "yes"; then
+
+ WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
+ AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner],,
+ [${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH])
+
+ AC_DEFINE([HAVE_VA_WAYLAND], [1],
+ [Defined to 1 if VA/Wayland API is enabled])
+ fi
fi
AM_CONDITIONAL(USE_WAYLAND, test "$USE_WAYLAND" = "yes")
-m4_ifdef([WAYLAND_SCANNER_RULES],
- [WAYLAND_SCANNER_RULES(['$(top_srcdir)/src/wayland'])],
- [wayland_scanner_rules=""; AC_SUBST(wayland_scanner_rules)])
-
AC_OUTPUT([
Makefile
debian.upstream/Makefile
src/shaders/post_processing/Makefile
src/shaders/post_processing/gen5_6/Makefile
src/shaders/post_processing/gen7/Makefile
+ src/shaders/post_processing/gen75/Makefile
+ src/shaders/post_processing/gen8/Makefile
+ src/shaders/post_processing/gen9/Makefile
src/shaders/render/Makefile
src/shaders/utils/Makefile
src/shaders/vme/Makefile
- src/wayland/Makefile
])
dnl Print summary