1 --- misc/cairo-1.10.2/configure.ac 2010-12-13 17:30:14.000000000 +0100
2 +++ misc/build/cairo-1.10.2/configure.ac 2010-12-13 17:30:14.000000000 +0100
5 dnl ===========================================================================
7 -AC_CHECK_LIB(z, compress,
8 - [AC_CHECK_HEADER(zlib.h, [
10 AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if you have zlib available])
12 - [have_libz="no (requires zlib http://www.gzip.org/zlib/)"])],
13 - [have_libz="no (requires zlib http://www.gzip.org/zlib/)"])
15 AC_CHECK_LIB(dl, dlsym,
16 [have_dlsym=yes; have_dl=yes],
18 AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config])
19 if test "x$png_REQUIRES" = x; then
20 # libpng13 is GnuWin32's libpng-1.2.8 :-(
21 - for l in libpng libpng14 libpng12 libpng13 libpng10; do
22 + for l in libpng libpng14 libpng12 libpng15 libpng13 libpng10; do
23 if $PKG_CONFIG --exists $l ; then
27 AX_COMPARE_VERSION([$FREETYPE_VERSION], [gt], [$FREETYPE_MIN_VERSION],
28 [AC_MSG_RESULT($FREETYPE_VERSION - OK)
29 ft_NONPKGCONFIG_CFLAGS=`$FREETYPE_CONFIG --cflags`
30 - ft_NONPKGCONFIG_LIBS=`$FREETYPE_CONFIG --libs`],
31 + ft_NONPKGCONFIG_LIBS=`$FREETYPE_CONFIG --libs | $SED -e 's/-lz//g'`],
32 [AC_MSG_RESULT($FREETYPE_VERSION - Too old)
33 use_ft="no ($FREETYPE_VERSION found; version $FREETYPE_MIN_VERSION from release $FREETYPE_MIN_RELEASE required)"])
38 ft_CFLAGS="$FREETYPE_CFLAGS"
39 - ft_LIBS="$FREETYPE_LIBS"
40 + ft_LIBS=`echo "$FREETYPE_LIBS" | $SED -e 's/-lz//g'`
43 FONTCONFIG_MIN_VERSION=2.2.95
45 CAIRO_ENABLE_SURFACE_BACKEND(ps, PostScript, yes, [
46 # The ps backend requires zlib.
48 - ps_NONPKGCONFIG_LIBS=-lz
49 + ps_NONPKGCONFIG_LIBS=$ZLIB3RDLIB
52 dnl ===========================================================================
54 CAIRO_ENABLE_SURFACE_BACKEND(pdf, PDF, yes, [
55 # The pdf backend requires zlib.
57 - pdf_NONPKGCONFIG_LIBS=-lz
58 + pdf_NONPKGCONFIG_LIBS=$ZLIB3RDLIB
61 dnl ===========================================================================
63 CAIRO_ENABLE_SURFACE_BACKEND(tee, tee, no)
64 CAIRO_ENABLE_SURFACE_BACKEND(xml, xml, no, [
66 - xml_NONPKGCONFIG_LIBS=-lz
67 + xml_NONPKGCONFIG_LIBS=$ZLIB3RDLIB
70 dnl ===========================================================================