Fix libjasper test

This was reported in bug 551322.
(cherry picked from commit 8e315466b9)
This commit is contained in:
Matthias Clasen 2010-05-22 00:29:58 -04:00
parent 45a83fdbeb
commit 2aa560865e

View File

@ -954,7 +954,7 @@ dnl Test for libpng
dnl Test for libjasper
if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then
AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg)
AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg -lm)
fi
if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then