$OpenBSD: patch-configure_ac,v 1.1 2018/07/04 15:10:31 bcallah Exp $

Do not pick up or use SDL2.

Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -64,19 +64,7 @@ elif test "$ac_cv_search_initscr" = "-lncursesw"; then
 fi
 
 # Include SDL2 and SDL2_mixer, or define DONT_INCLUDE_SDL as a fallback if they aren't available, so it still compiles.
-AC_PATH_PROG(SDL_CONFIG, sdl2-config)
-if test -n "$SDL_CONFIG"; then
-   LIBS="$LIBS `$SDL_CONFIG --libs`"
-   CPPFLAGS="$CPPFLAGS `$SDL_CONFIG --cflags`"
-fi
-AC_CHECK_LIB([SDL2], [SDL_Init], ,
-   AC_MSG_WARN([ *** Unable to find SDL2 library (http://www.libsdl.org/)]) ; LACK_SDL2=1)
-AC_CHECK_LIB([SDL2_mixer], [Mix_OpenAudio], ,
-   AC_MSG_WARN([ *** Unable to find SDL2_mixer library (http://www.libsdl.org/projects/SDL_mixer/)]) ; LACK_SDL2=1)
-if test "$LACK_SDL2" = 1; then
-   AC_DEFINE(DONT_INCLUDE_SDL, [], [Define to avoid including SDL2 and SDL2_mixer.])
-   AC_MSG_WARN([ *** Compiling without SDL2 or SDL2_mixer, and with DONT_INCLUDE_SDL defined.])
-fi
+AC_DEFINE(DONT_INCLUDE_SDL, [], [Define to avoid including SDL2 and SDL2_mixer.])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL
