diff options
author | Thomas Orgis <obukus@sourcemage.org> | 2015-11-30 02:09:33 -0500 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-12-07 14:02:18 +0800 |
commit | 959776b6f77401779c3d2fe7d2e731061e2408f5 (patch) | |
tree | 2fe275feb3dc5ffdad044285c4034b3d6a81deeb | |
parent | be42ac44bc12c752f572788f0f4bbc62c13dc6ae (diff) | |
download | libva-959776b6f77401779c3d2fe7d2e731061e2408f5.tar.gz |
Skip the check related with wayland if wayland is not used or found
https://bugs.freedesktop.org/show_bug.cgi?id=79478
Signed-off-by: Thomas Orgis <obukus@sourcemage.org>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 883ce465933e772c08ad77e4b7f053dc8cb85fba)
-rw-r--r-- | configure.ac | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 88a7ef3..e79f6c8 100644 --- a/configure.ac +++ b/configure.ac @@ -273,15 +273,16 @@ if test "$enable_wayland" = "yes"; then PKG_CHECK_MODULES([WAYLAND], [wayland-client >= wayland_api_version], [USE_WAYLAND="yes"], [:]) if test "$USE_WAYLAND" = "yes"; then + m4_ifdef([WAYLAND_SCANNER_RULES], + [WAYLAND_SCANNER_RULES(['$(top_builddir)/va/wayland/protocol'])], + [wayland_scanner_rules=""; AC_SUBST(wayland_scanner_rules)]) + AC_DEFINE([HAVE_VA_WAYLAND], [1], [Defined to 1 if VA/Wayland API is built]) fi fi -AM_CONDITIONAL(USE_WAYLAND, test "$USE_WAYLAND" = "yes") -m4_ifdef([WAYLAND_SCANNER_RULES], - [WAYLAND_SCANNER_RULES(['$(top_builddir)/va/wayland/protocol'])], - [wayland_scanner_rules=""; AC_SUBST(wayland_scanner_rules)]) +AM_CONDITIONAL(USE_WAYLAND, test "$USE_WAYLAND" = "yes") pkgconfigdir=${libdir}/pkgconfig AC_SUBST(pkgconfigdir) @@ -309,8 +310,6 @@ debian.upstream/libva-drm.install.in debian.upstream/libva-egl.install.in debian.upstream/libva-glx$LIBVA_MAJOR_VERSION.install:\ debian.upstream/libva-glx.install.in - debian.upstream/libva-wayland$LIBVA_MAJOR_VERSION.install:\ -debian.upstream/libva-wayland.install.in debian.upstream/libva-x11-$LIBVA_MAJOR_VERSION.install:\ debian.upstream/libva-x11.install.in doc/Makefile @@ -320,7 +319,6 @@ debian.upstream/libva-x11.install.in pkgconfig/libva-egl.pc pkgconfig/libva-glx.pc pkgconfig/libva-tpi.pc - pkgconfig/libva-wayland.pc pkgconfig/libva-x11.pc pkgconfig/libva.pc test/Makefile @@ -335,10 +333,18 @@ debian.upstream/libva-x11.install.in va/egl/Makefile va/glx/Makefile va/va_version.h + va/x11/Makefile +]) + +if test "$USE_WAYLAND" = "yes"; then +AC_OUTPUT([ + debian.upstream/libva-wayland$LIBVA_MAJOR_VERSION.install:\ +debian.upstream/libva-wayland.install.in + pkgconfig/libva-wayland.pc va/wayland/Makefile va/wayland/protocol/Makefile - va/x11/Makefile ]) +fi # Print a small summary BACKENDS="" |