Skip to content

Commit

Permalink
Christian Walther 2008-01-13 07:59:42 PST
Browse files Browse the repository at this point in the history
I'm trying to build a set of static SDL_* libraries in my Mingw
cross-compilation setup on Mac OS X. I have only static (no dynamic) versions
of libpng and libtiff installed and configure SDL_image using

cross-configure.sh --prefix=/usr/local/cross-tools/i386-mingw32
--disable-shared --disable-jpg-shared --disable-png-shared --disable-tif-shared

In this invocation, the checks for libpng and libtiff fail (even though the
libraries are there, and are found) because of missing symbols from zlib. I can
fix this using the attached patch. I assume this shouldn't interfere in the
case that dynamic png/tiff libraries are around, but I'm reluctant to try it,
and I'm not very familiar with autoconf in general. Perhaps someone who is can
advise if this is the right thing to do...
  • Loading branch information
slouken committed Sep 26, 2009
1 parent d17a160 commit c80698d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.in
Expand Up @@ -169,7 +169,7 @@ fi

if test x$enable_png = xyes; then
AC_CHECK_HEADER([png.h], [have_png_hdr=yes])
AC_CHECK_LIB([png], [png_create_read_struct], [have_png_lib=yes])
AC_CHECK_LIB([png], [png_create_read_struct], [have_png_lib=yes], [], [-lz])
if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
AC_DEFINE([LOAD_PNG])

Expand All @@ -195,7 +195,7 @@ fi

if test x$enable_tif = xyes; then
AC_CHECK_HEADER([tiffio.h], [have_tif_hdr=yes])
AC_CHECK_LIB([tiff], [TIFFClientOpen], [have_tif_lib=yes])
AC_CHECK_LIB([tiff], [TIFFClientOpen], [have_tif_lib=yes], [], [-lz])
if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
AC_DEFINE([LOAD_TIF])

Expand Down

0 comments on commit c80698d

Please sign in to comment.