shithub: jbig2

Download patch

ref: 2dce5e044ea710e68b1716ca543800c64ad633aa
parent: 57c5cda834b84dbec0f4898427bf4283dc2c327d
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Sat Jun 15 11:47:21 EDT 2002

Add -lpng to LIBS when the png library is available.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@63 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,7 @@
 AM_INIT_AUTOMAKE([$package], [$version])
 AM_CONFIG_HEADER(config.h)
 
-AC_REVISION([$Revision: 1.2 $])
+AC_REVISION([$Revision: 1.3 $])
 
 # Checks for programs.
 AC_PROG_CC
@@ -18,7 +18,8 @@
 
 # Checks for libraries.
 AC_CHECK_LIB([png], [png_check_sig], [
-	AC_DEFINE(HAVE_LIBPNG,,[Define if libpng is available (-lpng)])
+	AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
+	LIBS="$LIBS -lpng"
 	LIBOBJS="$LIBOBJS jbig2_image_png.o"
 	AC_CHECK_LIB([z], [deflate])
 ])