How to check SDL-ttf version in configure.in file?

Hello,

I’m a beginner with configure and their autotools:
I need to check the SDL-ttf version, my program should only compile if
the SDL ttf version is >= 2.0.6.

Currently I put this in my configure.in file:

Test SDL TTF library (don’t know how to check the correct version)

AC_CHECK_HEADER([SDL_ttf.h],
AC_MSG_ERROR([Sorry >= SDL_ttf-2.0.6 library required! It’s
available from http://jcatki.no-ip.org/SDL_ttf/])
)

Does somebody knows exactly how to do it?
I tried to find demos, but the only demos I found that uses SDL, had
only a Makefile (no configure file).


saf at http://TrashMail.net/
No more spam, free disposable email addresses.