Took the opportunity to rewrite the check using autoconf macros to generate a more compatible configure script. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>