Lines Matching +full:gl +full:- +full:intel +full:- +full:glx
1 # Copyright (c) 2007 Intel Corporation. All Rights Reserved.
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
23 # VA-API version
24 # - increment major for any ABI change
25 # - increment minor for any interface change (e.g. new/modified function)
26 # - increment micro for any other change (new flag, new codec definition, etc.)
27 # - reset micro version to zero when minor version is incremented
28 # - reset minor version to zero when major version is incremented
37 # XXX: we want the package version to remain at 1.0.x for VA-API 0.32.y
39 # - major version is automatically generated from VA-API major version
40 # - minor version is automatically generated from VA-API minor version
41 # - increment micro for any library release
42 # - reset micro version to zero when VA-API major or minor version is changed
55 # XXX: we want the SONAME to remain at libva.so.1 for VA-API major == 0
58 # <x> = VA-API major version + 1
59 # <y> = 100 * VA-API minor version + VA-API micro version
62 # VA-API 0.32.0 generates libva.so.1.3200.0
63 # VA-API 0.34.1 generates libva.so.1.3401.0
64 # VA-API 1.2.13 generates libva.so.2.213.0
68 [m4_eval(100 * va_api_minor_version + va_api_micro_version - libva_interface_age)])
75 [m4_eval(libva_binary_age - libva_interface_age)])
88 [https://github.com/intel/libva/issues/new],
90 [https://github.com/intel/libva])
94 AM_INIT_AUTOMAKE([dist-bzip2 -Wno-portability])
124 LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION"
129 [AC_HELP_STRING([--enable-docs],
134 [AC_HELP_STRING([--enable-drm],
139 [AC_HELP_STRING([--enable-x11],
143 AC_ARG_ENABLE(glx, optenable
144 [AC_HELP_STRING([--enable-glx],
145 [build with VA/GLX API support @<:@default=auto@:>@])],
149 [AC_HELP_STRING([--enable-wayland],
154 [AC_HELP_STRING([--with-legacy=[[components]]],
168 AC_ARG_WITH(drivers-path,
169 [AC_HELP_STRING([--with-drivers-path=[[path]]],
199 # Check for -ldl (often not required)
204 # Check for -fstack-protector and -fstack-protector-strong
206 if test "X$CC-cc" != "X"; then
212 X-fstack-protector) ssp_sp_set=yes ;;
213 X-fstack-protector-strong) ssp_sps_set=yes ;;
217 # Prefer -fstack-protector-strong over -fstack-protector
219 SSP_CC_FLAG="-fstack-protector-strong"
221 AC_MSG_CHECKING([whether ${CC-cc} accepts -fstack-protector-strong])
226 # Fallback to -fstack-protector
228 SSP_CC_FLAG="-fstack-protector"
230 AC_MSG_CHECKING([whether ${CC-cc} accepts -fstack-protector])
260 PKG_CHECK_MODULES([X11], [x11 xext xfixes x11-xcb xcb xcb-dri3], [USE_X11="yes"], [:])
262 if test "x$USE_X11" = "xno" -a "x$enable_x11" = "xyes"; then
272 # Check for GLX
276 AC_MSG_ERROR([VA/GLX explicitly enabled, but VA/X11 isn't built])
279 if test "$USE_X11" = "yes" -a "$enable_glx" != "no"; then
280 PKG_CHECK_MODULES([GLX], [gl x11], [USE_GLX="yes"], [:])
285 AC_CHECK_HEADERS([GL/gl.h GL/glx.h], [:], [USE_GLX="no"])
286 AC_CHECK_LIB([GL], [glXCreateContext], [:] [USE_GLX="no"])
290 if test "x$USE_GLX" = "xno" -a "x$enable_glx" = "xyes"; then
291 AC_MSG_ERROR([VA/GLX explicitly enabled, but libGL couldn't be found])
295 AC_DEFINE([HAVE_VA_GLX], [1], [Defined to 1 if VA/GLX API is built])
306 PKG_CHECK_MODULES([WAYLAND], [wayland-client >= wayland_api_version],
309 if test "x$USE_WAYLAND" = "xno" -a "x$enable_wayland" = "xyes"; then
315 AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])
317 PKG_CHECK_MODULES([WL_SCANNER], [wayland-scanner >= 1.15],
320 if test "x$USE_WAYLAND" = "xno" -a "x$enable_wayland" = "xyes"; then
323 AC_SUBST(WAYLAND_SCANNER, `$PKG_CONFIG --variable=wayland_scanner wayland-scanner`)
345 pkgconfig/libva-drm.pc
346 pkgconfig/libva-glx.pc
347 pkgconfig/libva-wayland.pc
348 pkgconfig/libva-x11.pc
352 va/glx/Makefile
362 AS_IF([test x$USE_GLX = xyes], [BACKENDS="$BACKENDS glx"])
366 echo "libva - ${LIBVA_VERSION} (VA-API ${VA_API_VERSION})"