--- a/test/configure.in Sun Oct 21 22:38:09 2012 -0700
+++ b/test/configure.in Tue Oct 23 15:28:27 2012 -0700
@@ -143,21 +143,11 @@
AC_SUBST(GLLIB)
dnl Check for SDL_ttf
-AC_MSG_CHECKING(for SDL_ttf)
-have_SDL_ttf=no
-AC_TRY_COMPILE([
- #include "SDL_ttf.h"
-],[
-],[
-have_SDL_ttf=yes
-])
-AC_MSG_RESULT($have_SDL_ttf)
-
+AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
if test x$have_SDL_ttf = xyes; then
CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
- SDL_TTF_LIB="-lSDL_ttf"
+ SDL_TTF_LIB="-lSDL2_ttf"
fi
-
AC_SUBST(SDL_TTF_LIB)
dnl Finally create all the generated files