ref: 771b3b4d02bb7f12c9e08cc602261857499ccefb
parent: f5911b3cda06461a8f4fab259bb6f86d5453a0bb
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Thu Aug 15 07:55:34 EDT 2002
Prepend -lpng -lz to LIBS to preserve link order dependencies. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@201 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
-AC_REVISION([$Revision: 1.16 $])
+AC_REVISION([$Revision: 1.17 $])
# Checks for programs.
AC_PROG_CC
@@ -33,7 +33,7 @@
AC_CHECK_LIB([png], [png_check_sig], [
AC_CHECK_LIB([z], [deflate], [
AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
- LIBS="$LIBS -lpng -lz"
+ LIBS="-lpng -lz $LIBS"
AC_LIBOBJ([jbig2_image_png])
have_libpng="yes"
])