Ticket #24434: libpng14-compat.diff

File libpng14-compat.diff, 965 bytes (added by jmroot (Joshua Root), 15 years ago)
  • base/configure.ac

    diff -Naur ghostscript-8.71.orig/base/configure.ac ghostscript-8.71/base/configure.ac
     
    402402        PNGDEVS="$PNGDEVS_ALL"
    403403else
    404404        AC_MSG_RESULT([no])
    405         AC_CHECK_LIB(png, png_check_sig, [
     405        AC_CHECK_LIB(png, png_sig_cmp, [
    406406          AC_CHECK_HEADERS(png.h, [
    407407                SHARE_LIBPNG=1
    408408                PNGDEVS="$PNGDEVS_ALL"
  • jbig2dec/configure.ac

    diff -Naur ghostscript-8.71.orig/jbig2dec/configure.ac ghostscript-8.71/jbig2dec/configure.ac
     
    4545  fi
    4646  dnl libpng requires pow() which may be in libm
    4747  AC_SEARCH_LIBS([pow], [m])
    48   AC_CHECK_LIB([png], [png_check_sig], [
     48  AC_CHECK_LIB([png], [png_sig_cmp], [
    4949    AC_CHECK_LIB([z], [deflate], [
    5050      AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
    5151      LIBS="-lpng -lz $LIBS"