[FFmpeg-cvslog] build: treat sdl2 like other autodetected libraries
Clément Bœsch
git at videolan.org
Sat Sep 2 17:15:24 EEST 2017
ffmpeg | branch: master | Clément Bœsch <cboesch at gopro.com> | Wed Aug 30 13:13:08 2017 +0200| [b802971d6db5ad09d8d7dd0bbc20e3eea4c25f54] | committer: Clément Bœsch
build: treat sdl2 like other autodetected libraries
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b802971d6db5ad09d8d7dd0bbc20e3eea4c25f54
---
configure | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/configure b/configure
index aa520e3064..c666f4b32b 100755
--- a/configure
+++ b/configure
@@ -6027,20 +6027,22 @@ if enabled gcrypt; then
fi
fi
-if ! disabled sdl2; then
+if enabled sdl2; then
SDL2_CONFIG="${cross_prefix}sdl2-config"
if check_pkg_config sdl2 SDL_events.h SDL_PollEvent; then
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 && enable sdl2
- else
- if "${SDL2_CONFIG}" --version > /dev/null 2>&1; then
+ check_func SDL_Init $sdl2_extralibs $sdl2_cflags ||
+ disable sdl2
+ elif "${SDL2_CONFIG}" --version > /dev/null 2>&1; then
sdl2_cflags=$("${SDL2_CONFIG}" --cflags)
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 && enable sdl2
- fi
+ check_func SDL_Init $sdl2_extralibs $sdl2_cflags ||
+ disable sdl2
+ else
+ disable sdl2
fi
if test $target_os = "mingw32"; then
sdl2_extralibs="$sdl2_extralibs -mconsole"
More information about the ffmpeg-cvslog
mailing list