From 08bfe8721c69d71981b17e017df9a860f6a74a39 Mon Sep 17 00:00:00 2001 From: Stephen Hutchinson Date: Mon, 20 May 2013 06:46:17 -0400 Subject: configure: map --enable-sdl2 to autodetection Commit 02bbd87b disabled SDL linking by default. This commit followed the ancient mplayer convention of disabling detection of compiler flags with --enable-* switches. Unfortunately, this makes compiling with SDL enabled a pain. Make --enable-sdl/sdl2 use autodetection, even if it's inconsistent with most other --enable-* switches. The same is already done for --enable-openal, though. Based on a pull request by qyot27. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index f394e19344..da9ed698d5 100755 --- a/configure +++ b/configure @@ -2198,7 +2198,7 @@ fi #if win32; then echocheck "SDL 2.0" -if test "$_sdl2" = auto ; then +if test "$_sdl2" = yes ; then pkg_config_add 'sdl2' && _sdl2=yes fi if test "$_sdl2" = yes ; then @@ -2212,7 +2212,7 @@ else def_sdl2='#undef CONFIG_SDL2' echores "$_sdl2" echocheck "SDL" - if test "$_sdl" = auto ; then + if test "$_sdl" = yes ; then pkg_config_add 'sdl' && _sdl=yes fi if test "$_sdl" = yes ; then -- cgit v1.2.3