Advertisement
Guest User

Untitled

a guest
Jan 7th, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.20 KB | None | 0 0
  1. diff --git a/configure b/configure
  2. index ab05b9c7f3..1aea18d300 100755
  3. --- a/configure
  4. +++ b/configure
  5. @@ -6008,15 +6008,13 @@ fi
  6.  
  7.  if enabled sdl2; then
  8.      SDL2_CONFIG="${cross_prefix}sdl2-config"
  9. -    if test_pkg_config sdl2 "sdl2 >= 2.0.1 sdl2 < 2.1.0" SDL_events.h SDL_PollEvent; then
  10. -        check_func_headers SDL.h SDL_Init $sdl2_extralibs $sdl2_cflags ||
  11. -            disable sdl2
  12. -    elif "${SDL2_CONFIG}" --version > /dev/null 2>&1; then
  13. +    test_pkg_config sdl2 "sdl2 >= 2.0.1 sdl2 < 2.1.0" SDL_events.h SDL_PollEvent
  14. +    if disabled sdl2 && "${SDL2_CONFIG}" --version > /dev/null 2>&1; then
  15.          sdl2_cflags=$("${SDL2_CONFIG}" --cflags)
  16.          sdl2_extralibs=$("${SDL2_CONFIG}" --libs)
  17.          check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x020001" $sdl2_cflags &&
  18.          check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x020100" $sdl2_cflags &&
  19. -        check_func_headers SDL.h SDL_Init $sdl2_extralibs $sdl2_cflags &&
  20. +        check_func_headers SDL_events.h SDL_PollEvent $sdl2_extralibs $sdl2_cflags &&
  21.              enable sdl2
  22.      fi
  23.      if test $target_os = "mingw32"; then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement