summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-28 21:34:38 -0300
committerJames Almer <jamrial@gmail.com>2017-09-28 21:34:38 -0300
commite16ea52ed35cab948f428eac6a0cc02ca5129674 (patch)
tree532a830665d229ae7df2ec4c6ba11a9e19663768 /configure
parent3d4f8b9184a4693c577e0b73496e6cc1989c6bbf (diff)
configure: fix enabling SDL2 without pkg-config
Regression since d81b34069e80cb04160689ef5a160b9aee858257. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 9cf98c8cc2..8e4775be8c 100755
--- a/configure
+++ b/configure
@@ -6115,8 +6115,8 @@ if enabled sdl2; then
sdl2_extralibs=$("${SDL2_CONFIG}" --libs)
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x020001" $sdl2_cflags &&
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x020100" $sdl2_cflags &&
- check_func SDL_Init $sdl2_extralibs $sdl2_cflags ||
- disable sdl2
+ check_func SDL_Init $sdl2_extralibs $sdl2_cflags &&
+ enable sdl2
fi
if test $target_os = "mingw32"; then
sdl2_extralibs="$sdl2_extralibs -mconsole"