summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index d055e826..771fd6a0 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -793,13 +793,15 @@ AC_ARG_ENABLE(sdl,
fi
AC_MSG_CHECKING([SDL availability..])
- if $SDL_CONFIG --version; then
+ if (sh -c "$SDL_CONFIG --version" | grep 1.3) then
AC_SUBST(ac_sdl_cflags)
AC_SUBST(ac_sdl_ldflags)
ac_sdl_cflags=`$SDL_CONFIG --cflags`
ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
ac_sdl_ldflags=`$SDL_CONFIG --libs`
LIBS="$LIBS $ac_sdl_ldflags"
+ else
+ AC_MSG_RESULT([Unsupported SDL version])
fi
])