ref: de098378c0718dc6988f89786b86e5b2a8b0acf7
parent: e82b4c186cc1f2e65414c211c3db9c84bd2c3cdf
author: Mike Swanson <[email protected]>
date: Wed Jul 13 11:48:46 EDT 2016
Add autoconf check for GL and link the engines to it.
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,7 @@
PKG_CHECK_MODULES(SDLMIXER, [SDL2_mixer >= 2.0.0])
PKG_CHECK_MODULES(SDLNET, [SDL2_net >= 2.0.0])
PKG_CHECK_MODULES(SDLIMAGE, [SDL2_image >= 2.0.0])
+PKG_CHECK_MODULES(GL, [gl >= 10.0.0])
# Additional LDFLAGS for OS X are required for OpenGL
case "$host" in
@@ -125,6 +126,7 @@
AC_SUBST(SDLNET_CFLAGS)
AC_SUBST(SDLNET_LIBS)
+AC_SUBST(GL_LIBS)
AC_SUBST(ac_aux_dir)
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -153,7 +153,8 @@
@SDL_LIBS@ \
@SDLMIXER_LIBS@ \
@SDLNET_LIBS@ \
- @SDLIMAGE_LIBS@
+ @SDLIMAGE_LIBS@ \
+ @GL_LIBS@
if HAVE_WINDRES
@PROGRAM_PREFIX@doom_SOURCES=$(SOURCE_FILES_WITH_DEH) resource.rc