Don't build egl case without EGL
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 13 Jan 2012 03:12:02 +0000 (11:12 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 13 Jan 2012 03:12:02 +0000 (11:12 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
configure.ac

index 3ccdcbe..8917b6a 100644 (file)
@@ -208,7 +208,7 @@ 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)
+AM_CONDITIONAL(BUILD_EGL_TEST, [test "x$USE_EGL" = "xyes" && test "x$libglesv1_cm" = "xyes"])
 
 # We only need the headers, we don't link against the DRM libraries
 LIBVA_CFLAGS="$DRM_CFLAGS"