summaryrefslogtreecommitdiffstats
path: root/patches/SDL2_ttf-2.0.14/0001-configure-make-opengl-support-switchable.patch
blob: e57fffcc0d5e9934b7f749096c13c433f26f10bb (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 9b36e15cfd4d..972dadf80bd2 100644
--- a/configure.in
+++ b/configure.in
@@ -130,6 +130,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*)
@@ -179,6 +185,7 @@ else
     GL_LIBS=""
 fi
 AC_SUBST([GL_LIBS])
+fi
 AC_SUBST([MATHLIB])
 AC_SUBST([WINDRES])