Add linker flags for JPEG library when checking for functions

fix-build-obselete-jpeg^2^2
Olaf Meeuwissen 2020-03-23 21:59:41 +09:00
rodzic 2583158a5b
commit 00a7fd8f00
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -697,7 +697,10 @@ fi
if test "${sane_cv_use_libjpeg}" = "yes"; then
SANEI_SANEI_JPEG_LO="../sanei/sanei_jpeg.lo"
saved_LIBS="${LIBS}"
LIBS="${JPEG_LIBS}"
AC_CHECK_FUNCS(jpeg_crop_scanline jpeg_skip_scanlines)
LIBS="${saved_LIBS}"
fi
AM_CONDITIONAL(HAVE_JPEG, test x$sane_cv_use_libjpeg = xyes)
AC_SUBST(SANEI_SANEI_JPEG_LO)