mesa-demos: Fix building demos which require GLU.

Set glu_enabled when pkg-config detects GLU.  This is needed so
that HAVE_GLU is properly set to enable the GLU based demos.

(From OE-Core rev: 72192d55cc6b213b6304dc805566c60a78d96b02)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Drew Moseley 2015-07-21 08:19:08 -04:00 committed by Richard Purdie
parent 3b7961f995
commit 50b5186331
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ index 9445424..bc4c8d1 100644
-DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
-DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
+if test "x$enable_glu" = xyes; then
+ PKG_CHECK_MODULES(GLU, [glu], [],
+ PKG_CHECK_MODULES(GLU, [glu], [glu_enabled=yes],
+ [AC_CHECK_HEADER([GL/glu.h],
+ [],
+ AC_MSG_ERROR([GLU not found]))