Skip to content
Snippets Groups Projects
Commit ebfcce16 authored by James Almer's avatar James Almer Committed by Diego Biurrun
Browse files

configure: Use test_pkg_config() for the SDL check


Removes the extra code to preserve global CFLAGS.

Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
Signed-off-by: default avatarDiego Biurrun <diego@biurrun.de>
parent d66fe7ff
No related branches found
No related tags found
No related merge requests found
...@@ -4871,13 +4871,9 @@ if enabled nvenc; then ...@@ -4871,13 +4871,9 @@ if enabled nvenc; then
require_cpp_condition nvEncodeAPI.h "NVENCAPI_MAJOR_VERSION >= 6" require_cpp_condition nvEncodeAPI.h "NVENCAPI_MAJOR_VERSION >= 6"
fi fi
# SDL is "special" and adds some CFLAGS that should not pollute anything else. # SDL adds some CFLAGS that should not be part of the general CFLAGS.
if enabled avplay; then enabled avplay &&
CFLAGS_SAVE=$CFLAGS test_pkg_config sdl "sdl >= 1.2.1 sdl < 1.3.0" SDL_events.h SDL_PollEvent
check_pkg_config sdl "sdl >= 1.2.1 sdl < 1.3.0" SDL_events.h SDL_PollEvent &&
sdl_cflags=$pkg_cflags
CFLAGS=$CFLAGS_SAVE
fi
! disabled pod2man && check_cmd pod2man --help && enable pod2man || disable pod2man ! disabled pod2man && check_cmd pod2man --help && enable pod2man || disable pod2man
! disabled texi2html && check_cmd texi2html -version && enable texi2html || disable texi2html ! disabled texi2html && check_cmd texi2html -version && enable texi2html || disable texi2html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment