pth: Obey LDFLAGS
mesa: Build separate GLU library

Mesa has removed GLU from the core tree upstream, so remove it from the
Mesa build and add the separate tarball as a new recipe.

(From OE-Core rev: 4395691a44b198ba0b9a969cbade669e8de07a4f)

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 662a445b30af4d7538c3e7081dd9403acd006938)

Conflicts:

	meta/recipes-graphics/mesa/mesa-common.inc
glew: fix generation of glew.pc needed by mesa-demos

(From OE-Core rev: 0273f31d20f3e3c24e8b309f928595885eb04af2)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d5bc211255599e88e54b2dd746b65651d10045f3)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
mesa-demos: fix --with-glut check

The GLUT check was automatic and couldn't be disabled, so mesa-demos would gain
a GLUT dependency if it was present when built.

So, fix configure.ac so that --without-glut works as expected.

(From OE-Core rev: fa7fb44d1ca2b8a57509806bde19672c68ef157d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7e1e3066e37a458b21294e1f5cfc3ed96efd5c7c)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
mesa-demos: fix build with non-Mesa GL stacks

These patches from upstream allow mesa-demos to build and run against a non-Mesa
GL stack.  Thanks to Tom Zanussi for doing this work for EMGD in meta-intel, and
Otavio Salvador for confirming it also works for Freescale.

[ YOCTO #3469 ]

(From OE-Core rev: 60fabb6ea0474b19ad57873b402a608a92c5a5d4)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f5c9b4813ca3a2fbe0a0b2e44075f1831a899067)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
mesa-demos: Update to 8.1.0

Removed patches that now appear in the upstream.

(From OE-Core rev: 2329297b12e2eade895fff8d3d98722a15e0b7ec)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f1771b5bfa57db22d1d576b0cba137192a0b5d80)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
mesa-demos: Use PACKAGECONFIG to enable/disable features

This allow selection of following features:

 drm, egl, freetype2, gbm, gles1, gles2, glut, osmesa, vg, wayland, x11

The x11 features is enabled depending on distro features but the
wayland has not been enabled as it does not work with Wayland
1.0. Rest were enabled for a sane default.

(From OE-Core rev: dc2de313febfc817640e4e55c75d0cb21c70c0ba)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 140ba6247905094a0288d816b5085b6564c884c4)
Merge pull request #29 from drewmoseley/debug-builds

Fix build failures after moving to 3.8.