Fixed checking for libjpeg and linking against it which were broken.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-03-08 14:13:56 +00:00
parent 706bb5f973
commit 2e0bceb668
3 changed files with 51 additions and 52 deletions

View File

@@ -1226,7 +1226,7 @@ AC_SUBST(PNG_C_SRC)
JPEG_LINK=""
if test "$wxUSE_LIBJPEG" = 1 ; then
AC_DEFINE_UNQUOTED(wxUSE_LIBJPEG,$wxUSE_LIBJPEG)
AC_CHECK_LIB(jpeg)
AC_CHECK_LIB(jpeg,main,,AC_MSG_ERROR("libjpeg is not available."))
JPEG_LINK="-ljpeg"
fi
AC_SUBST(JPEG_LINK)