Don't build the EGL test case without GLESv1_CM
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 6 Jan 2012 06:55:20 +0000 (14:55 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 10 Jan 2012 06:30:33 +0000 (14:30 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
configure.ac
test/Makefile.am

index 52f27fc..3ccdcbe 100644 (file)
@@ -202,10 +202,13 @@ if test "$enable_egl" = "yes"; then
         USE_EGL="yes"
         EGL_DEPS_LIBS="-lEGL"
     ])
+
+    PKG_CHECK_MODULES([GLESv1_CM], [glesv1_cm], [libglesv1_cm=yes], [libglesv1_cm=no])
 fi
 AC_SUBST(EGL_DEPS_CFLAGS)
 AC_SUBST(EGL_DEPS_LIBS)
 AM_CONDITIONAL(USE_EGL, test "$USE_EGL" = "yes")
+AM_CONDITIONAL(BUILD_EGL_TEST, test x$libglesv1_cm = xyes)
 
 # We only need the headers, we don't link against the DRM libraries
 LIBVA_CFLAGS="$DRM_CFLAGS"
index 79a0589..1c1939b 100644 (file)
@@ -25,7 +25,7 @@ AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/test/basic -I$(top_srcdir)/src/x1
 
 SUBDIRS = basic decode encode putsurface vainfo
 
-if USE_EGL
+if BUILD_EGL_TEST
 SUBDIRS += egl
 endif