OSDN Git Service

Wrapper the DriverContextP of backend driver
[android-x86/hardware-intel-intel-driver.git] / configure.ac
index c5210d3..6f1a66a 100644 (file)
@@ -56,6 +56,11 @@ AC_ARG_ENABLE([wayland],
                     [build with VA/Wayland API support @<:@default=yes@:>@])],
     [], [enable_wayland="yes"])
 
+AC_ARG_ENABLE([wrapper],
+    [AC_HELP_STRING([--enable-wrapper],
+                    [build with hybrid_wrapper support @<:@default=no@:>@])],
+    [], [enable_wrapper="no"])
+
 AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
 AC_PROG_CC
@@ -107,6 +112,12 @@ if test "$USE_DRM" = "yes"; then
 fi
 AM_CONDITIONAL(USE_DRM, test "$USE_DRM" = "yes")
 
+USE_WRAPPER="no"
+if test "$enable_wrapper" = "yes"; then
+    USE_WRAPPER="yes"
+    AC_DEFINE([HAVE_USE_WRAPPER], [1], [Defined to 1 if hybrid_wrapper 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`