configure: tell why cairo-egl could not be used
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 16 Oct 2012 14:27:17 +0000 (17:27 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 16 Oct 2012 14:46:32 +0000 (10:46 -0400)
Otherwise the user has no indication which package is missing for
CAIRO_EGL, and has to dig into config.log for it.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
configure.ac

index 470e6c2..e3e3581 100644 (file)
@@ -175,7 +175,7 @@ if test x$enable_clients = xyes; then
                    [have_cairo_egl=yes], [have_cairo_egl=no])
   AS_IF([test "x$have_cairo_egl" = "xyes"],
         [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])],
-        [AC_MSG_WARN([Cairo-EGL not found - clients will use cairo image])])
+        [AC_MSG_WARN([clients will use cairo image, cairo-egl not used because $CAIRO_EGL_PKG_ERRORS])])
 fi
 
 AC_ARG_ENABLE(weston-launch, [  --enable-weston-launch],, enable_weston_launch=yes)