From bd58ee07b3593b53a83d3dfb96eefcd439a6e083 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 20 Jul 2007 21:27:17 +0000 Subject: [PATCH] Change ggi and SDL tests so that linking problems with --enable-static are more likely to be detected. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23835 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a20a57700f..1679633401 100755 --- a/configure +++ b/configure @@ -4154,7 +4154,7 @@ echocheck "GGI" if test "$_ggi" = auto ; then cat > $TMPC << EOF #include -int main(void) { return 0; } +int main(void) { ggiInit(); ggiWmhInit(); return 0; } EOF _ggi=no cc_check -lggi && _ggi=yes @@ -4606,7 +4606,10 @@ fi if test "$_sdl" = auto || test "$_sdl" = yes ; then cat > $TMPC << EOF #include -int main(int argc, char *argv[]) { return 0; } +int main(int argc, char *argv[]) { + SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); + return 0; +} EOF _sdl=no if "$_sdlconfig" --version >>"$TMPLOG" 2>&1 ; then