summaryrefslogtreecommitdiffstats
path: root/patches/SDL2_ttf-2.0.15/0001-configure-make-opengl-support-switchable.patch
blob: dd347096320e6cf41229f3d25d377e80bb6fc9c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
Date: Fri, 13 Jul 2018 12:24:59 +0200
Subject: [PATCH] configure: make opengl support switchable

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 configure.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.in b/configure.in
index 32b3a9139efd..d77bab0c0069 100644
--- a/configure.in
+++ b/configure.in
@@ -105,6 +105,12 @@ AM_PATH_SDL2($SDL_VERSION,
 CFLAGS="$CFLAGS $SDL_CFLAGS"
 LIBS="$LIBS $SDL_LIBS"
 
+dnl Check to see if OpenGL support is desired
+AC_ARG_ENABLE(opengl,
+AC_HELP_STRING([--enable-opengl], [include OpenGL support [[default=yes]]]),
+              , enable_opengl=yes)
+
+if test x$enable_opengl = xyes; then
 dnl Check for OpenGL
 case "$host" in
     *-*-cygwin* | *-*-mingw32*)
@@ -157,6 +163,7 @@ else
     GL_LIBS=""
 fi
 AC_SUBST([GL_LIBS])
+fi
 AC_SUBST([MATHLIB])
 AC_SUBST([WINDRES])