summaryrefslogtreecommitdiffstats
path: root/patches/SDL_ttf-2.0.11/0001-configure-cache-result-of-OpenGL-test.patch
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-10-24 18:24:31 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-10-25 09:36:37 +0200
commit208d867eebb92ffa3740f1a47450d397c0df4287 (patch)
tree6a0dbd11b185ae09de623ae33f712812b4351d11 /patches/SDL_ttf-2.0.11/0001-configure-cache-result-of-OpenGL-test.patch
parent982481a31f7a6ed2d7d75749fd6d8ea3fa44c9c9 (diff)
downloadptxdist-208d867eebb92ffa3740f1a47450d397c0df4287.tar.gz
ptxdist-208d867eebb92ffa3740f1a47450d397c0df4287.tar.xz
sdl-ttf: force disabling OpenGL support
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/SDL_ttf-2.0.11/0001-configure-cache-result-of-OpenGL-test.patch')
-rw-r--r--patches/SDL_ttf-2.0.11/0001-configure-cache-result-of-OpenGL-test.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/patches/SDL_ttf-2.0.11/0001-configure-cache-result-of-OpenGL-test.patch b/patches/SDL_ttf-2.0.11/0001-configure-cache-result-of-OpenGL-test.patch
new file mode 100644
index 000000000..75fdfffcc
--- /dev/null
+++ b/patches/SDL_ttf-2.0.11/0001-configure-cache-result-of-OpenGL-test.patch
@@ -0,0 +1,37 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Wed, 24 Oct 2012 18:22:53 +0200
+Subject: [PATCH] configure: cache result of OpenGL test
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ configure.in | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 865075e..38ac8b0 100644
+--- a/configure.in
++++ b/configure.in
+@@ -166,17 +166,17 @@ case "$host" in
+ fi
+ ;;
+ esac
+-AC_MSG_CHECKING(for OpenGL support)
+-have_opengl=no
++AC_CACHE_CHECK([for OpenGL support],[sdl_cv_lib_opengl],[
++sdl_cv_lib_opengl=no
+ AC_TRY_COMPILE([
+ #include "SDL_opengl.h"
+ ],[
+ GLuint texture;
+ ],[
+-have_opengl=yes
+-])
+-AC_MSG_RESULT($have_opengl)
+-if test x$have_opengl = xyes; then
++sdl_cv_lib_opengl=yes
++])])
++AC_MSG_RESULT($sdl_cv_lib_opengl)
++if test x$sdl_cv_lib_opengl = xyes; then
+ CFLAGS="$CFLAGS -DHAVE_OPENGL"
+ GL_LIBS="$SYS_GL_LIBS"
+ else