Skip to content

Commit

Permalink
Don't actually link with libraries you don't have
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 16, 2007
1 parent 9a40616 commit f42c06c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.in
Expand Up @@ -237,7 +237,7 @@ if test x$enable_xv = xyes; then
AC_DEFINE([LOAD_XV])
fi

if test x$enable_tif = xyes; then
if test x$enable_tif = xyes -a x$have_libtiff = xyes; then
if test x$enable_tif_shared = xyes && test x$tif_lib != x; then
echo "-- dynamic libtiff -> $tif_lib"
AC_DEFINE_UNQUOTED(LOAD_TIF_DYNAMIC, "$tif_lib")
Expand All @@ -250,15 +250,15 @@ if test x$enable_tif = xyes; then
IMG_LIBS="-ltiff -lz"
fi
fi
if test x$enable_jpg = xyes; then
if test x$enable_jpg = xyes -a x$have_libjpg = xyes; then
if test x$enable_jpg_shared = xyes && test x$jpg_lib != x; then
echo "-- dynamic libjpeg -> $jpg_lib"
AC_DEFINE_UNQUOTED(LOAD_JPG_DYNAMIC, "$jpg_lib")
else
IMG_LIBS="-ljpeg $IMG_LIBS"
fi
fi
if test x$enable_png = xyes; then
if test x$enable_png = xyes -a x$have_libpng = xyes; then
if test x$enable_png_shared = xyes && test x$png_lib != x; then
echo "-- dynamic libpng -> $png_lib"
AC_DEFINE_UNQUOTED(LOAD_PNG_DYNAMIC, "$png_lib")
Expand Down

0 comments on commit f42c06c

Please sign in to comment.